All Products
Search
Document Center

Resource Management:GetResourceGroup

Last Updated:Dec 15, 2025

Queries the information of a resource group.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceGroupIdstringYes

The ID of the resource group.

You can call the ListResourceGroups operation to obtain the ID of the resource group.

rg-9gLOoK****
IncludeTagsbooleanNo

Specifies whether to return the information of tags. Valid values:

  • false (default value)
  • true
true

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

2D69A58F-345C-4FDE-88E4-BF5189484043
ResourceGroupobject

The information of the resource group.

DisplayNamestring

The display name of the resource group.

my-project
Statusstring

The status of the resource group. Valid values:

  • Creating: The resource group is being created.
  • OK: The resource group is created.
  • PendingDelete: The resource group is waiting to be deleted.
OK
RegionStatusesarray<object>

The status of the resource group in all regions.

RegionStatusobject
Statusstring

The status of the resource group. Valid values:

  • Creating: The resource group is being created.
  • OK: The resource group is created.
  • PendingDelete: The resource group is waiting to be deleted.
  • Deleting: The resource group is being deleted.
OK
RegionIdstring

The region ID.

cn-qingdao
AccountIdstring

The ID of the Alibaba Cloud account to which the resource group belongs.

123456789****
Namestring

The identifier of the resource group.

my-project
CreateDatestring

The time when the resource group was created. The time is displayed in UTC.

2015-01-23T12:33:18Z
Idstring

The ID of the resource group.

rg-9gLOoK****
Tagsarray<object>

The tags that are added to the resource group.

Tagobject

The tags that are added to the resource group.

TagKeystring

The tag key.

k1
TagValuestring

The tag value.

v1

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 codeError codeError messageDescription
400InvalidParameter.ResourceGroupIdThe ResourceGroupId is invalid.The resource group ID is invalid.
403NoPermissionYou are not authorized to perform the operation.You are not authorized to perform the operation.
404EntityNotExists.ResourceGroupThe 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 timeSummary of changesOperation
No change history