參數

參數名字 描述
id
必填

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

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]
選填 , 允許空值

介面卡的 Foremane 子網路 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。僅適用於 bond 介面卡。


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