All Products
Search
Document Center

Platform For AI:DescribeResource

Last Updated:Apr 24, 2026

Retrieves 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

Path Parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

The ID of the cluster that contains the resource group.

cn-shanghai

ResourceId

string

Yes

The ID of the resource group. Call ListResources to obtain this ID.

eas-r-asdasdasd

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

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 resource group.

eas-r-glkfpsxuw57x1h*****

ResourceName

string

The name of the resource group.

my-resouce****

ClusterId

string

The ID of the cluster that contains the resource group.

cn-beijing

CreateTime

string

The time the resource group was created.

2020-05-19T14:19:42Z

UpdateTime

string

The time 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 instances in the resource group.

4

PrePaidInstanceCount

integer

The total number of subscription instances in the resource group.

1

PostPaidInstanceCount

integer

The total number of pay-as-you-go instances in the resource group.

3

ServiceCount

string

The number of services deployed in the resource group.

1

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 CPU cores in use.

8

GpuUsed

number

The number of GPUs in use.

2

MemoryUsed

integer

The amount of memory in use, in MB.

2048

Status

string

The status of the resource group.

ResourceReady

Message

string

A message that provides details about the status of the resource group.

Resource is ready

ExtraData

string

Additional 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

UsageMode

string

The usage mode of the resource group.

Valid values:

  • inference :

    A resource group for inference services.

  • sandbox :

    A resource group for sandboxes.

inference

InstanceMaxAllocatableMemory

integer

The maximum amount of memory that can be allocated to a single instance in the resource group, in MB.

2048

Features

array

The features that the resource group supports.

string

A feature that the resource group supports. Currently, only GpuShare (GPU sharing) is supported.

GpuShare

InstanceMaxAllocatableGPU

number

The maximum number of GPUs that can be allocated to a single instance in the resource group.

2

InstanceMaxAllocatableCPU

integer

The maximum number of CPU cores that can be allocated to a single instance 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,
  "ServiceCount": "1",
  "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",
  "UsageMode": "inference",
  "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.