本文摘自PHP中文网,作者坏嘻嘻,侵删。
本篇文章给大家带来的内容是关于如何所有可能的实例状态中批量获取实例状态信息,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。DescribeInstanceStatus
批量获取实例状态信息。
描述
能查询到的所有可能的实例状态参阅 实例状态表。
该接口同时可用于获取实例列表。
请求参数

返回参数

示例
请求示例
1 2 3 | https:
&RegionId=cn-hangzhou
&<公共请求参数>
|
返回示例
XML 格式
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <DescribeInstanceStatusResponse>
<RequestId>6EF60BEC-0242-43AF-BB20-270359FB54A7</RequestId>
<TotalCount>2</TotalCount>
<PageNumber>1</PageNumber>
<PageSize>10</PageSize>
<InstanceStatuses>
<InstanceStatus>
<InstanceId>i-instance1</InstanceId>
<Status>Running</Status>
</InstanceStatus>
<InstanceStatus>
<InstanceId>i-ae4r89pp</InstanceId>
<Status>Stopped</Status>
</InstanceStatus>
</InstanceStatuses>
</DescribeInstanceStatusResponse>
|
JSON 格式
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | {
"RequestId" : "6EF60BEC-0242-43AF-BB20-270359FB54A7" ,
"TotalCount" : 2,
"PageNumber" : 1,
"PageSize" : 10,
"InstanceStatuses" : {
"InstanceStatus" : [{
"InstanceId" : "i-instance1" ,
"Status" : "Running"
},
{
"InstanceId" : "i-ae4r89pp" ,
"Status" : "Stopped"
}]
}
}
|
错误码
以下为本接口特有的错误码。更多错误码,请访问 API 错误中心。

以上就是如何所有可能的实例状态中批量获取实例状态信息的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
Linux如何查看系统是否重启了
Linux如何使用mkdir命令创建目录?(示例详解)
Linux--bash 和 shell讲解
Linux系统安装软件失败的总结
Linux如何重启nginx?
超全面的Linux基础知识整理
压缩tar.gz命令是什么
Linux中的scp命令怎么用?(用法详解)
创建模板之后如何查询可用的实例启动模板
取消一件或多件处于scheduled或executing状态的模拟系统事件
更多相关阅读请进入《Linux》频道 >>
转载请注明出处:木庄网络博客 » 如何所有可能的实例状态中批量获取实例状态信息