云日志服务 LTS-查询主机组:请求示例

时间:2023-12-15 10:07:03

请求示例

查询主机组信息,根据传入的Body体进行过滤。若是body体中无过滤参数,则查询全量数据。

POST https://{endpoint}/v3/{project_id}/lts/host-group-list

{
  "host_group_id_list" : [ "bca6d903-3528-42a8-91f4-586722cxxxxx" ],
  "filter" : {
    "host_group_type" : "lixxx",
    "host_group_name_list" : [ "wjyTxxx", "xxxest" ],
    "host_name_list" : [ "ecs-apmtexxx删" ],
    "host_group_tag" : {
      "tag_type" : "AND",
      "tag_list" : [ {
        "key" : "xxx",
        "value" : "xxx"
      } ]
    }
  }
}
support.huaweicloud.com/api-lts/ListHostGroup.html