部署 CODEARTS DEPLOY-查询主机列表:响应示例

时间:2024-04-10 16:24:46

响应示例

状态码: 200

OK 请求响应成功

{
  "hosts" : [ {
    "host_name" : "100.101.28.203",
    "ip" : "100.101.28.203",
    "port" : 22,
    "os" : "linux",
    "authorization" : {
      "username" : "root",
      "password" : null,
      "private_key" : null,
      "trusted_type" : 0
    },
    "permission" : {
      "can_view" : true,
      "can_edit" : true,
      "can_delete" : true,
      "can_add_host" : true,
      "can_connection_test" : true
    },
    "host_id" : "2cc913cc9a494f09b7320801ebacad02",
    "group_id" : "ab7647b0863c4e969c8949d38d591339",
    "as_proxy" : false,
    "proxy_host_id" : null,
    "owner_id" : "6baa7454109d47c192f22078fe6cda20",
    "owner_name" : "devcloud_devcloud_l00490255_01",
    "updator_id" : "6baa7454109d47c192f22078fe6cda20",
    "updator_name" : "devcloud_devcloud_l00490255_01",
    "connection_status" : "success",
    "install_icagent" : false,
    "create_time" : "2021-04-15 11:01:51",
    "update_time" : "2021-04-21 15:04:24",
    "connection_result" : "连接成功",
    "lastest_connection_time" : "2021-04-15 11:02:00",
    "nick_name" : "AB边账号",
    "proxy_host" : null,
    "group_name" : null,
    "project_id" : "6039d4480efc4dddb178abff98719913",
    "project_name" : null
  } ],
  "total" : 1,
  "group_name" : "test"
}
support.huaweicloud.com/api-deployman/ListHosts.html