Queries the information of a resource group.
Operation description
For more information about common request parameters, see Common parameters.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceGroupId | string | Yes | Specifies whether to return the information of tags. Valid values:
| rg-9gLOoK**** |
IncludeTags | boolean | No | The ID of the request. | true |
The operation that you want to perform. Set the value to GetResourceGroup.
Response parameters
Examples
Sample success responses
JSON
format
{
"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