DescribeResource

Updated at:

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 where the resource group resides.

cn-shanghai

ResourceId

string

Yes

The ID of the resource group. To query the resource group ID, see ListResources.

eas-r-asdasdasd

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

The resource group details.

RequestId

string

The request ID.

902976F2-6FAF-5404-8A4D-6CC223***

ResourceId

string

The Elastic Algorithm Service resource ID.

eas-r-glkfpsxuw57x1h*****

ResourceName

string

The Elastic Algorithm Service resource name.

my-resouce****

ClusterId

string

The ID of the cluster where the resource group resides.

cn-beijing

CreateTime

string

The time when the resource group was created, in UTC and RFC 3339 format.

2020-05-19T14:19:42Z

UpdateTime

string

The time when the resource group was last updated, in UTC and RFC 3339 format.

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

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, 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

The returned message.

Resource is ready

ExtraData

string

The additional information, such as the VPC connectivity status and Simple Log Service 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 resource group type. Valid values:

  • Dedicated: dedicated resource group

  • SelfManaged: self-managed resource group

Valid values:

  • SelfManaged :

    SelfManaged

  • Dedicated :

    Dedicated

Dedicated

UsageMode

string

The usage mode of the resource group.

Valid values:

  • inference :

    EPS resource group for inference services.

  • sandbox :

    Sandbox resource group.

inference

InstanceMaxAllocatableMemory

integer

The maximum allocatable memory size per node in the resource group.

2048

Features

array

The set of features supported by the resource group.

string

A specific feature supported by the resource group. Currently, only GpuShare (GPU splitting) is supported.

GpuShare

InstanceMaxAllocatableGPU

number

The maximum number of allocatable GPUs per node in the resource group.

2

InstanceMaxAllocatableCPU

integer

The maximum number of allocatable CPU cores per 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,
  "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.