GET /api/subnets
List of subnets

GET /api/domains/:domain_id/subnets
List of subnets for a domain

GET /api/locations/:location_id/subnets
List of subnets per location

GET /api/organizations/:organization_id/subnets
List of subnets per organization

參數

參數名字 描述
domain_id
選填

ID of domain


Value:

Must be String

search
選填

篩選結果


Value:

Must be String

order
選填

排序結果


Value:

Must be String

page
選填

編頁結果


Value:

Must be String

per_page
選填

每個請求的項目數量


Value:

Must be String


GET /api/subnets/:id
Show a subnet

參數

參數名字 描述
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.


POST /api/subnets
Create a subnet

參數

參數名字 描述
subnet
必填

Value:

Must be a Hash

subnet[name]
必填

子網路名稱


Value:

Must be String

subnet[network]
必填

Subnet network


Value:

Must be String

subnet[mask]
必填

這個子網路的網路遮罩


Value:

Must be String

subnet[gateway]
選填 , 允許空值

Primary DNS for this subnet


Value:

Must be String

subnet[dns_primary]
選填 , 允許空值

Primary DNS for this subnet


Value:

Must be String

subnet[dns_secondary]
選填 , 允許空值

Secondary DNS for this subnet


Value:

Must be String

subnet[ipam]
選填 , 允許空值

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


Value:

Must be String

subnet[from]
選填 , 允許空值

Starting IP Address for IP auto suggestion


Value:

Must be String

subnet[to]
選填 , 允許空值

Ending IP Address for IP auto suggestion


Value:

Must be String

subnet[vlanid]
選填 , 允許空值

VLAN ID for this subnet


Value:

Must be String

subnet[domain_ids]
選填 , 允許空值

這個子網路所屬於的網域


Value:

Must be an array of any type

subnet[dhcp_id]
選填 , 允許空值

DHCP Proxy to use within this subnet


Value:

Must be a number.

subnet[tftp_id]
選填 , 允許空值

TFTP Proxy to use within this subnet


Value:

Must be a number.

subnet[dns_id]
選填 , 允許空值

DNS Proxy to use within this subnet


Value:

Must be a number.

subnet[boot_mode]
選填 , 允許空值

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


Value:

Must be String


PUT /api/subnets/:id
Update a subnet

參數

參數名字 描述
id
必填

Subnet numeric identifier


Value:

Must be a number.

subnet
必填

Value:

Must be a Hash

subnet[name]
選填

子網路名稱


Value:

Must be String

subnet[network]
選填

Subnet network


Value:

Must be String

subnet[mask]
選填

這個子網路的網路遮罩


Value:

Must be String

subnet[gateway]
選填 , 允許空值

Primary DNS for this subnet


Value:

Must be String

subnet[dns_primary]
選填 , 允許空值

Primary DNS for this subnet


Value:

Must be String

subnet[dns_secondary]
選填 , 允許空值

Secondary DNS for this subnet


Value:

Must be String

subnet[ipam]
選填 , 允許空值

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


Value:

Must be String

subnet[from]
選填 , 允許空值

Starting IP Address for IP auto suggestion


Value:

Must be String

subnet[to]
選填 , 允許空值

Ending IP Address for IP auto suggestion


Value:

Must be String

subnet[vlanid]
選填 , 允許空值

VLAN ID for this subnet


Value:

Must be String

subnet[domain_ids]
選填 , 允許空值

這個子網路所屬於的網域


Value:

Must be an array of any type

subnet[dhcp_id]
選填 , 允許空值

DHCP Proxy to use within this subnet


Value:

Must be a number.

subnet[tftp_id]
選填 , 允許空值

TFTP Proxy to use within this subnet


Value:

Must be a number.

subnet[dns_id]
選填 , 允許空值

DNS Proxy to use within this subnet


Value:

Must be a number.

subnet[boot_mode]
選填 , 允許空值

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


Value:

Must be String


DELETE /api/subnets/:id
Delete a subnet

參數

參數名字 描述
id
必填

Subnet numeric identifier


Value:

Must be a number.