GET /api/subnets
Lijst van subnets

GET /api/domains/:domain_id/subnets
Lijst van subnets voor een domein

GET /api/locations/:location_id/subnets
Lijst van subnets voor een lokatie

GET /api/organizations/:organization_id/subnets
Lijst van subnets voor een organisatie

Params

Param name Description
domain_id
optional

ID van het domein

Validations:

  • Must be a String

location_id
optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
optional

Scope met organisaties

Validations:

  • Must be a Integer

search
optional

filter resultaten

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return

Validations:

  • Must be a number.

Search fields

Field name Type Possible values
boot_mode
dns_primary
dns_secondary
domain
gateway
ipam
location
location_id
mask
mtu
name
network
nic_delay
organization
organization_id
params
type
vlanid

GET /api/subnets/:id
Toon een subnet

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

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

show_hidden_parameters
optional

Display hidden parameter values

Validations:

  • Must be one of: true, false, 1, 0.


POST /api/subnets
Maak een subnet

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

subnet
required

Validations:

  • Must be a Hash

subnet[name]
required

Subnet naam

Validations:

  • Must be a String

subnet[description]
optional , nil allowed

Subnet beschrijving

Validations:

  • Must be a String

subnet[network_type]
optional , nil allowed

Type of protocol, IPv4 of IPV6, standaard is IPv4

Validations:

  • Must be one of: IPv4, IPv6.

subnet[network]
required

Subnet netwerk

Validations:

  • Must be a String

subnet[cidr]
optional , nil allowed

Network prefix in CIDR notation

Validations:

  • Must be a String

subnet[mask]
optional , nil allowed

Netmask voor dit subnet

Validations:

  • Must be a String

subnet[gateway]
optional , nil allowed

Subnet gateway

Validations:

  • Must be a String

subnet[dns_primary]
optional , nil allowed

Primaire DNS voor dit subnet

Validations:

  • Must be a String

subnet[dns_secondary]
optional , nil allowed

Secundaire DNS voor dit subnet

Validations:

  • Must be a String

subnet[ipam]
optional , nil allowed

IP Address auto suggestion mode for this subnet.

Validations:

  • Must be one of: DHCP, Internal DB, Random DB, EUI-64, External IPAM, None.

subnet[from]
optional , nil allowed

Eerste IP adres voor IP auto voorstel

Validations:

  • Must be a String

subnet[to]
optional , nil allowed

Laatste IP adres voor IP auto voorstel

Validations:

  • Must be a String

subnet[vlanid]
optional , nil allowed

VLAN ID voor dit subnet

Validations:

  • Must be a String

subnet[mtu]
optional , nil allowed

MTU for this subnet

Validations:

  • Must be a Integer

subnet[domain_ids]
optional , nil allowed

Domeinen waar dit dubnet deel van uitmaakt

Validations:

  • Must be an array of any type

subnet[dhcp_id]
optional , nil allowed

DHCP Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[tftp_id]
optional , nil allowed

TFTP Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[httpboot_id]
optional , nil allowed

HTTPBoot Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[externalipam_id]
optional , nil allowed

External IPAM Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[dns_id]
optional , nil allowed

DNS Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[template_id]
optional , nil allowed

Template HTTP(S) Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[boot_mode]
optional , nil allowed

Default boot mode for interfaces assigned to this subnet.

Validations:

  • Must be one of: Static, DHCP.

subnet[subnet_parameters_attributes]
optional , nil allowed

Array van parameters (naam, waarde)

Validations:

  • Must be an array of any type

subnet[location_ids]
optional , nil allowed

Vervang locaties met de opgegeven ids

Validations:

  • Must be an array of any type

subnet[organization_ids]
optional , nil allowed

Vervang organisaties met de opgegeven ids.

Validations:

  • Must be an array of any type


PUT /api/subnets/:id
Wijzig een subnet

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Subnet numerieke identifier

Validations:

  • Must be a number.

subnet
required

Validations:

  • Must be a Hash

subnet[name]
optional

Subnet naam

Validations:

  • Must be a String

subnet[description]
optional , nil allowed

Subnet beschrijving

Validations:

  • Must be a String

subnet[network_type]
optional , nil allowed

Type of protocol, IPv4 of IPV6, standaard is IPv4

Validations:

  • Must be one of: IPv4, IPv6.

subnet[network]
optional

Subnet netwerk

Validations:

  • Must be a String

subnet[cidr]
optional , nil allowed

Network prefix in CIDR notation

Validations:

  • Must be a String

subnet[mask]
optional , nil allowed

Netmask voor dit subnet

Validations:

  • Must be a String

subnet[gateway]
optional , nil allowed

Subnet gateway

Validations:

  • Must be a String

subnet[dns_primary]
optional , nil allowed

Primaire DNS voor dit subnet

Validations:

  • Must be a String

subnet[dns_secondary]
optional , nil allowed

Secundaire DNS voor dit subnet

Validations:

  • Must be a String

subnet[ipam]
optional , nil allowed

IP Address auto suggestion mode for this subnet.

Validations:

  • Must be one of: DHCP, Internal DB, Random DB, EUI-64, External IPAM, None.

subnet[from]
optional , nil allowed

Eerste IP adres voor IP auto voorstel

Validations:

  • Must be a String

subnet[to]
optional , nil allowed

Laatste IP adres voor IP auto voorstel

Validations:

  • Must be a String

subnet[vlanid]
optional , nil allowed

VLAN ID voor dit subnet

Validations:

  • Must be a String

subnet[mtu]
optional , nil allowed

MTU for this subnet

Validations:

  • Must be a Integer

subnet[domain_ids]
optional , nil allowed

Domeinen waar dit dubnet deel van uitmaakt

Validations:

  • Must be an array of any type

subnet[dhcp_id]
optional , nil allowed

DHCP Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[tftp_id]
optional , nil allowed

TFTP Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[httpboot_id]
optional , nil allowed

HTTPBoot Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[externalipam_id]
optional , nil allowed

External IPAM Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[dns_id]
optional , nil allowed

DNS Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[template_id]
optional , nil allowed

Template HTTP(S) Proxy ID to use within this subnet

Validations:

  • Must be a number.

subnet[boot_mode]
optional , nil allowed

Default boot mode for interfaces assigned to this subnet.

Validations:

  • Must be one of: Static, DHCP.

subnet[subnet_parameters_attributes]
optional , nil allowed

Array van parameters (naam, waarde)

Validations:

  • Must be an array of any type

subnet[location_ids]
optional , nil allowed

Vervang locaties met de opgegeven ids

Validations:

  • Must be an array of any type

subnet[organization_ids]
optional , nil allowed

Vervang organisaties met de opgegeven ids.

Validations:

  • Must be an array of any type


DELETE /api/subnets/:id
Verwijder een subnet

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Subnet numerieke identifier

Validations:

  • Must be a number.


GET /api/subnets/:id/freeip
Maakt een ongebruikt IP adres in dit subnet

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

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

mac
optional

MAC adres om het IP voor deze host te herbruiken

Validations:

  • Must be a String

excluded_ips
optional

IP adressen die uitgesloten zijn van voorstellen

Validations:

  • Must be an array of any type