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

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

响应参数

状态码: 200

表5 响应Body参数

参数

参数类型

描述

result

Array of GetHostListInfo objects

主机列表

total

Long

主机信息总数量

最小值:0

最大值:10000

表6 GetHostListInfo

参数

参数类型

描述

host_id

String

主机ID

最小长度:36

最大长度:36

host_ip

String

主机IP

最小长度:1

最大长度:16

host_name

String

主机名称

最小长度:1

最大长度:128

host_status

String

主机状态。 uninstall:未安装 running:运行 offline:离线 error:异常 plugin error:插件错误 installing:安装中 install-fail:安装失败 upgrading:升级中 upgrading-transient:升级中 upgrade failed:升级失败 upgrade-fail:升级失败 uninstalling:卸载中 uninstalling-transient:卸载中 authentication error:鉴权失败

枚举值:

  • uninstall

  • running

  • offline

  • error

  • plugin error

  • installing

  • install-fail

  • upgrading

  • upgrading-transient

  • upgrade failed

  • upgrade-fail

  • uninstalling

  • uninstalling-transient

  • authentication error

host_type

String

主机类型。linux:linux类型,windows:windows类型

枚举值:

  • linux

  • windows

host_version

String

主机版本

最小长度:1

最大长度:16

update_time

Long

更新时间

最小值:13

最大值:13

状态码: 400

表7 响应Body参数

参数

参数类型

描述

error_code

String

错误码

最小长度:8

最大长度:8

error_msg

String

错误描述

最小长度:1

最大长度:1000

状态码: 500

表8 响应Body参数

参数

参数类型

描述

error_code

String

错误码

最小长度:8

最大长度:8

error_msg

String

错误描述

最小长度:1

最大长度:1000

support.huaweicloud.com/api-lts/ListHost.html