Available in Classic and VPC
Get the tag list for an image registered in the registry of Container Registry.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
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.
Field | Type | Required | Description |
---|---|---|---|
registry |
String | Required | Name of the registry where the image for which you want to view the tag list is registered |
imageName |
String | Required | Name of the image to view the tag list for
|
Request query parameters
The following describes the parameters.
Field | Type | Required | Description |
---|---|---|---|
page |
Number | Optional | Page number to query
|
pagesize |
Number | Optional | Size of the page to query
|
Request example
The request example is as follows:
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}"
Response
This section 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 response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
count |
Number | - | Total number of registries registered |
next |
Number | - | Number of the next page
|
previous |
Number | - | Number of the previous page
|
result[].creator |
String | - | Image registrant ID |
result[].digest |
String | - | Unique identifier ID for the image |
result[].full_size |
Number | - | Tag size |
result[].id |
Number | - | Tag ID |
result[].image_id |
Number | - | Image ID |
result[].images[].architecture |
String | - | CPU architecture, such as amd64 or ppc64le |
result[].image[].created |
String | - | Image creation date
|
result[].image[].digest |
String | - | Unique identifier ID for the image |
result[].image[].features |
String | - | Not used |
result[].images[].latest_pulled |
Number | - | Date and time of the most recent image pull |
result[].images[].mediaType |
String | - | MIME type for image formats
|
result[].image[].os |
String | - | Operating system, such as linux or windows |
result[].image[].os_features |
String | - | Not used |
result[].image[].os_version |
String | - | Not used |
result[].images[].size |
Number | - | Image size |
result[].images[].updated |
Number | - | Image modification date and time |
result[].images[].variant |
String | - | Variant value available for specific architectures |
result[].last_updated |
String | - | Last modification date of the image
|
result[].last_updater |
String | - | Image registrant ID |
result[].name |
String | - | Tag name |
result[].repository |
Number | - | Registry ID |
result[].v2 |
Boolean | - | Whether to apply the v2 spec for images |
Response status codes
For response status codes common to all Container Registry APIs, see Container Registry response status codes.
Response example
The response example is as follows:
{
"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
}
]
}