Queries a list of resource groups of a specific type.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceGroupType | integer | Yes | The type of the resource group that you want to query. Valid values:
If the value indicates a compute engine, the resource groups to query are the ones that were created when you purchased the compute engine. | 3 |
Keyword | string | No | The keyword that is used for fuzzy match by resource group name and identifier. | abc |
BizExtKey | string | No | The category of the resource group. Valid values:
| default |
ResourceManagerResourceGroupId | string | No | The resource group ID. | rg-acfmzbn7pti3zfa |
Tags | array<object> | No | The tags. | |
object | No | |||
Key | string | No | The tag key. | Env |
Value | string | No | The tag value. | Test |
Response parameters
Examples
Sample success responses
JSON
format
{
"HttpStatusCode": 200,
"RequestId": "0bc1411515937635973****",
"Success": true,
"Data": [
{
"Status": 0,
"UpdateTime": "Jul 9, 2018 2:43:37 PM",
"IsDefault": true,
"Cluster": "AY18G",
"EnableKp": false,
"ResourceGroupType": "3",
"CreateTime": "Jul 9, 2018 2:43:37 PM",
"Identifier": "e1815577-2f4e-4c5e-b29****",
"Mode": "SHARE",
"BizExtKey": "default",
"Sequence": 300,
"Specs": {},
"Name": "abc",
"Id": 1234567,
"TenantId": 1234567,
"ResourceManagerResourceGroupId": "rg-acfmzbn7pti3zfa",
"Tags": [
{
"Key": "Env",
"Value": "Test"
}
]
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Invalid.Tenant.ConnectionNotExists | The connection does not exist. | The connection does not exist. |
400 | Invalid.Tenant.ProjectNotExists | The project does not exist. | The project does not exist. |
400 | Invalid.Tenant.UserNotInProject | The user is not in the project. | The user is not in the project. |
403 | Invalid.Tenant.UserIsNotProjectOwnerOrAdmin | The user is not a project administrator or owner. | The user is not a project administrator or owner. |
403 | Invalid.Tenant.UserNotInTenant | The user is not in tenant. | The user is not in tenant. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-12-13 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2022-10-31 | API Description Update. The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |