All Products
Search
Document Center

Platform For AI:DescribeResource

Last Updated:Jun 11, 2026

Mengambil detail kelompok sumber daya.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

eas:DescribeResource

get

*Resource

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

None None

Sintaks permintaan

GET /api/v2/resources/{ClusterId}/{ResourceId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

ID kluster yang berisi kelompok sumber daya.

cn-shanghai

ResourceId

string

Yes

ID kelompok sumber daya. Panggil ListResources untuk mendapatkan ID ini.

eas-r-asdasdasd

Parameter permintaan

Parameter

Type

Required

Description

Example

Tidak ada parameter yang diperlukan.

Elemen respons

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

Contoh

Respons sukses

JSONformat

{
  "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
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.