Memperbarui informasi tentang kelompok sumber daya virtual.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateVirtualResource |
update |
*VirtualResource
|
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.