检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
参数 参数类型 描述 host_id String 主机id host_name String 主机名称 os_type String 操作系统类型,包含如下2种。 Linux :Linux。 Windows :Windows。 auth_switch Boolean 是否开启双因子认证
字符长度1-256位 默认取值: 0 os_type 否 String os类型:Windows和Linux os_arch 是 String 系统架构:x86_64和aarch64;当os_type为Windows时,只能选择x86_64 outside_host 否 Boolean
息头中X-Subject-Token的值) 表4 请求Body参数 参数 是否必选 参数类型 描述 os_type 是 String 操作系统类型,包含如下2种。 Linux :Linux。 Windows :Windows。 policy_name 是 String 策略名称 ports_list
String 策略名称 port_list Array of port_list objects 端口与协议 os_type String 操作系统类型,包含如下2种。 Linux :Linux。 Windows :Windows。 white_ip Array of strings ip白名单
is_default Boolean 是否默认 port_list Array of integers 端口列表 os_type String 操作系统类型,包含如下2种。 Linux :Linux。 Windows :Winodws. status String 防护状态,包含如下3种 applying
K代码示例。 状态码 状态码 描述 200 请求已成功 400 参数非法 401 鉴权失败 403 权限不足 404 资源未找到 500 系统异常 错误码 请参见错误码。 父主题: 主机管理
弹性公网IP地址 private_ip String 服务器私有IP agent_id String Agent ID os_type String 操作系统类型,包含如下2种。 Linux :Linux Windows :Winodws group_id String 服务器组ID 请求示例 无
否 Array of custom_backup_hosts objects 自定义备份主机使用的存储库及备份名称;不在该列表中的主机备份时系统会自动选取剩余空间最大的存储库,并自动生成备份名称 表5 VulOperateInfo 参数 是否必选 参数类型 描述 vul_id 是 String
取容器信息失败 "docker_offline":docker引擎不在线 "get_docker_root_failed":获取容器根文件系统失败 "image_not_exist_or_docker_api_fault":镜像不存在或docker接口错误 "huge_image":超大镜像
服务器私网ip group_id String 服务器组id group_name String 服务器组名称 os_type String 操作系统 asset_value String 资产重要性,包含如下3种 important :重要资产 common :一般资产 test :测试资产