All Products
Search
Document Center

Platform For AI:UpdateVirtualResource

Last Updated:Jun 11, 2026

Memperbarui informasi tentang 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:UpdateVirtualResource

update

*VirtualResource

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

None None

Sintaks permintaan

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

Path Parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

ID wilayah tempat kelompok sumber daya virtual berada.

cn-hangzhou

VirtualResourceId

string

Yes

ID kelompok sumber daya virtual.

eas-vr-npovr28onap1xxxxxx

Parameter permintaan

Parameter

Type

Required

Description

Example

body

object

No

Parameter permintaan.

Resources

array<object>

No

The resources in the virtual resource group.

Catatan

If you specify this parameter, previous data is overwritten.

object

No

The details of the resource.

Region

string

No

The region in which the resource resides.

cn-hangzhou

Priority

integer

No

The priority of resource scheduling. A greater number indicates a higher priority.

6

InstanceType

string

No

The instance type of the public resource group.

Catatan

You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.

ecs.s6-c1m2.xlarge

ResourceId

string

No

The ID of the dedicated resource group. For information about how to obtain the ID of a dedicated resource group, see ListResources.

Catatan

You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.

eas-r-g55ieatgg3butwrn7a

QuotaId

string

No

The ID of the Lingjun resource quota.

Catatan

You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.

quota185lqf994k6

SpotPriceLimit

number

No

The maximum price of preemptible instances in a public resource group.

Catatan

If you leave this parameter empty, preemptible instances are not used.

10.05

VirtualResourceName

string

No

The new name of the virtual resource group.

NewMyVirtualResource

DisableSpotProtectionPeriod

boolean

No

Specifies whether to disable the retention period of preemptible instances.

true

Elemen respons

Element

Type

Description

Example

object

The data returned.

RequestId

string

The ID of the request.

40325405-579C-4D82****

Message

string

The returned message.

Successfully updated virtual resource eas-vr-npovr28onap1xxxxxx

Contoh

Respons sukses

JSONformat

{
  "RequestId": "40325405-579C-4D82****",
  "Message": "Successfully updated virtual resource eas-vr-npovr28onap1xxxxxx"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.