全部文档
当前文档

暂无内容

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

文档中心

启动实例

请求参数

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

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

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

返回参数

参数名称
类型
描述
RequestId String
示例值:8d3b9a8b-87a3-4bda-a35f-2b4301adb703003
InstancesSet Object[]
InstanceId String
示例值:05474d8d-3f86-4be1-860f-03ff7ad63e88
Return Boolean
示例值:true
Message String

请求示例

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

返回示例

JSON格式

{
"RequestId":"8d3b9a8b-87a3-4bda-a35f-2b4301adb703003",
"InstancesSet":[
{
"InstanceId":"05474d8d-3f86-4be1-860f-03ff7ad63e88",
"Return":true,
"Message":""
}
]
}

错误码

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

错误码
错误信息
Http状态码
描述
ProductSellOutInvalidproduct already sell out.400此商品在该机房已售罄.
InstanceIdInvalidInstance Resource id is invalid400实例资源ID无效
InvalidParameter暂无400暂无
InstanceStateNotSupportedThe InstanceState for this action should be "Stopped"400本操作执行时“实例状态”应该是“关闭”
InstanceIdLimitExceededThe request was rejected because it attempted to handle instance resources beyond limits.400请求被拒绝,因其处理的实例资源数量超过限制(100)
InstanceIdRequiredInstanceId is required400InstanceId必传
OrderStateNotSupportedThe current status of the instance does not support this operation.400当前实例状态不支持此操作
ReservePreMigrateQueueNotSupportStartInstanceInstance under the status of premigrating cannot be started.400预迁移中虚机不支持开机
纯净模式常规模式

纯净模式

点击可全屏预览文档内容