中断实例变更任务,仅对状态为生效中的实例有效,中断后,实例进入变更中断(suspended)状态。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
elasticsearch:InterruptElasticsearchTask |
none |
*Instance
|
无 | 无 |
请求语法
POST /openapi/instances/{InstanceId}/actions/interrupt HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID。 |
es-cn-n6w1o1x0w001c**** |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| clientToken |
string |
否 |
用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大不超过 64 个 ASCII 字符。 |
5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Code |
string |
错误码。仅当返回异常时显示。 |
InstanceStatusNotSupportCurrentAction |
| Message |
string |
错误信息。仅当返回异常时显示。 |
The cluster is running tasks or in an error status. Try again later. |
| RequestId |
string |
请求 ID。 |
5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D**** |
| Result |
boolean |
返回结果:
|
true |
示例
正常返回示例
JSON格式
{
"Code": "InstanceStatusNotSupportCurrentAction",
"Message": "The cluster is running tasks or in an error status. Try again later.",
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D****",
"Result": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InstanceActivating | Instance is activating. | 实例目前处于生效中。 |
| 400 | InstanceNotFound | The instanceId provided does not exist. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。