參數

參數名字 描述
subnet
必填

Validations:

  • Must be a Hash

subnet[name]
必填

子網路名稱

Validations:

  • Must be String

subnet[network_type]
選填

Type or protocol, IPv4 or IPv6, defaults to IPv4

Validations:

  • Must be one of: IPv4, IPv6.

subnet[network]
必填

子網路

Validations:

  • Must be String

subnet[mask]
必填

這個子網路的網路遮罩

Validations:

  • Must be String

subnet[gateway]
選填

這個子網路的主要 DNS

Validations:

  • Must be String

subnet[dns_primary]
選填

這個子網路的主要 DNS

Validations:

  • Must be String

subnet[dns_secondary]
選填

這個子網路的次要 DNS

Validations:

  • Must be String

subnet[ipam]
選填

Enable IP Address auto suggestion for this subnet

Validations:

  • Must be 'true' or 'false' or '1' or '0'

subnet[from]
選填

IP 自動建議的起始 IP 位址

Validations:

  • Must be String

subnet[to]
選填

IP 自動建議的結尾 IP 位址

Validations:

  • Must be String

subnet[vlanid]
選填

這個子網路的 VLAN ID

Validations:

  • Must be String

subnet[domain_ids]
選填

這個子網路所屬於的網域

Validations:

  • Must be an array of any type

subnet[dhcp_id]
選填

在此子網路中使用的 DHCP 代理伺服器

Validations:

  • Must be a number.

subnet[tftp_id]
選填

使用於這個子網路中的 TFTP 代理伺服器

Validations:

  • Must be a number.

subnet[dns_id]
選填

DNS Proxy to use within this subnet

Validations:

  • Must be a number.