參數

參數名字 描述
subnet
必填

Validations:

  • Must be a Hash

subnet[name]
必填

子網路名稱

Validations:

  • Must be String

subnet[network]
必填

Subnet network

Validations:

  • Must be String

subnet[mask]
必填

這個子網路的網路遮罩

Validations:

  • Must be String

subnet[gateway]
選填 , 允許空值

Primary DNS for this subnet

Validations:

  • Must be String

subnet[dns_primary]
選填 , 允許空值

Primary DNS for this subnet

Validations:

  • Must be String

subnet[dns_secondary]
選填 , 允許空值

Secondary DNS for this subnet

Validations:

  • Must be String

subnet[ipam]
選填 , 允許空值

IP Address auto suggestion mode for this subnet, valid values are “DHCP”, “Internal DB”, “None”

Validations:

  • Must be String

subnet[from]
選填 , 允許空值

Starting IP Address for IP auto suggestion

Validations:

  • Must be String

subnet[to]
選填 , 允許空值

Ending IP Address for IP auto suggestion

Validations:

  • Must be String

subnet[vlanid]
選填 , 允許空值

VLAN ID for this subnet

Validations:

  • Must be String

subnet[domain_ids]
選填 , 允許空值

這個子網路所屬於的網域

Validations:

  • Must be an array of any type

subnet[dhcp_id]
選填 , 允許空值

DHCP Proxy to use within this subnet

Validations:

  • Must be a number.

subnet[tftp_id]
選填 , 允許空值

TFTP Proxy to use within this subnet

Validations:

  • Must be a number.

subnet[dns_id]
選填 , 允許空值

DNS Proxy to use within this subnet

Validations:

  • Must be a number.

subnet[boot_mode]
選填 , 允許空值

Default boot mode for interfaces assigned to this subnet, valid values are “Static”, “DHCP”

Validations:

  • Must be String

subnet[subnet_parameters_attributes]
選填 , 允許空值

Array of parameters (name, value)

Validations:

  • Must be an array of any type

subnet[location_ids]
選填 , 允許空值

REPLACE locations with given ids

Validations:

  • Must be an array of any type

subnet[organization_ids]
選填 , 允許空值

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type