全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

销毁实例

请求参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数
参数名称
类型
必填
描述
Action String
公共参数,本接口取值:TerminateInstances。
Version String
公共参数,本接口取值:2016-03-04。
InstanceId.N String

待销毁实例ID列表,N的范围为1-100

示例值:13536cc1-0dbd-4741-87d3-f7abbb0db329
ForceDelete Boolean

强制销毁

示例值:-

返回参数

参数名称
类型
描述
RequestId String
示例值:fedb2db9-8be1-4c6a-a3f6-b3b7d11c5020
InstancesSet Object[]
InstanceId String
示例值:e20a594d-ebee-4e19-a360-df3fb7eb35e8
Return Boolean
示例值:true
Message String

请求示例

curl -X GET|POST
'http://kec.api.ksyun.com/?Action=TerminateInstances&Version=2016-03-04'
-H 'authorization: xxx, SignedHeaders=content-type;host;x-amz-date, Signature=xxx'
-H 'cache-control: no-cache'
-H 'content-type: application/x-www-form-urlencoded'
-H 'host: kec.api.ksyun.com'
-H 'x-amz-date: 20170720T022802Z'
-d 'InstanceId.N=xxx&ForceDelete=xxx'

返回示例

JSON格式

{
"RequestId":"fedb2db9-8be1-4c6a-a3f6-b3b7d11c5020",
"InstancesSet":[
{
"InstanceId":"e20a594d-ebee-4e19-a360-df3fb7eb35e8",
"Return":true,
"Message":""
}
]
}

错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码
错误信息
Http状态码
描述
InstanceIdInvalidInstance Resource id is invalid400实例资源ID无效
DockerMasterNotAllowedDeleteInKecConsoleDockerMasterNotAllowedDeleteInKecConsole400容器主节点不允许在主机控制台删除,请到容器控制台删除
DeleteVmNotSupportKeyShutDownThe KeyShutDown state does not allow the customer to delete.400一键关停状态的不允许客户自主删除
InstanceIdRequiredInstanceId is required400InstanceId必传
CheckInstanceTradeStatusAndChargeTypeInstance ID {0} not support operate in current instance status and charge type.400实例ID {0} 不支持当前实例状态和计费类型下的操作.
OperationNotAllowedForOtherLineThe operation is not allowed for otherLine.400非主机业务线实例,不允许在主机控制台做此操作
InternalError400 BAD_REQUEST : : {"RequestId":"1696747798412530437","Error":{"Code":"InstanceIdInvalidParameterValue","Message":"An invalid or out-of-range value was supplied for the \"instanceId\" parameter."}}400
纯净模式常规模式

纯净模式

点击可全屏预览文档内容