Queries the information of a resource group.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ResourceGroupId | string | Yes | The ID of the resource group. You can call the ListResourceGroups operation to obtain the ID of the resource group. | rg-9gLOoK**** |
| IncludeTags | boolean | No | Specifies whether to return the information of tags. Valid values:
| true |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "2D69A58F-345C-4FDE-88E4-BF5189484043",
"ResourceGroup": {
"DisplayName": "my-project",
"Status": "OK",
"RegionStatuses": {
"RegionStatus": [
{
"Status": "OK",
"RegionId": "cn-qingdao"
}
]
},
"AccountId": "123456789****",
"Name": "my-project",
"CreateDate": "2015-01-23T12:33:18Z",
"Id": "rg-9gLOoK****",
"Tags": {
"Tag": [
{
"TagKey": "k1",
"TagValue": "v1"
}
]
}
}
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidParameter.ResourceGroupId | The ResourceGroupId is invalid. | The resource group ID is invalid. |
| 403 | NoPermission | You are not authorized to perform the operation. | You are not authorized to perform the operation. |
| 404 | EntityNotExists.ResourceGroup | The specified resource group does not exist. You must first create a resource group. | The specified resource group does not exist. You must first create a resource group. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
No change history
