Queries the information of a repository in an instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetRepository |
The operation that you want to perform. Set the value to GetRepository. |
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 | No | crr-03cuozrsqhkwmzyl |
The ID of the repository. |
RepoNamespaceName | String | No | test |
The name of the namespace to which the repository belongs. |
RepoName | String | No | test |
The name of the repository. |
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 | 915E6734-3E50-4640-8DBA-126D2D94DE29 |
The ID of the request. |
InstanceId | String | cri-kmsiwlxxdcvaduwb |
The ID of the instance. |
RepoId | String | null |
The ID of the repository. |
RepoNamespaceName | String | test |
The name of the namespace to which the repository belongs. |
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: PUBLIC and PRIVATE. |
RepoBuildType | String | MANUAL |
Indicates how the repository was created. Valid values: MANUAL and AUTO. |
Summary | String | Automatically created repository |
The summary of the repository. |
Detail | String | test |
The description of the repository. |
CreateTime | Long | 1570759546000 |
The time when the repository was created. |
ModifiedTime | Long | 1570759546100 |
The time when the repository was last modified. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=GetRepository
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&repoId=crr-03cuozrsqhkwmzyl
&RepoNamespaceName=test
&RepoName=test
&<Common request parameters>
Sample success responses
JSON
format
{
"IsSuccess":true,
"RepoNamespaceName":"test",
"RepoBuildType":"MANUAL",
"RepoType":"PRIVATE",
"RepoStatus":"NORMAL",
"RequestId":"915E6734-3E50-4640-8DBA-126D2D94DE29",
"InstanceId":"cri-kmsiwlxxdcvaduwb",
"RepoName":"test",
"Summary":"Automatically created repository",
"RepoId":"crr-03cuozrsqhkwmzyl",
"Code":"success",
"Detail":"test",
"CreateTime":"1570759546000",
"ModifiedTime":"1570759546100"
}
XML
format
<IsSuccess>true</IsSuccess>
<RepoNamespaceName>test</RepoNamespaceName>
<RepoBuildType>MANUAL</RepoBuildType>
<RepoType>PRIVATE</RepoType>
<RepoStatus>NORMAL</RepoStatus>
<RequestId>915E6734-3E50-4640-8DBA-126D2D94DE29</RequestId>
<InstanceId>cri-kmsiwlxxdcvaduwb</InstanceId>
<RepoName>test</RepoName>
<Summary>Automatically created repository</Summary>
<RepoId>crr-03cuozrsqhkwmzyl</RepoId>
<Code>success</Code>
<Detail>test</Detail>
<CreateTime>1570759546000</CreateTime>
<ModifiedTime>1570759546100</ModifiedTime>
Error codes
For a list of error codes, visit the API Error Center.