部署 CODEARTS DEPLOY-新建主机 (推荐):请求示例

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

请求示例

新建主机时需填写主机基本信息,信息包含主机名称、IP地址、端口、用户名、密码等。

https://{endpoint}/v1/resources/host-groups/ab7647b0863c4e969c8949d38d591339/hosts

{
  "host_name" : "100.101.28.215",
  "ip" : "100.101.28.215",
  "port" : "22",
  "os" : "linux",
  "as_proxy" : false,
  "proxy_host_id" : "",
  "authorization" : {
    "username" : "root",
    "password" : "*****",
    "private_key" : "",
    "trusted_type" : 0
  },
  "install_icagent" : true
}
support.huaweicloud.com/api-deployman/CreateHost.html