InterruptElasticsearchTask
Interrupts the instance modification task. This operation is applicable only to instances in the effective state. After the interruption, the instance enters the suspended state.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:InterruptElasticsearchTask |
none |
*Instance
|
None | None |
Request syntax
POST /openapi/instances/{InstanceId}/actions/interrupt HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-n6w1o1x0w001c**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| clientToken |
string |
No |
Ensures the idempotence of the request. The value is generated by the client and must be unique across different requests. The value can be up to 64 ASCII characters in length. |
5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The error code. This parameter is returned only when an error occurs. |
InstanceStatusNotSupportCurrentAction |
| Message |
string |
The error message. This parameter is returned only when an error occurs. |
The cluster is running tasks or in an error status. Try again later. |
| RequestId |
string |
The request ID. |
5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D**** |
| Result |
boolean |
The returned result. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": "InstanceStatusNotSupportCurrentAction",
"Message": "The cluster is running tasks or in an error status. Try again later.",
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D****",
"Result": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstanceActivating | Instance is activating. | Instance is activating. |
| 400 | InstanceNotFound | The instanceId provided does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.