全部文档
当前文档

暂无内容

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

文档中心

关闭实例

请求参数

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

待关闭实例ID列表,N的范围为1-100

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

强制关闭

示例值:-
StoppedMode String

关闭模式 KeepCharging (默认参数) 保留并收费
StopCharging 关机不收费

示例值:-

返回参数

参数名称
类型
描述
RequestId String
示例值:1c3e5817-50e5-4b3b-990e-064d934cacbd002
InstancesSet Object[]
InstanceId String
示例值:05474d8d-3f86-4be1-860f-03ff7ad63e88
Return Boolean
示例值:true
Messgae String

请求示例

curl -X GET|POST
'http://kec.api.ksyun.com/?Action=StopInstances&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&ForceStop=xxx&StoppedMode=xxx'

返回示例

JSON格式

{
"RequestId":"1c3e5817-50e5-4b3b-990e-064d934cacbd002",
"InstancesSet":[
{
"InstanceId":"05474d8d-3f86-4be1-860f-03ff7ad63e88",
"Return":true,
"Messgae":""
}
]
}

错误码

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

错误码
错误信息
Http状态码
描述
InstanceIdInvalidInstance Resource id is invalid400实例资源ID无效
InvalidParameter暂无400暂无
InstanceIdLimitExceededThe request was rejected because it attempted to handle instance resources beyond limits.400请求被拒绝,因其处理的实例资源数量超过限制(100)
InstanceIdRequiredInstanceId is required400InstanceId必传
OperationNotAllowedForOtherLineThe operation is not allowed for otherLine.400非主机业务线实例,不允许在主机控制台做此操作
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈