Queries Container Registry instances.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cr:ListInstance | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceNamedeprecated | string | No | The instance name. | test |
InstanceStatus | string | No | The status of the instance. Valid values:
| RUNNING |
PageNo | integer | No | The page number. | 1 |
PageSize | integer | No | The number of entries per page. | 30 |
ResourceGroupId | string | No | The ID of the resource group to which the instance belongs. | rg-acfmv36i4is**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A2A9BA68-B264-4953-9154-CE61B1C03BA6",
"Code": "success",
"PageNo": 1,
"IsSuccess": true,
"PageSize": 30,
"TotalCount": 12121,
"Instances": [
{
"ModifiedTime": "1562849760000",
"InstanceName": "test",
"CreateTime": "1562849679000",
"InstanceSpecification": "Enterprise_Basic",
"InstanceStatus": "RUNNING",
"InstanceId": "cri-sgedpenzw80e****",
"RegionId": "cn-shanghai",
"ResourceGroupId": "rg-aek2h3aexpy****",
"InstanceIssue": "oss bucket already exists",
"Tags": [
{
"TagKey": "test_key",
"TagValue": "test_value"
}
]
}
]
}
Error codes
HTTP status code | Error code | Error message |
---|
HTTP status code | Error code | Error message |
---|---|---|
403 | NoPrivilege | Access denied for this user. |
500 | SystemError | Unknown error. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
Change time | Summary of changes | Operation |
---|---|---|
2023-06-30 | The Error code has changed. The response structure of the API has changed | View Change Details |