View image tag list
    • PDF

    View image tag list

    • PDF

    Article Summary

    Available in Classic and VPC

    View the tag list for an image registered in the registry of Container Registry.

    Requests

    The following describes the request format for the endpoint. The request format is as follows.

    MethodURI
    GET/repositories/{registry}/{imageName}/tags

    Request headers

    For headers common to all Container Registry APIs, see Container Registry common headers.

    Request path parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    registryStringRequiredName of the registry where the image for which you want to view the tag list is registered
    imageNameStringRequiredName of the image to view the tag list for
    • Need to use URI encoded values
    • <Example> For hello/world, convert to hello%2Fworld and use it

    Request query parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    pageNumberOptionalPage number to view
    • Enter a value greater than 0 for the page number
    pagesizeNumberOptionalSize of the page to view
    • Enter a value greater than 0 for the page size

    Request example

    The following is a sample request.

    curl -X GET "https://ncr.apigw.ntruss.com/ncr/api/v2/repositories/{registry}/tags" 
    -H "x-ncp-apigw-timestamp: {Timestamp}"
    -H "x-ncp-iam-access-key: {Sub Account Access Key}"
    -H "x-ncp-apigw-signature-v2: {API Gateway Signature}"
    

    Responses

    The following describes the response format.

    Response syntax

    The response syntax is as follows.

    {
      "count": "number",
      "next": "number",
      "previous": "number",
      "results": [
          {
              "creator": "string",
              "digest": "string",
              "full_size": "number",
              "id": "number",
              "image_id": "number",
              "images": [
                  {
                      "architecture": "string",
                      "created": "number",
                      "digest": "string",
                      "features": "string",
                      "latest_pulled": "number",
                      "mediaType": "string",
                      "os": "string",
                      "os_features": "string",
                      "os_version": "string",
                      "size": "number",
                      "updated": "number",
                      "variant": "string"
                  }
              ],
              "last_updated": "number",
              "last_updater": "string",
              "name": "string",
              "repository": "number",
              "v2": "boolean"
          }
      ]
    }
    

    Response body

    The following describes the response body.

    FieldTypeRequiredDescription
    countNumber-Total number of registries registered
    nextNumber-Number of the next page
    • It returns null if there is no next page
    previousNumber-Number of the previous page
    • It returns null if there is no previous page
    result[].creatorString-Image registrant ID
    result[].digestString-Unique identifier ID for the image
    result[].full_sizeNumber-Tag size
    result[].idNumber-Tag ID
    result[].image_idNumber-Image ID
    result[].images[].architectureString-CPU architecture, such as amd64 or ppc64le
    result[].image.[]createdString-Image creation date
    • It returns elapsed time in milliseconds since January 1, 1970 00:00:00 UTC
    result[].image[].digestString-Unique identifier ID for the image
    result[].image[].featuresString-Not used
    result[].images[].latest_pulledNumber-Date and time of the most recent image pull
    result[].images[].mediaTypeString-MIME type for image formats
    • <Example> vnd.docker.container.image.v1+json: This is an image defined by the Docker container, with image format version v1 and MIME type with data encoded in JSON format
    result[].image[].osString-Operating system, such as linux or windows
    result[].image[].os_featuresString-Not used
    result[].image[].os_versionString-Not used
    result[].images[].sizeNumber-Image size
    result[].images[].updatedNumber-Image modification date and time
    result[].images[].variantString-Variant value available for specific architectures
    result[].last_updatedString-Last modification date of the image
    • It returns elapsed time in milliseconds since January 1, 1970 00:00:00 UTC
    result[].last_updaterString-Image registrant ID
    result[].nameString-Tag name
    result[].repositoryNumber-Registry ID
    result[].v2Boolean-Whether to apply the v2 spec for images

    Response status codes

    The following describes response status codes. For response status codes common to all Container Registry APIs, see Container Registry response status codes.

    HTTP status codeCodeMessageDescription
    200-OKRequest succeeded
    404-Not FoundRequested resource not found

    Response example

    The following is a sample response.

    {
      "count": 1,
      "next": null,
      "previous": null,
      "results": [
          {
              "creator": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
              "digest": "sha256:a180 ~ b9dc",
              "full_size": 83518086,
              "id": 730606,
              "image_id": 322122,
              "images": [
                  {
                      "architecture": "amd64",
                      "created": 1711928488000,
                      "digest": "sha256:sha256:a180 ~ b9dc",
                      "features": "",
                      "latest_pulled": 0,
                      "mediaType": "application/vnd.docker.container.image.v1+json",
                      "os": "linux",
                      "os_features": "",
                      "os_version": null,
                      "size": 83518086,
                      "updated": 1711928488000,
                      "variant": null
                  }
              ],
              "last_updated": 1711928488000,
              "last_updater": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
              "name": "ncpdocker",
              "repository": 5976,
              "v2": true
          }
      ]
    }
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.