All Products
Search
Document Center

Container Registry:GetRepoTag

Last Updated:Apr 24, 2024

Queries the information about an image tag.

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 return value of status code.

cri-kmsiwlxxdcva****
RepoIdstringYes

The operation that you want to perform. Set the value to GetRepoTag.

crr-tquyps22md8p****
TagstringYes

The number of milliseconds that have elapsed since the image was created.

1.0

Response parameters

ParameterTypeDescriptionExample
object
Statusstring

The ID of the instance.

NORMAL
ImageCreatelong

crr-tquyps22md8p****

1572839125000
ImageSizelong

The number of milliseconds that have elapsed since the image was last updated.

27107966
RequestIdstring

1.0

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

The size of the image. Unit: Bytes.

67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****
Codestring

The ID of the image.

success
ImageUpdatelong

The ID of the request.

1572875608000
Tagstring

The version of the repository.

1.0
IsSuccessboolean

The status of the image. Valid values:

  • NORMAL: The image is normal.
  • DELETING: The image is being deleted.
true

Examples

Sample success responses

JSONformat

{
  "Status": "NORMAL",
  "ImageCreate": 1572839125000,
  "ImageSize": 27107966,
  "RequestId": "031572FA-7D8F-4C05-B790-1071E0E05DE6",
  "Digest": "67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****",
  "Code": "success",
  "ImageUpdate": 1572875608000,
  "Tag": "1.0",
  "IsSuccess": true,
  "ImageId": "45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****"
}

Error codes

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