云日志服务 LTS-查询主机信息:响应示例

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

响应示例

状态码: 200

查询主机信息请求响应成功

{
  "result" : [ {
    "host_id" : "dc1dab7e-b045-4e77-bda4-914xxxxxx",
    "host_ip" : "172.16.xxxx",
    "host_name" : "ecs-apmtexxxxxx",
    "host_status" : "xxxxxx",
    "host_type" : "xxxxx",
    "host_version" : "5.13.xx.x",
    "update_time" : 1637223314526
  } ],
  "total" : 1
}

状态码: 400

BadRequest 非法请求 建议根据error_msg直接修改该请求。

{
  "error_code" : "LTS.1807",
  "error_msg" : "Invalid host id"
}

状态码: 500

表明服务端能被请求访问到,但是服务内部出错

{
  "error_code" : "LTS.0010",
  "error_msg" : "Internal Server Error"
}
support.huaweicloud.com/api-lts/ListHost.html