Queries images in a repository.

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 ListRepoTag

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

InstanceId String Yes cri-kmsiwlxxdcva****

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-tquyps22md8p****

The ID of the image repository.

PageNo Integer No 1

The number of the page to return.

PageSize Integer No 30

The number of entries to return on each page.

Response parameters

Parameter Type Example Description
Code String success

The return value.

Images Array of Images

The images.

Digest String 67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****

The digest of the image.

ImageCreate String 1572839125000

The time when the image was created.

ImageId String 45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****

The ID of the image.

ImageSize Long 27107966

The size of the image.

ImageUpdate String 1572875608000

The time when the image was updated.

Status String NORMAL

The status of the image.

Tag String v0.1

The tag of the image.

IsSuccess Boolean true

Indicates whether the operation is successful.

PageNo Integer 1

The page number of the returned page.

PageSize Integer 30

The number of entries returned per page.

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

The ID of the request.

TotalCount String 1

The total number of returned entries.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListRepoTag
&InstanceId=cri-kmsiwlxxdcva****
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8p****
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<TotalCount>1</TotalCount>
<PageSize>30</PageSize>
<RequestId>031572FA-7D8F-4C05-B790-1071E0E05DE6</RequestId>
<Images>
    <Status>NORMAL</Status>
    <ImageCreate>1572839125000</ImageCreate>
    <ImageSize>27107966</ImageSize>
    <Digest>67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****</Digest>
    <ImageId>45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****</ImageId>
    <ImageUpdate>1572875608000</ImageUpdate>
    <Tag>v0.1</Tag>
</Images>
<PageNo>1</PageNo>
<Code>success</Code>

JSON format

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

Error codes

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