漏洞管理服务 CODEARTS INSPECTOR-批量创建主机资产:请求示例

时间:2024-10-14 17:06:43

请求示例

POST https://{endpoint}/v3/{project_id}/hostscan/hosts

{
  "hosts" : [ {
    "ip" : "10.90.2.190",
    "name" : "密钥test190",
    "os_type" : "linux",
    "group_id" : "c322c9acecb244cebf2c5449ba8a1930",
    "ssh_credential_id" : "c8a7b0e4707749dfaaf8764ea827a764",
    "jumper_server_id" : "b22f51d539994e76a325d388e51b9783",
    "smb_credential_id" : ""
  } ]
}
support.huaweicloud.com/api-vss/BatchCreateHosts.html