GetResourceGroup
Retrieves the details of a resource group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pai:GetResourceGroup |
get |
*ResourceGroup
|
None | None |
Request syntax
GET /api/v1/resources/{ResourceGroupID} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupID |
string |
Yes |
The ID of the resource group. Each resource group has a globally unique ID. You can use the resource group ID to retrieve information about the resource group. |
rgmhpp8ib5lprq9k |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| IsAIWorkspaceDataEnabled |
boolean |
No |
Specifies whether to enable AI workspace data. This parameter is optional. Default value: true. |
true |
| Tag |
array<object> |
No |
The list of tags to be added. A maximum of 20 tags can be added. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key of the instance. Valid values of N: 1 to 20. |
TestKey |
| Value |
string |
No |
The tag value of the instance. Valid values of N: 1 to 20. |
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| GmtCreatedTime |
string |
The time when the resource group was created. The time follows the ISO 8601 standard in the UTC time zone. |
2023-06-22T00:00:00Z |
| GmtModifiedTime |
string |
The time when the resource group was updated. The time follows the ISO 8601 standard in the UTC time zone. |
2023-06-22T00:00:00Z |
| RequestId |
string |
The ID of the request. |
18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E |
| Name |
string |
The name of the resource group. |
TestResourceGroup |
| CreatorID |
string |
The user ID of the creator of the resource group. |
1612285282502324 |
| WorkspaceID |
string |
The ID of the workspace. |
35201 |
| Status |
string |
The status of the resource group. |
Ready |
| UserVpc | UserVpc |
The details of the VPC connected to the resource group. |
|
| ComputingResourceProvider |
string |
The type of compute resources for the resource group. Valid values:
|
ECS |
| ClusterID |
string |
The ID of the cluster to which the resource group belongs. |
cb2c7bde30b774e46a329c |
| SupportRDMA |
boolean |
Indicates whether the resource group supports RDMA. |
true |
| ResourceType |
string |
The type of compute resources for the resource group. |
Ecs |
| Description |
string |
The description of the resource group. |
testDescription |
| Tags |
array<object> |
The list of tags. |
|
|
object |
The tag. |
||
| TagKey |
string |
The tag key of the instance. Valid values of N: 1 to 20. |
testKey |
| TagValue |
string |
The tag value of the instance. Valid values of N: 1 to 20. |
testValue |
| Version |
string |
The version. |
1.0 |
Examples
Success response
JSON format
{
"GmtCreatedTime": "2023-06-22T00:00:00Z\n",
"GmtModifiedTime": "2023-06-22T00:00:00Z\n",
"RequestId": "18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\n",
"Name": "TestResourceGroup",
"CreatorID": "1612285282502324",
"WorkspaceID": "35201",
"Status": "Ready",
"UserVpc": {
"VpcId": "vpc-abcdef****",
"SwitchId": "vs-abcdef****",
"SecurityGroupId": "sg-abcdef****",
"ExtendedCIDRs": [
"\"192.168.0.1/24\""
],
"RoleArn": "acs:ram::25xxxx:role/AliyunPAIDLCDefaultRole",
"DefaultRoute": "eth0",
"DefaultForwardInfo": {
"NatGatewayId": "nat-7j4mka9wguxj",
"EipAllocationId": "eip-h29r78ieufbih"
}
},
"ComputingResourceProvider": "ECS",
"ClusterID": "cb2c7bde30b774e46a329c",
"SupportRDMA": true,
"ResourceType": "Ecs",
"Description": "testDescription",
"Tags": [
{
"TagKey": "testKey",
"TagValue": "testValue"
}
],
"Version": "1.0"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.