GetResourceGroup

Updated at:

Retrieves the details of a specified resource group by ID.

Operation description

You must purchase DataWorks Basic Edition or a later edition to use this feature.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:GetResourceGroup

get

*DwResourceGroup

acs:dataworks:{#regionId}:{#accountId}:dwresourcegroup/{#DwResourceGroupId}

None None

Request parameters

Parameter

Type

Required

Description

Example

Id

string

Yes

The unique identifier of the general resource group.

Serverless_res_group_524257424564736_6831777003XXXXX

Response elements

Element

Type

Description

Example

object

Schema of Response

Success

boolean

Indicates whether the request is successful.

true

ResourceGroup

object

The resource group details.

Id

string

The unique identifier of the resource group.

Serverless_res_group_524257424564736_6831777003XXXXX

Name

string

The name of the resource group.

common_resource_group

Remark

string

The remarks for the resource group.

Create a common resource group for common tasks

PaymentType

string

The billing method of the resource group. Valid values:

  • PrePaid: subscription.

  • PostPaid: pay-as-you-go.

Valid values:

  • PostPaid :

    Pay-as-you-go.

  • PrePaid :

    Subscription.

PrePaid

Status

string

The status of the queried resource group. Valid values:

  • Normal: normal (running or in service).

  • Stop: frozen (expired).

  • Deleted: deleted (released or destroyed).

  • Creating: creating.

  • CreateFailed: creation failed.

  • Updating: updating (scaling in, scaling out, or changing specifications).

  • UpdateFailed: update failed (scale-in failed or upgrade failed).

  • Deleting: deleting (releasing or destroying).

  • DeleteFailed: deletion failed (release failed or destruction failed).

  • Timeout: operation timed out.

  • Freezed: frozen.

  • Starting: starting.

Valid values:

  • Creating :

    Creating.

  • Stop :

    Frozen (expired).

  • Timeout :

    Operation timed out.

  • DeleteFailed :

    Deletion failed (release failed or destruction failed).

  • UpdateFailed :

    Update failed (scale-in failed or upgrade failed).

  • Updating :

    Updating (scaling in, scaling out, or changing specifications).

  • Deleted :

    Deleted (released or destroyed).

  • Normal :

    Normal (running or in service).

  • Deleting :

    Deleting (releasing or destroying).

  • CreateFailed :

    Creation failed.

Normal

Spec

object

The resource group specification.

Standard

string

The specification details.

2CU

Amount

integer

The resource count.

1

ResourceGroupType

string

The type of the resource group. Valid values:

  • CommonV2: general resource group V2.

  • ExclusiveDataIntegration: exclusive data integration resource group.

  • ExclusiveScheduler: exclusive scheduling resource group.

  • ExclusiveDataService: exclusive data service resource group.

Valid values:

  • CommonV2 :

    General resource group V2.

  • ExclusiveDataIntegration :

    Exclusive data integration resource group.

  • ExclusiveScheduler :

    Exclusive scheduling resource group.

  • ExclusiveDataService :

    Exclusive data service resource group.

CommonV2

OrderInstanceId

string

The order instance ID of the resource group.

c442b330-3b10-4584-959e-736e4edXXXXX

CreateUser

string

The ID of the user who created the resource group.

11075500042XXXXX

CreateTime

integer

The creation time, which is a 64-bit timestamp.

1727055811000

DefaultVpcId

string

The ID of the default VPC associated with the general resource group.

vpc-m2et4f3oc8msfbccXXXXX

DefaultVswitchId

string

The ID of the default vSwitch associated with the general resource group.

vsw-uf8usrhs7hjd9amsXXXXX

AliyunResourceGroupId

string

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

rg-aek2kqofrgXXXXX

AliyunResourceTags

array<object>

The list of Alibaba Cloud tags.

object

The Alibaba Cloud tag.

Key

string

The tag key.

key

Value

string

The tag value.

value

RequestId

string

The request ID. You can use this ID to locate logs and troubleshoot issues.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Success response

JSON format

{
  "Success": true,
  "ResourceGroup": {
    "Id": "Serverless_res_group_524257424564736_6831777003XXXXX",
    "Name": "common_resource_group",
    "Remark": "Create a common resource group for common tasks",
    "PaymentType": "PrePaid",
    "Status": "Normal",
    "Spec": {
      "Standard": "2CU",
      "Amount": 1
    },
    "ResourceGroupType": "CommonV2",
    "OrderInstanceId": "c442b330-3b10-4584-959e-736e4edXXXXX",
    "CreateUser": "11075500042XXXXX",
    "CreateTime": 1727055811000,
    "DefaultVpcId": "vpc-m2et4f3oc8msfbccXXXXX",
    "DefaultVswitchId": "vsw-uf8usrhs7hjd9amsXXXXX",
    "AliyunResourceGroupId": "rg-aek2kqofrgXXXXX",
    "AliyunResourceTags": [
      {
        "Key": "key",
        "Value": "value"
      }
    ]
  },
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.