全部文档
当前文档

暂无内容

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

文档中心

实例定时删除

请求参数

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

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

示例值:13536cc1-0dbd-4741-87d3-f7abbb0db320
AutoDeleteTime String

自动删除时间

示例值:格式:2019-07-16 18:56;该时间必须至少大于当前时间30分钟。如果不传入此参数,启动此接口则是关闭自动删除功能;此参数同时可以用于修改自动删除时间
AutoDeleteEip Boolean

随主机定时删除绑定的弹性IP,包年包月的弹性IP只解绑,不删除;只有AutoDeleteTime有效值生效时,该参数才生效

示例值:false

返回参数

参数名称
类型
描述
RequestId String
示例值:1884ac77-606b-4172-8dd7
Return Boolean
示例值:true

请求示例

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

返回示例

JSON格式

{
"RequestId":"1884ac77-606b-4172-8dd7",
"Return":"true"
}

错误码

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

错误码
错误信息
Http状态码
描述
InstanceTypeOrBillTypeIsInvalidInstanceType or BillType are not supported400实例的机型或计费方式不支持
AutoDeleteTimeIsInvalidThe deletion time must be 30 minutes or more later than the current time.400删除时间必须晚于当前时间30分钟及以上
IsDockerInstanceCanNotDeleteThe container master node can no longer be deleted regularly in the console settings.400容器主节点不能在主机控制台设置定时删除
AutoPreMigrateTimeShouldBeforeAutoDeleteTimeThe auto preMigrate time cannot be later than the auto deletion time.400定时预迁移时间不能晚于定时删除时间。
InstanceIdInvalidParameterValueAn invalid or out-of-range value was supplied for the "instanceId" parameter.400“实例ID”参数的取值无效或者超出有效范围
纯净模式常规模式

纯净模式

点击可全屏预览文档内容