全部文档
当前文档

暂无内容

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

文档中心

重启实例

请求参数

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

待重启实例ID列表,N的范围为1-100

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

强制重启

示例值:-

返回参数

参数名称
类型
描述
RequestId String
示例值:KEC-df6b45b2-8468-4d00-b2b2-d3c7eb961662004
InstancesSet Object[]
InstanceId String
示例值:b174d8e1-0ea1-4a0f-819e-a78ee01c
Return Boolean
示例值:true

请求示例

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

返回示例

JSON格式

{
"RequestId":"KEC-df6b45b2-8468-4d00-b2b2-d3c7eb961662004",
"InstancesSet":[
{
"InstanceId":"b174d8e1-0ea1-4a0f-819e-a78ee01c",
"Return":true
}
]
}

错误码

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

错误码
错误信息
Http状态码
描述
InstanceStateNotSupportedRebootThe InstanceState for this action not supported.400本操作执行时“实例状态”不支持
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必传
ServiceUnavailable{"RequestId":"KEC-51711cc3-1914-403d-903c-9257ff423723562002","Error":{"Code":"ServiceUnavailable","Message":"I/O error on POST request for \"http://rusone.openstack.sdns.ksyun.com:6004/v2/0516e9b105464bbe93adfcdaa96c5987/os-ksc-resources/check\": connect timed out"}}400服务不可到达
OperationNotAllowedForOtherLineThe operation is not allowed for otherLine.400非主机业务线实例,不允许在主机控制台做此操作
纯净模式常规模式

纯净模式

点击可全屏预览文档内容