All Products
Search
Document Center

Container Registry:ListRepoTag

Last Updated:Mar 01, 2024

Queries image tags in an image repository.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cr:ListRepositoryTagRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

cri-kmsiwlxxdcva****
RepoIdstringYes

The ID of the repository.

crr-tquyps22md8p****
PageNointegerNo

The number of the page to return.

1
PageSizeintegerNo

The number of entries to return on each page.

30

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

031572FA-7D8F-4C05-B790-1071E0E05DE6
Codestring

The return value.

success
PageNointeger

The page number of the returned page.

1
IsSuccessboolean

Indicates whether the request is successful.

true
PageSizeinteger

The number of entries returned per page.

30
TotalCountstring

The total number of returned entries.

1
Imagesobject []

The images.

Statusstring

The status of the image.

NORMAL
ImageSizelong

The size of the image.

27107966
ImageCreatestring

The time when the image was created.

1572839125000
Digeststring

The digest of the image.

67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****
ImageUpdatestring

The time when the image was last updated.

1572875608000
Tagstring

The tag of the image.

v0.1
ImageIdstring

The ID of the image.

45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****

Examples

Sample success responses

JSONformat

{
  "RequestId": "031572FA-7D8F-4C05-B790-1071E0E05DE6",
  "Code": "success",
  "PageNo": 1,
  "IsSuccess": true,
  "PageSize": 30,
  "TotalCount": "1",
  "Images": [
    {
      "Status": "NORMAL",
      "ImageSize": 27107966,
      "ImageCreate": "1572839125000",
      "Digest": "67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****",
      "ImageUpdate": "1572875608000",
      "Tag": "v0.1",
      "ImageId": "45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****"
    }
  ]
}

JSONformat

{
  "RequestId": "031572FA-7D8F-4C05-B790-1071E0E05DE6",
  "Code": "success",
  "PageNo": 1,
  "IsSuccess": true,
  "PageSize": 30,
  "TotalCount": "1",
  "Images": [
    {
      "Status": "NORMAL",
      "ImageSize": 27107966,
      "ImageCreate": "1572839125000",
      "Digest": "67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****",
      "ImageUpdate": "1572875608000",
      "Tag": "v0.1",
      "ImageId": "45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****"
    }
  ]
}

Error codes

HTTP status codeError codeError message
403NoPrivilegeAccess denied for this user.
500SystemErrorUnknown error.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history