云日志服务 LTS-创建主机组:请求示例

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

请求示例

创建主机组,host_group_name和host_group_type为必填参数

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

{
  "host_group_name" : "APIxx3",
  "host_group_type" : "linxx",
  "host_id_list" : [ "dc1dab7e-b045-4e77xxd1bf7", "713a9fxx2df-24c4ca599def" ],
  "host_group_tag" : [ {
    "key" : "xxx",
    "value" : "xxx"
  }, {
    "key" : "xxx1",
    "value" : "xxx"
  } ]
}
support.huaweicloud.com/api-lts/CreateHostGroup.html