Queries the details of a resource group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:DescribeResource |
get |
*Resource
|
None | None |
Request syntax
GET /api/v2/resources/{ClusterId}/{ResourceId} HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the cluster where the resource group is located. |
cn-shanghai |
| ResourceId |
string |
Yes |
The ID of the resource group. For more information, see ListResources. |
eas-r-asdasdasd |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The details of the resource group. |
||
| RequestId |
string |
The request ID. |
902976F2-6FAF-5404-8A4D-6CC223*** |
| ResourceId |
string |
The ID of the Elastic Algorithm Service (EAS) resource. |
eas-r-glkfpsxuw57x1h***** |
| ResourceName |
string |
The name of the EAS resource. |
my-resouce**** |
| ClusterId |
string |
The ID of the cluster where the resource group is located. |
cn-beijing |
| CreateTime |
string |
The time when the resource group was created. |
2020-05-19T14:19:42Z |
| UpdateTime |
string |
The time when the resource group was last updated. |
2021-02-24T11:52:17Z |
| OwnerUid |
string |
The ID of the resource group owner. |
14401087478**** |
| InstanceCount |
integer |
The total number of machine instances in the resource group. |
4 |
| PrePaidInstanceCount |
integer |
The total number of subscription machine instances in the resource group. |
1 |
| PostPaidInstanceCount |
integer |
The total number of pay-as-you-go machine instances in the resource group. |
3 |
| CpuCount |
integer |
The total number of CPU cores. |
16 |
| GpuCount |
integer |
The total number of GPUs. |
4 |
| Memory |
integer |
The total memory size in MB. |
8192 |
| CpuUsed |
integer |
The number of used CPU cores. |
8 |
| GpuUsed |
number |
The number of used GPUs. |
2 |
| MemoryUsed |
integer |
The used memory size in MB. |
2048 |
| Status |
string |
The status of the resource group. |
ResourceReady |
| Message |
string |
The returned message. |
Resource is ready |
| ExtraData |
string |
Extra information, such as the VPC connection status and the SLS log status. |
{"vswitch_id":"vsw-bp17uo6xebcusy****","gpu_share":true,"aux_vswitch_id_list":["vsw-bp13b3pvjap3vxn****","vsw-bp1nls8o5hk8mt8*****"],"security_group_id":"sg-bp1j1z7297hcink*****","vpc_id":"vpc-bp1kjr3rfyhx01*****","destination_cidr":"172.16.0.12/28","role_arn":"acs:ram::1157703270*****:role/AliyunServiceRoleForPaiEas","sls_project":"","sls_logstore":"","sls_status":"ResourceReady","sls_message":"","update_time":""} |
| ResourceType |
string |
The type of the resource group. Valid values:
Valid values:
|
Dedicated |
| InstanceMaxAllocatableMemory |
integer |
The maximum memory that can be allocated to a single node in the resource group. |
2048 |
| Features |
array |
A collection of features that are supported by the resource group. |
|
|
string |
The specific feature that is supported by the resource group. Currently, only GpuShare (GPU sharing) is supported. |
GpuShare |
|
| InstanceMaxAllocatableGPU |
number |
The maximum number of GPUs that can be allocated to a single node in the resource group. |
2 |
| InstanceMaxAllocatableCPU |
integer |
The maximum number of CPU cores that can be allocated to a single node in the resource group. |
16 |
Examples
Success response
JSON format
{
"RequestId": "902976F2-6FAF-5404-8A4D-6CC223***",
"ResourceId": "eas-r-glkfpsxuw57x1h*****",
"ResourceName": "my-resouce****",
"ClusterId": "cn-beijing",
"CreateTime": "2020-05-19T14:19:42Z",
"UpdateTime": "2021-02-24T11:52:17Z",
"OwnerUid": "14401087478****",
"InstanceCount": 4,
"PrePaidInstanceCount": 1,
"PostPaidInstanceCount": 3,
"CpuCount": 16,
"GpuCount": 4,
"Memory": 8192,
"CpuUsed": 8,
"GpuUsed": 2,
"MemoryUsed": 2048,
"Status": "ResourceReady",
"Message": "Resource is ready",
"ExtraData": "{\"vswitch_id\":\"vsw-bp17uo6xebcusy****\",\"gpu_share\":true,\"aux_vswitch_id_list\":[\"vsw-bp13b3pvjap3vxn****\",\"vsw-bp1nls8o5hk8mt8*****\"],\"security_group_id\":\"sg-bp1j1z7297hcink*****\",\"vpc_id\":\"vpc-bp1kjr3rfyhx01*****\",\"destination_cidr\":\"172.16.0.12/28\",\"role_arn\":\"acs:ram::1157703270*****:role/AliyunServiceRoleForPaiEas\",\"sls_project\":\"\",\"sls_logstore\":\"\",\"sls_status\":\"ResourceReady\",\"sls_message\":\"\",\"update_time\":\"\"}",
"ResourceType": "Dedicated",
"InstanceMaxAllocatableMemory": 2048,
"Features": [
"GpuShare"
],
"InstanceMaxAllocatableGPU": 2,
"InstanceMaxAllocatableCPU": 16
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.