GetResourceGroup
Retrieves the information of a specified resource group by ID.
Operation description
You must purchase DataWorks Basic Edition or a higher edition to use this feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetResourceGroup |
get |
*DwResourceGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
The unique identifier of the resource group. |
Serverless_res_group_524257424564736_6831777003XXXXX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ResourceGroup |
object |
The detailed information of the resource group. |
|
| 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 of the resource group. |
Create a common resource group for common tasks |
| PaymentType |
string |
The billing method of the resource group. Valid values:
|
PrePaid |
| Status |
string |
The status of the resource group. Valid values:
Valid values:
|
Normal |
| Spec |
object |
The specifications of the resource group. |
|
| Standard |
string |
The number of compute units (CUs) in the resource group. |
2CU |
| Amount |
integer |
The number of resources in the resource group. |
1 |
| ResourceGroupType |
string |
The type of the resource group. Valid values:
Valid values:
|
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, represented as a 64-bit timestamp. |
1727055811000 |
| DefaultVpcId |
string |
The ID of the default VPC bound to the resource group. |
vpc-m2et4f3oc8msfbccXXXXX |
| DefaultVswitchId |
string |
The ID of the default vSwitch bound to the 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 ID of the request, which is used 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.