Queries repositories in an instance.
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-kmsiwlxxdcvaduwb |
The ID of the instance. |
RegionId | String | Yes | cn-shanghai |
The ID of the region where the instance resides. |
RepoStatus | String | No | ALL |
The status of a repository. Valid values: NORMAL, DELETING, and DELETED. |
RepoName | String | No | repo-test |
The name of a repository. |
RepoNamespaceName | String | No | repo-namespace-test |
The name of a 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 |
---|---|---|---|
IsSuccess | Boolean | true |
Indicates whether the operation is successful. |
Code | String | success |
The code returned for the request. |
RequestId | String | 5241C090-DA69-4B0F-8E3F-2F24FDE1110E |
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. |
Repositories | Array |
A list of repositories. |
|
RepoNamespaceName | String | test |
The name of the namespace. |
RepoName | String | test |
The name of the repository. |
RepoStatus | String | NORMAL |
The status of the repository. |
RepoType | String | PRIVATE |
The type of the repository. Valid values: PRIVATE and PUBLIC. |
RepoBuildType | String | MANUAL |
Indicates how the repository was created. Valid values: MANUAL and AUTO. |
Summary | String | test OK |
The summary of the repository. |
InstanceId | String | cri-kmsiwlxxdcvaduwb |
The ID of the instance. |
RepoId | String | crr-03cuozrsqhkwmzyl |
The ID of the repository. |
CreateTime | Long | 1564153576000 |
The time when the repository was created. |
ModifiedTime | Long | 1564153576000 |
The time when the repository was last modified. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ListRepository
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoStatus=ALL
&RepoName=repo-test
&RepoNamespaceName=repo-namespace-test
&PageNo=1
&PageSize=30
&<Common request parameters>
Sample success responses
JSON
format
{
"Repositories":[
{
"RepoNamespaceName":"test",
"RepoBuildType":"MANUAL",
"ModifiedTime":1571302802000,
"RepoType":"PRIVATE",
"RepoStatus":"NORMAL",
"InstanceId":"cri-kmsiwlxxdcvaduwb",
"CreateTime":1571242083000,
"RepoName":"test",
"RepoId":"crr-kwgb20p8wwmhol1t"
}
],
"IsSuccess":true,
"TotalCount":3,
"PageSize":30,
"RequestId":"5241C090-DA69-4B0F-8E3F-2F24FDE1110E",
"PageNo":1,
"Code":"success"
}
XML
format
<Repositories>
<RepoNamespaceName>test</RepoNamespaceName>
<RepoBuildType>MANUAL</RepoBuildType>
<ModifiedTime>1571302802000</ModifiedTime>
<RepoType>PRIVATE</RepoType>
<RepoStatus>NORMAL</RepoStatus>
<InstanceId>cri-kmsiwlxxdcvaduwb</InstanceId>
<CreateTime>1571242083000</CreateTime>
<RepoName>test</RepoName>
<RepoId>crr-kwgb20p8wwmhol1t</RepoId>
</Repositories>
<IsSuccess>true</IsSuccess>
<TotalCount>3</TotalCount>
<PageSize>30</PageSize>
<RequestId>5241C090-DA69-4B0F-8E3F-2F24FDE1110E</RequestId>
<PageNo>1</PageNo>
<Code>success</Code>
Error codes
For a list of error codes, visit the API Error Center.