POST /accounts/{account_id}/magic/sites/{site_id}/lans

Creates a new Site LAN. If the site is in high availability mode, static_addressing is required along with secondary and virtual address.

Servers

Path parameters

Name Type Required Description
site_id String Yes
account_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
routed_subnets[] Array No
routed_subnets[].prefix String Yes

A valid CIDR notation representing an IP range.

routed_subnets[].nat Object No
routed_subnets[].nat.static_prefix String No

A valid CIDR notation representing an IP range.

routed_subnets[].next_hop String Yes

A valid IPv4 address.

name String No
static_addressing Object No

If the site is not configured in high availability mode, this configuration is optional (if omitted, use DHCP). However, if in high availability mode, static_address is required along with secondary and virtual address.

static_addressing.secondary_address String No

A valid CIDR notation representing an IP range.

static_addressing.dhcp_relay Object No
static_addressing.dhcp_relay.server_addresses[] Array No

List of DHCP server IPs.

static_addressing.virtual_address String No

A valid CIDR notation representing an IP range.

static_addressing.address String Yes

A valid CIDR notation representing an IP range.

static_addressing.dhcp_server Object No
static_addressing.dhcp_server.dhcp_pool_end String No

A valid IPv4 address.

static_addressing.dhcp_server.dns_servers[] Array No
static_addressing.dhcp_server.dhcp_pool_start String No

A valid IPv4 address.

static_addressing.dhcp_server.dns_server String No

A valid IPv4 address.

static_addressing.dhcp_server.reservations Object No

Mapping of MAC addresses to IP addresses

nat Object No
nat.static_prefix String No

A valid CIDR notation representing an IP range.

physport Integer Yes
ha_link Boolean No

mark true to use this LAN for HA probing. only works for site with HA turned on. only one LAN can be set as the ha_link.

vlan_tag Integer No

VLAN ID. Use zero for untagged.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.