Updates the scheduling status of an instance 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 region ID of the instance. |
cn-beijing |
| ResourceId |
string |
Yes |
The ID of the resource group that contains the instance. For more information, see ListResources. |
eas-r-asdas**** |
| InstanceId |
string |
Yes |
The ID of the instance. For more information, see ListResourceInstances. |
eas-i-asdas**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| Action |
string |
Yes |
The scheduling behavior to update for the instance in the dedicated resource group. Valid values:
Valid values:
|
Cordon |
| NewDiskSize |
string |
No |
||
| Reason |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| ResourceId |
string |
The ID of the resource group. |
eas-r-asdasdasd |
| InstanceId |
string |
The instance ID. |
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.