Queries image repositories in a region.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | ListRepository |
The operation that you want to perform. Set the value to ListRepository. |
| RegionId | String | Yes | cn-shanghai |
The region ID of the image repository. |
| InstanceId | String | Yes | cri-kmsiwlxxdcva**** |
The ID of the instance. |
| RepoStatus | String | No | ALL |
The status of the repository. Valid values:
|
| RepoName | String | No | repo-test |
The name of the repository. |
| RepoNamespaceName | String | No | repo-namespace-test |
The name of the namespace to which the repositories belong. |
| 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 |
|---|---|---|---|
| RequestId | String | 5241C090-DA69-4B0F-8E3F-2F24FDE1110E |
The ID of the request. |
| Code | String | success |
The return value. |
| PageNo | Integer | 1 |
The page number of the returned page. |
| IsSuccess | Boolean | true |
Indicates whether the request is successful. |
| PageSize | Integer | 30 |
The number of entries returned per page. |
| TotalCount | String | 1 |
The total number of returned entries. |
| Repositories | Array of Repositories |
The queried repositories. |
|
| Summary | String | test OK |
The summary of the repository. |
| RepoBuildType | String | MANUAL |
The type of the repository build. Valid values:
|
| ModifiedTime | Long | 1564153576000 |
The time when the repository was last modified. |
| RepoId | String | crr-03cuozrsqhkw**** |
The ID of the repository. |
| CreateTime | Long | 1564153576000 |
The time when the repository was created. |
| RepoNamespaceName | String | test |
The name of the namespace to which the repositories belong. |
| TagImmutability | Boolean | true |
Indicates whether the image tag is immutable. |
| InstanceId | String | cri-kmsiwlxxdcv**** |
The ID of the instance. |
| RepoType | String | PRIVATE |
The type of the repository. Valid values:
|
| RepoStatus | String | NORMAL |
The status of the repository. |
| RepoName | String | test |
The name of the repository. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListRepository
&InstanceId=cri-kmsiwlxxdcva****
&RegionId=cn-shanghai
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<Repositories>
<RepoNamespaceName>test</RepoNamespaceName>
<TagImmutability>true</TagImmutability>
<RepoBuildType>MANUAL</RepoBuildType>
<ModifiedTime>1564153576000</ModifiedTime>
<RepoType>PRIVATE</RepoType>
<RepoStatus>NORMAL</RepoStatus>
<InstanceId>cri-kmsiwlxxdcv****</InstanceId>
<CreateTime>1564153576000</CreateTime>
<RepoName>test</RepoName>
<Summary>test OK</Summary>
<RepoId>crr-03cuozrsqhkw****</RepoId>
</Repositories>
<IsSuccess>true</IsSuccess>
<TotalCount>1</TotalCount>
<PageSize>30</PageSize>
<RequestId>5241C090-DA69-4B0F-8E3F-2F24FDE1110E</RequestId>
<PageNo>1</PageNo>
<Code>success</Code>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Repositories" : {
"RepoNamespaceName" : "test",
"TagImmutability" : true,
"RepoBuildType" : "MANUAL",
"ModifiedTime" : 1564153576000,
"RepoType" : "PRIVATE",
"RepoStatus" : "NORMAL",
"InstanceId" : "cri-kmsiwlxxdcv****",
"CreateTime" : 1564153576000,
"RepoName" : "test",
"Summary" : "test OK",
"RepoId" : "crr-03cuozrsqhkw****"
},
"IsSuccess" : true,
"TotalCount" : 1,
"PageSize" : 30,
"RequestId" : "5241C090-DA69-4B0F-8E3F-2F24FDE1110E",
"PageNo" : 1,
"Code" : "success"
}
Error codes
For a list of error codes, visit the API Error Center.