文档中心

StopInstances(关闭实例)

关闭一个或者多个处于“活动状态(active)”的实例,

Request Parameters(请求参数)

InstanceId.N

  • 待关闭实例ID列表
  • 类型: String 列表
  • 是否可缺省: 否

Response Elements(返回值)

RequestId

  • 请求ID
  • 类型: String
  • 是否可缺省: 否

InstancesSet

Examples(例子)

在默认region,关闭一个实例(成功关闭)

Sample Request(请求)
http://kec.api.ksyun.com/?Action=StopInstances&Version=2016-03-04
&InstanceId.1=e007579f-bea2-483e-bfcb-fec760c58167
&AUTHPARAMS
Sample Response(返回)
<?xml version="1.0" encoding="UTF-8"?>
<StopInstancesResponse xmlns="http://vm.ksyun.com/doc/2016-3-09/">
    <InstancesSet>
        <Item>
            <InstanceId>e007579f-bea2-483e-bfcb-fec760c58167</InstanceId>
            <Return>true</Return>
        </Item>
    </InstancesSet>
    <RequestId>77492bfb-3567-4b9b-8f23-bbcc2ab5404c</RequestId>
</StopInstancesResponse>