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