Queries the tag information about a single image.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetRepoTag

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

RegionId String Yes cn-shanghai

The region ID of the image.

InstanceId String Yes cri-kmsiwlxxdcva****

The ID of the instance.

RepoId String Yes crr-tquyps22md8p****

The ID of the repository.

Tag String Yes 1.0

The version of the repository.

Response parameters

Parameter Type Example Description
Status String NORMAL

The status of the image. Valid values:

  • NORMAL: The image is normal.
  • DELETING: The image is being deleted.
ImageCreate Long 1572839125000

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

ImageSize Long 27107966

The size of the image. Unit: Bytes.

RequestId String 031572FA-7D8F-4C05-B790-1071E0E05DE6

The ID of the request.

Digest String 67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****

The digest of the image.

Code String success

The return value of status code.

ImageUpdate Long 1572875608000

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

Tag String 1.0

The version of the repository.

IsSuccess Boolean true

Indicates whether the API call is successful.

ImageId String 45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****

The ID of the image.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetRepoTag
&InstanceId=cri-kmsiwlxxdcva****
&RepoId=crr-tquyps22md8p****
&Tag=1.0
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GetRepoTagResponse>
    <Status>NORMAL</Status>
    <ImageCreate>1572839125000</ImageCreate>
    <ImageSize>27107966</ImageSize>
    <RequestId>031572FA-7D8F-4C05-B790-1071E0E05DE6</RequestId>
    <Digest>67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****</Digest>
    <Code>success</Code>
    <ImageUpdate>1572875608000</ImageUpdate>
    <Tag>1.0</Tag>
    <IsSuccess>true</IsSuccess>
    <ImageId>45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****</ImageId>
</GetRepoTagResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

For a list of error codes, visit the API Error Center.