UpdateResourceInstance
Updates the scheduling status of machine instances in a dedicated resource group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateResourceInstance |
update |
*Resource
|
None | None |
Request syntax
PUT /api/v2/resources/{ClusterId}/{ResourceId}/instances/{InstanceId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the region where the instance resides. |
cn-beijing |
| ResourceId |
string |
Yes |
The ID of the resource group to which the instance belongs. For information about how to query the resource group ID, see ListResources. |
eas-r-asdas**** |
| InstanceId |
string |
Yes |
The ID of the instance. For information about how to obtain the instance ID, see ListResourceInstances. |
eas-i-asdas**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| Action |
string |
Yes |
Updates the scheduling behavior of machine instances in a dedicated resource group. Valid values:
Valid values:
|
Cordon |
| NewDiskSize |
string |
No |
The size of the system cloud disk after expansion. Unit: GiB. This parameter takes effect only when Action is set to ResizeDisk. |
500 |
| Reason |
string |
No |
The reason for the operation. This parameter takes effect only when Action is set to Cordon or Drain. |
Node maintenance |
| NewDiskPerformanceLevel |
string |
No |
The performance level (PL) of the system cloud disk after the upgrade. This parameter takes effect only when Action is set to UpgradeDiskPerformanceLevel. Valid values:
|
PL2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| ResourceId |
string |
The resource group ID. |
eas-r-asdasdasd |
| InstanceId |
string |
The instance name. |
eas-i-asdasdasd |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"ResourceId": "eas-r-asdasdasd",
"InstanceId": "eas-i-asdasdasd\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.