设置移除保护

最近更新时间:2020-12-18 18:47:01

SetKvmProtectedDetach(设置移除保护)

Request Parameters(请求参数)

ScalingGroupId

  • 伸缩组ID
  • 类型:String
  • 是否可缺省:否

ScalingInstanceId.N

  • 需设置移除保护的云服务器数组,下标从0开始
  • 类型:Array
  • 是否可缺省:否

ProtectedFromDetach

  • 移除保护标志位
  • 类型:int
  • 有效值:1:设置子机移除保护;0:取消子机移除保护
  • 是否可缺省:是
Response Elements(返回值)

RequestId

  • 请求ID
  • 类型: String

ScalingInstanceCountCount

  • 伸缩组实例数量
  • 类型:Int

ScalingInstanceCountSet

  • 伸缩活动集合

Examples(例子)

Sample Request(请求)
http://kec.cn-beijing-6.api.ksyun.com/?Action=SetKvmProtectedDetach&Version=2016-03-04&ScalingGroupId=426837159460544512&ScalingInstanceId.0=4c58f553-6245-4824-9a34-9f88s5e120593
Sample Response(返回)
{
    "RequestId": "16418927-9644-4944-93ef-2357d07e3f08",
    "ScalingInstanceCount": 1,
    "ScalingInstanceSet": [
        {
            "InstanceId": "4c5b8053-6245-4824-9a34-9f866b5f0593",
            "InstanceName": "KSC-IN-0EE0EA3C6A",
            "HealthStatus": "Healthy",
            "CreationType": "Manual",
            "AddTime": "2020-03-17 11:00:12",
            "ProtectedFromScaleIn": 0
        }
    ],
    "DesiredCapacity": 1
}

金山云,开启您的云计算之旅

免费注册