开发者社区> 问答> 正文

云监控查询联系人组

反向一觉 2017-10-31 13:57:33 1166

描述
查询云账号下对应的报警规则联系人组。

请求类型
GET/POST

请求参数
名称类型是否必须描述
ActionString系统规定参数,取值:ListContactGroup
PageNumberPageNumber页数,默认值为第1页
PageSizePageNumber页大小,默认值为100


返回参数
名称类型描述
NextTokenInteger下一页,为空代表没有下一页
DatapointsList< String >联系组名称列表
TotalInteger符合条件数据总数
SuccessBoolean请求是否成功
RequestIdString请求的uuid,便于查询日志
CodeString请求失败状态码,200为成功,非200为失败
MessageString请求失败的提示信息


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


示例
  • 请求示例
  1. [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//metrics.cn-hangzhou.aliyuncs.com/?Action=ListContactGroup
  2. [backcolor=transparent]&[backcolor=transparent]PageSize[backcolor=transparent]=[backcolor=transparent]5
  3. [backcolor=transparent]&[backcolor=transparent]PageNumber[backcolor=transparent]=[backcolor=transparent]1
  4. [backcolor=transparent]&<公共请求参数>
  • 返回示例

XML格式
  1. [backcolor=transparent]<ListContactGroupResponse>
  2. [backcolor=transparent]  [backcolor=transparent]<RequestId>[backcolor=transparent]DCE1419F-D60C-441C-81C3-7425B9211AC5[backcolor=transparent]</RequestId>
  3. [backcolor=transparent]  [backcolor=transparent]<ContactGroups>
  4. [backcolor=transparent]    [backcolor=transparent]<ContactGroup>[backcolor=transparent]test4nudou[backcolor=transparent]</ContactGroup>
  5. [backcolor=transparent]    [backcolor=transparent]<ContactGroup>[backcolor=transparent]xzytestgroup[backcolor=transparent]</ContactGroup>
  6. [backcolor=transparent]    [backcolor=transparent]<ContactGroup>[backcolor=transparent]云账号报警联系人[backcolor=transparent]</ContactGroup>
  7. [backcolor=transparent]  [backcolor=transparent]</ContactGroups>
  8. [backcolor=transparent]  [backcolor=transparent]<Success>[backcolor=transparent]true[backcolor=transparent]</Success>
  9. [backcolor=transparent]  [backcolor=transparent]<Code>[backcolor=transparent]200[backcolor=transparent]</Code>
  10. [backcolor=transparent]  [backcolor=transparent]<Total>[backcolor=transparent]3[backcolor=transparent]</Total>
  11. [backcolor=transparent]</ListContactGroupResponse>

JSON格式
  1. [backcolor=transparent]{
  2. [backcolor=transparent]    [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"D3D03B0A-CF1A-4DAB-BF0D-D4B6ACD5677A"[backcolor=transparent],[backcolor=transparent]
  3. [backcolor=transparent]    [backcolor=transparent]"ContactGroups"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  4. [backcolor=transparent]        [backcolor=transparent]"ContactGroup"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
  5. [backcolor=transparent]            [backcolor=transparent]"test4nudou"[backcolor=transparent],[backcolor=transparent]
  6. [backcolor=transparent]            [backcolor=transparent]"xzytestgroup"[backcolor=transparent],[backcolor=transparent]
  7. [backcolor=transparent]            [backcolor=transparent]"云账号报警联系人"
  8. [backcolor=transparent]        [backcolor=transparent]]
  9. [backcolor=transparent]    [backcolor=transparent]},[backcolor=transparent]
  10. [backcolor=transparent]    [backcolor=transparent]"Success"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],[backcolor=transparent]
  11. [backcolor=transparent]    [backcolor=transparent]"Code"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"200"[backcolor=transparent],[backcolor=transparent]
  12. [backcolor=transparent]    [backcolor=transparent]"Total"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]3
  13. [backcolor=transparent]}

分享到
取消 提交回答
全部回答(0)
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

推荐文章