参数

参数名字 描述
host
必填

Value:

Must be a Hash

host[name]
必填

Value:

Must be String

host[environment_id]
选填 , 允许空值

如果已管理主机,且数值不是从主机组中继承,则需填写。


Value:

Must be String

host[ip]
选填 , 允许空值

如果使用附带 DHCP 代理服务器的子网则不需要


Value:

Must be String

host[mac]
选填 , 允许空值

如果管理的主机为裸机则需要填写,如果为虚拟机,则不需要。


Value:

Must be String

host[architecture_id]
选填 , 允许空值

如果已管理主机,且数值不是从主机组中继承,则需填写。


Value:

Must be a number.

host[domain_id]
选填 , 允许空值

如果已管理主机,且数值不是从主机组中继承,则需填写。


Value:

Must be a number.

host[realm_id]
选填 , 允许空值

Value:

Must be a number.

host[puppet_proxy_id]
选填 , 允许空值

Value:

Must be a number.

host[puppet_class_ids]
选填 , 允许空值

Value:

Must be an array of any type

host[operatingsystem_id]
选填 , 允许空值

如果已管理主机,且数值不是从主机组中继承,则需填写。


Value:

Must be String

host[medium_id]
选填 , 允许空值

如果不是基于置备的映像,且用于管理主机,同时数值不是来自主机组,则需要填写。


Value:

Must be String

host[ptable_id]
选填 , 允许空值

如果已管理主机,且未定义自定义分区,则需填写。


Value:

Must be a number.

host[subnet_id]
选填 , 允许空值

如果已管理主机,且数值不是从主机组中继承,则需填写。


Value:

Must be a number.

host[compute_resource_id]
选填 , 允许空值

nil 说明主机是裸机


Value:

Must be a number.

host[root_pass]
选填 , 允许空值

如果已管理主机,且数值不是从主机组或设置中的默认密码继承,则需填写。


Value:

Must be String

host[model_id]
选填 , 允许空值

Value:

Must be a number.

host[hostgroup_id]
选填 , 允许空值

Value:

Must be a number.

host[owner_id]
选填 , 允许空值

Value:

Must be a number.

host[owner_type]
选填 , 允许空值

主机拥有者类型


Value:

Must be one of: User, Usergroup.

host[puppet_ca_proxy_id]
选填 , 允许空值

Value:

Must be a number.

host[image_id]
选填 , 允许空值

Value:

Must be a number.

host[host_parameters_attributes]
选填 , 允许空值

Host's parameters (array or indexed hash)


Value:

Must be an Array of nested elements

host[host_parameters_attributes][name]
必填

Name of the parameter


Value:

Must be String

host[host_parameters_attributes][value]
必填

Parameter value


Value:

Must be String

host[build]
选填 , 允许空值

Value:

Must be 'true' or 'false'

host[enabled]
选填 , 允许空值

Value:

Must be 'true' or 'false'

host[provision_method]
选填 , 允许空值

The method used to provision the host. Possible provision_methods may be build (基本网络), image (基础介质)


Value:

Must be String

host[managed]
选填 , 允许空值

用来表示主机被管理或没有被管理的 True/False 标签。注:这个值还决定是否需要一些参数。


Value:

Must be 'true' or 'false'

host[progress_report_id]
选填 , 允许空值

用来跟踪复杂任务状态的 UUID,GET /api/orchestration/:UUID/tasks


Value:

Must be String

host[comment]
选填 , 允许空值

本机附加信息


Value:

Must be String

host[capabilities]
选填 , 允许空值

Value:

Must be String

host[compute_profile_id]
选填 , 允许空值

Value:

Must be a number.

host[interfaces_attributes]
选填 , 允许空值

Host's network interfaces.


Value:

Must be an Array of nested elements

host[interfaces_attributes][mac]
选填 , 允许空值

MAC address of interface. Required for managed interfaces on bare metal.


Value:

Must be String

host[interfaces_attributes][ip]
选填 , 允许空值

接口 IP 地址


Value:

Must be String

host[interfaces_attributes][type]
选填 , 允许空值

Interface type, e.g. bmc. Default is interface


Value:

Must be one of: interface, bmc, bond, bridge.

host[interfaces_attributes][name]
选填 , 允许空值

Interface's DNS name


Value:

Must be String

host[interfaces_attributes][subnet_id]
选填 , 允许空值

接口的 Foreman 子网 ID


Value:

Must be Fixnum

host[interfaces_attributes][domain_id]
选填 , 允许空值

Foreman domain ID of interface. Required for primary interfaces on managed hosts.


Value:

Must be Fixnum

host[interfaces_attributes][identifier]
选填 , 允许空值

设备标识符,例如:eth0 或者 eth1.1。


Value:

Must be String

host[interfaces_attributes][managed]
选填 , 允许空值

这个接口应由 DHCP 管理还是由 DNS 智能代理服务器管理?是否应在配置过程中对其进行配置?


Value:

Must be 'true' or 'false'

host[interfaces_attributes][primary]
选填 , 允许空值

Should this interface be used for constructing the FQDN of the host? Each managed hosts needs to have one primary interface.


Value:

Must be 'true' or 'false'

host[interfaces_attributes][provision]
选填 , 允许空值

Should this interface be used for TFTP of PXELinux (or SSH for image-based hosts)? Each managed hosts needs to have one provision interface.


Value:

Must be 'true' or 'false'

host[interfaces_attributes][username]
选填 , 允许空值

仅用于 BMC 接口


Value:

Must be String

host[interfaces_attributes][password]
选填 , 允许空值

仅用于 BMC 接口


Value:

Must be String

host[interfaces_attributes][provider]
选填 , 允许空值

结构提供者,例如 IPMI。仅用于 BMC 接口。


Value:

Must be one of: IPMI.

host[interfaces_attributes][virtual]
选填 , 允许空值

别名或 VLAN 失败


Value:

Must be 'true' or 'false'

host[interfaces_attributes][tag]
选填 , 允许空值

VLAN 标签,这个属性优先于子网 VLAN ID。仅用于虚拟接口。


Value:

Must be String

host[interfaces_attributes][attached_to]
选填 , 允许空值

这个接口所属接口识别符,例如:eth1。仅用于虚拟接口。


Value:

Must be String

host[interfaces_attributes][mode]
选填 , 允许空值

接口的捆绑模式,例如:balance-rr。仅用于捆绑接口。


Value:

Must be one of: balance-rr, active-backup, balance-xor, broadcast, 802.3ad, balance-tlb, balance-alb.

host[interfaces_attributes][attached_devices]
选填 , 允许空值

Identifiers of attached interfaces, e.g. `['eth1', 'eth2']`. For bond interfaces those are the slaves. Only for bond and bridges interfaces.


Value:

Must be an array of any type

host[interfaces_attributes][bond_options]
选填 , 允许空值

空间分割选项,例如:miimon=100。仅用于捆绑接口。


Value:

Must be String

host[interfaces_attributes][compute_attributes]
选填 , 允许空值

Additional compute resource specific attributes for the interface.


Value:

Must be Hash

host[compute_attributes]
选填 , 允许空值

Additional compute resource specific attributes.


Value:

Must be Hash