All Products
Search
Document Center

Platform For AI:DescribeResource

Last Updated:Oct 16, 2025

Queries the details of a resource group.

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

eas:DescribeResource

get

*Resource

acs:eas:{#regionId}:{#accountId}:resource/{#ResourceId}

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:

  • Dedicated: a dedicated resource group

  • SelfManaged: a self-managed resource group

Valid values:

  • SelfManaged :

    SelfManaged

  • Dedicated :

    Dedicated

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.