克隆主机属性

  • API: PUT /api/{version}/hosts/propery/clone
  • API名称: clone_host_property
  • 功能说明:

    • 中文:克隆主机属性
    • English :clone host property
  • input body:

    1. {
    2. "bk_biz_id":2,
    3. "bk_org_ip":"127.0.0.1",
    4. "bk_dst_ip":"127.0.0.2",
    5. "bk_cloud_id":0
    6. }
  • input字段说明

名称 类型 必填 默认值 说明 Description
bk_org_ip string 源主机ip, 只支持传入单ip origin host ip ,only support single
bk_dst_ip string 目标主机ip, 多个ip用”,”分割 destination host ip, multiple ip splits with “,”
bk_biz_id int 业务ID business ID
bk_cloud_id int 云区域ID cloud area ID
  • output:

    1. {
    2. "result": true,
    3. "bk_error_code": 0,
    4. "bk_error_msg": "",
    5. "data": null
    6. }
  • output字段说明

名称 类型 说明 Description
result bool 请求成功与否。true:请求成功;false请求失败 request result true or false
bk_error_code int 错误编码。 0表示success,>0表示失败错误 error code. 0 represent success, >0 represent failure code
bk_error_msg string 请求失败返回的错误信息 error message from failed request
data null 请求返回的数据 the data response