阿里云
阿里云多端小程序中小企业获客首选
发表主题 回复主题
  • 1075阅读
  • 0回复

[云安全技术和产品专区 ]云监控批量查询插件运行状态

级别: 论坛粉丝
发帖
1227
云币
2325
]DO ~7p[  
描述 TB@0j ;g  
批量查询云监控插件状态。 FB\lUO)U\c  
keMfK ]9  
请求方式 l5*sCp*Z  
GET Uh tk`2O  
'20SoVp  
请求参数 Ny6 daf3f  
名称类型是否必须描述
ActionString操作接口名,系统规定参数。取值:NodeStatusList
InstanceIdsString实例id。 例如:i-22jja5c2l,多个id使用英文逗号分隔
'ZUB:R@[  
$}TK ,/W  
返回参数 U^@8ebv  
名称类型描述
ErrorCodeInteger错误码,200为成功,其他为失败
ErrorMessageString错误提示
SuccessString本次操是否成功,等价与errorCode200
RequestIdString请求的唯一ID用于定位错误
NodeStatusListNodeStatus ArrayNode状态的列表
[JzOsi~R  
*Bj7\8cKC  
错误编码 'cpO"d?{  
错误代码描述语义
400Bad Request客户端请求中的语法错误
403Forbidden没有权限
404Not Found客户端错误,未找到
500Internal Server Error服务内部错误
200OK正常
T]fBVA  
(3[Lz+W.u  
NodeStatus模型 [Up0<`Q{I_  
名称类型描述
instanceIdString实例id
statusString参考NodeStatus Agent运行状态
autoInstallBoolean是否可以使用安装接口动安装
uh8+Y%V p  
}iZ>Gm '5  
示例 N;6@f*3_i  
  • 请求示例
  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]&<公共请求参数>
  • 返回实例
c@ea ;Cv  
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>
"4,Zox{^  
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]}
nG+L'SmI  
[ 此帖被反向一觉在2017-10-31 14:02重新编辑 ]
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
验证问题: 44 + 35 = ?
上一个 下一个
      ×
      全新阿里云开发者社区, 去探索开发者的新世界吧!
      一站式的体验,更多的精彩!
      通过下面领域大门,一起探索新的技术世界吧~ (点击图标进入)