Queries images in a repository.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
InstanceId | String | Yes | cri-kmsiwlxxdcvaduwb |
The ID of the instance. |
RegionId | String | Yes | cn-shanghai |
The ID of the region where the instance resides. |
RepoId | String | Yes | crr-tquyps22md8purzx |
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 |
---|---|---|---|
IsSuccess | Boolean | true |
Indicates whether the operation is successful. |
Code | String | success |
The code returned for the request. |
RequestId | String | 031572FA-7D8F-4C05-B790-1071E0E05DE6 |
The ID of the request. |
PageNo | Integer | 1 |
The page number of the returned page. |
PageSize | Integer | 30 |
The number of entries returned per page. |
TotalCount | String | 1 |
The total number of entries returned. |
Images | Array |
A list of images. |
|
Tag | String | v0.1 |
The tag of the image. |
Digest | String | 67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1d529 |
The digest of the image. |
ImageId | String | 45023655bf39c382e26a8607d057c27871de2118e163c1ecf48cc1ebf2a19468 |
The ID of the image. |
Status | String | NORMAL |
The status of the image. |
ImageSize | Long | 27107966 |
The size of the image. |
ImageCreate | String | 1572839125000 |
The time when the image was created. |
ImageUpdate | String | 1572875608000 |
The time when the image was updated. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ListRepoTag
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8purzx
&PageNo=1
&PageSize=30
&<Common request parameters>
Sample success responses
JSON
format
{
"IsSuccess":true,
"TotalCount":1,
"PageSize":30,
"RequestId":"031572FA-7D8F-4C05-B790-1071E0E05DE6",
"Images":[
{
"Status":"NORMAL",
"ImageCreate":1572839125000,
"ImageSize":27107966,
"Digest":"67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1d529",
"ImageId":"45023655bf39c382e26a8607d057c27871de2118e163c1ecf48cc1ebf2a19468",
"ImageUpdate":1572875608000,
"Tag":"v0.1"
}
],
"PageNo":1,
"Code":"success"
}
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>67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1d529</Digest>
<ImageId>45023655bf39c382e26a8607d057c27871de2118e163c1ecf48cc1ebf2a19468</ImageId>
<ImageUpdate>1572875608000</ImageUpdate>
<Tag>v0.1</Tag>
</Images>
<PageNo>1</PageNo>
<Code>success</Code>
Error codes
For a list of error codes, visit the API Error Center.