开发者社区> 问答> 正文

伸缩配置:删除伸缩配置




描述


删除一个指定的伸缩配置。

  • 伸缩配置在伸缩组中属于生效状态,则该伸缩配置不允许删除。
  • 某个伸缩配置创建的任意一个ECS实例仍存在于伸缩组中,则该伸缩配置不允许删除。


请求参数

名称类型是否必须描述
ActionString操作接口名,系统规定参数,取值:DeleteScalingConfiguration
ScalingConfigurationIdString伸缩配置ID


返回参数


公共参数

错误码


对于所有接口的通用性错误,请参考 客户端错误表服务器端错误表
错误错误代码描述HTTP状态码
指定的伸缩配置在该用户账号下不存在InvalidScalingConfigurationId.NotFoundThe specified scaling configuration does not exist.404
指定的伸缩配置为非inactive状态IncorrectScalingConfigurationLifecycleStateThe current lifecycle state of specified scaling configuration does not support this action.400
指定的伸缩配置还有关联的ECS实例未被删除InstanceInUseYou cannot delete a scaling configuration or scaling group while there is an instance associated with it.400


示例



请求示例

  1. http://ess.aliyuncs.com/?Action=DeleteScalingConfiguration
  2. &ScalingConfigurationId=eOs27Kb0oXvQcUYjEGelJqUy
  3. &<公共请求参数>


返回示例


XML格式:
  1. <DeleteScalingConfigurationResponse>
  2.     <RequestId>61D30272-7111-44D9-BB45-FCB55E4A1410</RequestId>
  3. </DeleteScalingConfigurationResponse>

JSON格式:
  1. "RequestId": "61D30272-7111-44D9-BB45-FCB55E4A1410"

展开
收起
青蛙跳 2018-08-17 13:42:17 1268 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
k8s自动伸缩那些事资料下载 立即下载
弹性云的核心--基于热迁移的弹性调度 立即下载
基于流量的灰度发布和自动弹性实践 立即下载