All Products
Search
Document Center

Platform For AI:DescribeVirtualResource

Last Updated:Jun 11, 2026

Mengkueri detail kelompok sumber daya virtual.

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:DescribeVirtualResource

get

*VirtualResource

acs:eas:{#regionId}:{#accountId}:virtualresource/{#VirtualResourceId}

None None

Sintaks permintaan

GET /api/v2/virtualresources/{ClusterId}/{VirtualResourceId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

Wilayah tempat kelompok sumber daya virtual berada.

cn-shanghai

VirtualResourceId

string

Yes

ID kelompok sumber daya virtual.

eas-vr-npovr28onap1xxxxxx

Parameter permintaan

Parameter

Type

Required

Description

Example

Tidak ada parameter yang diperlukan.

Elemen respons

Element

Type

Description

Example

object

The details of the virtual resource group.

RequestId

string

The request ID.

40325405-579C-4D82****

Resources

array<object>

The list of resources in the virtual resource group.

object

The details of the resource.

Region

string

The region where the resource is located.

cn-hangzhou

Priority

integer

The scheduling priority of the resource. A larger value indicates a higher priority.

3

InstanceType

string

The instance type of the public resource group.

ecs.s6-c1m2.xlarge

QuotaId

string

The ID of the Lingjun resource quota.

quota185lqxxxxxx

SpotPriceLimit

number

The maximum price for a spot instance in the public resource group.

10.05

ResourceId

string

The ID of the dedicated resource group.

eas-r-g55ieatgg3buxxxxxx

CreateTime

string

The time when the virtual resource group was created.

2024-10-16T17:52:49Z

UpdateTime

string

The time when the virtual resource group was last updated.

2024-10-16T19:52:49Z

VirtualResourceId

string

The ID of the virtual resource group.

eas-vr-npovr28onap1xxxxxx

VirtualResourceName

string

The name of the virtual resource group.

MyVirtualResource

ServiceCount

integer

The number of deployed services.

1

DisableSpotProtectionPeriod

boolean

Indicates whether the protection period for spot instances is disabled.

true

Features

array

The collection of features for the virtual resource group. This identifies the attributes that the resource group supports.

string

The specific attributes that the virtual resource group supports. Currently, only GpuShare (GPU sharing) is supported.

GpuShare

Contoh

Respons sukses

JSONformat

{
  "RequestId": "40325405-579C-4D82****",
  "Resources": [
    {
      "Region": "cn-hangzhou",
      "Priority": 3,
      "InstanceType": "ecs.s6-c1m2.xlarge\n",
      "QuotaId": "quota185lqxxxxxx\n",
      "SpotPriceLimit": 10.05,
      "ResourceId": "eas-r-g55ieatgg3buxxxxxx\n"
    }
  ],
  "CreateTime": "2024-10-16T17:52:49Z\n",
  "UpdateTime": "2024-10-16T19:52:49Z\n",
  "VirtualResourceId": "eas-vr-npovr28onap1xxxxxx\n",
  "VirtualResourceName": "MyVirtualResource\n",
  "ServiceCount": 1,
  "DisableSpotProtectionPeriod": true,
  "Features": [
    "GpuShare"
  ]
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.