开发者社区> 问答> 正文

云监控批量查询插件运行状态


描述
批量查询云监控插件状态。

请求方式
GET

请求参数

名称类型是否必须描述
ActionString操作接口名,系统规定参数。取值:NodeStatusList
InstanceIdsString实例id。 例如:i-22jja5c2l,多个id使用英文逗号分隔


返回参数
名称类型描述
ErrorCodeInteger错误码,200为成功,其他为失败
ErrorMessageString错误提示
SuccessString本次操是否成功,等价与errorCode200
RequestIdString请求的唯一ID用于定位错误
NodeStatusListNodeStatus ArrayNode状态的列表


错误编码
错误代码描述语义
400Bad Request客户端请求中的语法错误
403Forbidden没有权限
404Not Found客户端错误,未找到
500Internal Server Error服务器内部错误
200OK正常


NodeStatus模型
名称类型描述
instanceIdString实例id
statusString参考NodeStatus Agent运行状态
autoInstallBoolean是否可以使用安装接口自动安装


示例
  • 请求示例
  1. [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//metrics.cn-hangzhou.aliyuncs.com/?Action=NodeStatusList
  2. [backcolor=transparent]&[backcolor=transparent]InstanceIds[backcolor=transparent]=[backcolor=transparent] i[backcolor=transparent]-[backcolor=transparent]abcdefgh123456[backcolor=transparent]%[backcolor=transparent]2C[backcolor=transparent] i[backcolor=transparent]-[backcolor=transparent]abcdefgh123457
  3. [backcolor=transparent]&<公共请求参数>
  • 返回实例

XML格式
  1. [backcolor=transparent]<NodeStatusListResponse>
  2. [backcolor=transparent]  [backcolor=transparent]<NodeStatusList>
  3. [backcolor=transparent]    [backcolor=transparent]<NodeStatus>
  4. [backcolor=transparent]      [backcolor=transparent]<Status>[backcolor=transparent]running[backcolor=transparent]</Status>
  5. [backcolor=transparent]      [backcolor=transparent]<InstanceId>[backcolor=transparent] i-abcdefgh123456[backcolor=transparent]</InstanceId>
  6. [backcolor=transparent]      [backcolor=transparent]<AutoInstall>[backcolor=transparent]true[backcolor=transparent]</AutoInstall>
  7. [backcolor=transparent]    [backcolor=transparent]</NodeStatus>
  8. [backcolor=transparent]    [backcolor=transparent]<NodeStatus>
  9. [backcolor=transparent]      [backcolor=transparent]<Status>[backcolor=transparent]uninstalled[backcolor=transparent]</Status>
  10. [backcolor=transparent]      [backcolor=transparent]<InstanceId>[backcolor=transparent] i-abcdefgh123457[backcolor=transparent]</InstanceId>
  11. [backcolor=transparent]      [backcolor=transparent]<AutoInstall>[backcolor=transparent]true[backcolor=transparent]</AutoInstall>
  12. [backcolor=transparent]    [backcolor=transparent]</NodeStatus>
  13. [backcolor=transparent]  [backcolor=transparent]</NodeStatusList>
  14. [backcolor=transparent]  [backcolor=transparent]<Success>[backcolor=transparent]true[backcolor=transparent]</Success>
  15. [backcolor=transparent]  [backcolor=transparent]<ErrorCode>[backcolor=transparent]200[backcolor=transparent]</ErrorCode>
  16. [backcolor=transparent]</NodeStatusListResponse>

JSON格式
  1. [backcolor=transparent]{
  2. [backcolor=transparent]    [backcolor=transparent]"NodeStatusList"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  3. [backcolor=transparent]        [backcolor=transparent]"NodeStatus"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
  4. [backcolor=transparent]            [backcolor=transparent]{
  5. [backcolor=transparent]                [backcolor=transparent]"Status"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"running"[backcolor=transparent],[backcolor=transparent]
  6. [backcolor=transparent]                [backcolor=transparent]"InstanceId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]" i-abcdefgh123456"[backcolor=transparent],[backcolor=transparent]
  7. [backcolor=transparent]                [backcolor=transparent]"AutoInstall"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true
  8. [backcolor=transparent]            [backcolor=transparent]},[backcolor=transparent]
  9. [backcolor=transparent]            [backcolor=transparent]{
  10. [backcolor=transparent]                [backcolor=transparent]"Status"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"uninstalled"[backcolor=transparent],[backcolor=transparent]
  11. [backcolor=transparent]                [backcolor=transparent]"InstanceId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]" i-abcdefgh123457"[backcolor=transparent],[backcolor=transparent]
  12. [backcolor=transparent]                [backcolor=transparent]"AutoInstall"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true
  13. [backcolor=transparent]            [backcolor=transparent]}
  14. [backcolor=transparent]        [backcolor=transparent]]
  15. [backcolor=transparent]    [backcolor=transparent]},[backcolor=transparent]
  16. [backcolor=transparent]    [backcolor=transparent]"ErrorCode"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]200[backcolor=transparent],[backcolor=transparent]
  17. [backcolor=transparent]    [backcolor=transparent]"Success"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true
  18. [backcolor=transparent]}

展开
收起
反向一觉 2017-10-31 14:01:43 1878 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
《阿里云云拨测发布》PDF 立即下载
MaxCompute Logview参数详解和问题排查(废弃) 立即下载
ARMS 智能告警套件最佳实践 立即下载