Nasqueron private Docker registry API API Reference

This API exposes the content of the private registry available on Nasqueron Docker servers linked to the Docker PaaS.

The PaaS uses mainly images from Docker Hub, so the images references here are generally special cases like work in progress containers or migrations.

API Endpoint
https://api.nasqueron.org/docker/registry
Terms of Service: https://agora.nasqueron.org/Terms_and_policies/API
Schemes: https
Version: 0.0.1

registry

Utilities for general information about the registry

Get statistics

GET /stats

Gets statistics information about the registry. Currently, it prints the number of repositories.

200 OK

successful operation

Response Content-Types: application/json
Response Example (200 OK)
{
  "repositoriesCount": "integer (int32)"
}

repository

Utilities for information about repositories

Get repository info

GET /repository/{repositoryName}

Gets information about a repository. Currently, it outputs the list of tags available.

repositoryName: string
in path

name of the repository to query

200 OK

successful operation

400 Bad Request

Invalid name supplied

404 Not Found

Repository not found

Response Content-Types: application/json
Response Example (200 OK)
{
  "name": "string",
  "tags": [
    {
      "name": "string",
      "hash": "string"
    }
  ]
}

Get all repositories

GET /repository/getAll

successful operation

Response Content-Types: application/json
Response Example (200 OK)
[
  {
    "name": "string",
    "tags": [
      {
        "name": "string",
        "hash": "string"
      }
    ]
  }
]

Find a repository by layer

GET /repository/findByLayer/{layerHash}
layerHash: string
in path

hash of the layer to find

successful operation

400 Bad Request

Invalid hash supplied

Response Content-Types: application/json
Response Example (200 OK)
[
  {
    "name": "string",
    "tags": [
      {
        "name": "string",
        "hash": "string"
      }
    ]
  }
]

Find a repository by image

GET /repository/findByImage/{imageHash}
imageHash: string
in path

hash of the image to find

successful operation

400 Bad Request

Invalid hash supplied

Response Content-Types: application/json
Response Example (200 OK)
[
  {
    "name": "string",
    "tags": [
      {
        "name": "string",
        "hash": "string"
      }
    ]
  }
]

Schema Definitions

Registry: object

repositoriesCount: integer (int32) x ≥ 0
Example
{
  "repositoriesCount": "integer (int32)"
}

RepositoryCollection: array

This is an array of repositories. This type is used by search operations.

Repository
Example
[
  {
    "name": "string",
    "tags": [
      {
        "name": "string",
        "hash": "string"
      }
    ]
  }
]

Repository: object

A repository is a set of images for a service.

name: string
tags: Tag
Tag
Example
{
  "name": "string",
  "tags": [
    {
      "name": "string",
      "hash": "string"
    }
  ]
}

Tag: object

name: string
hash: string
Example
{
  "name": "string",
  "hash": "string"
}