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

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

级别: 论坛粉丝
发帖
1227
云币
2325
-}:; EGUtd  
描述 C6` Tck!  
批量查询云监控插件状态。 2J;_9 g&M  
:[\M|iAo  
请求方式 tleWJR8oc  
GET W!jg  
@{V bu  
请求参数 +YD_ L  
名称类型是否必须描述
ActionString操作接口名,系统规定参数。取值:NodeStatusList
InstanceIdsString实例id。 例如:i-22jja5c2l,多个id使用英文逗号分隔
 4>R)2g  
Gv\39+9 =  
返回参数 2pQ29  
名称类型描述
ErrorCodeInteger错误码,200为成功,其他为失败
ErrorMessageString错误提示
SuccessString本次操是否成功,等价与errorCode200
RequestIdString请求的唯一ID用于定位错误
NodeStatusListNodeStatus ArrayNode状态的列表
Q  h~  
aWS_z6[t#6  
错误编码 m:-=K  
错误代码描述语义
400Bad Request客户端请求中的语法错误
403Forbidden没有权限
404Not Found客户端错误,未找到
500Internal Server Error服务内部错误
200OK正常
[%LIW%t|  
pE4yx5r5  
NodeStatus模型 !FA[ ]d4  
名称类型描述
instanceIdString实例id
statusString参考NodeStatus Agent运行状态
autoInstallBoolean是否可以使用安装接口动安装
ZVIlVuZ}  
WzhY4"p  
示例 ]iezwz`'  
  • 请求示例
  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]&<公共请求参数>
  • 返回实例
_=Y HO.  
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>
,z5B"o{Et  
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]}
NTV@,  
[ 此帖被反向一觉在2017-10-31 14:02重新编辑 ]
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
验证问题: 阿里云官网域名是什么? 正确答案:www.aliyun.com
上一个 下一个
      ×
      全新阿里云开发者社区, 去探索开发者的新世界吧!
      一站式的体验,更多的精彩!
      通过下面领域大门,一起探索新的技术世界吧~ (点击图标进入)