---
title: Sites
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Magic Transit](https://developers.cloudflare.com/api/go/resources/magic_transit)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Sites

##### [List Sites](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/methods/list)

client.MagicTransit.Sites.List(ctx, params) (\*SinglePage\[[Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/magic/sites

##### [Site Details](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/methods/get)

client.MagicTransit.Sites.Get(ctx, siteID, params) (\*[Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/sites/{site\_id}

##### [Create a new Site](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/methods/create)

client.MagicTransit.Sites.New(ctx, params) (\*[Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/magic/sites

##### [Update Site](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/methods/update)

client.MagicTransit.Sites.Update(ctx, siteID, params) (\*[Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/sites/{site\_id}

##### [Patch Site](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/methods/edit)

client.MagicTransit.Sites.Edit(ctx, siteID, params) (\*[Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/magic/sites/{site\_id}

##### [Delete Site](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/methods/delete)

client.MagicTransit.Sites.Delete(ctx, siteID, body) (\*[Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/sites/{site\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Site struct{…}

</summary>

ID stringOptional

Identifier

maxLength32

<a href="#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

ConnectorID stringOptional

Magic Connector identifier tag.

<a href="#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20connector_id">Link to this property</a>

Description stringOptional

<a href="#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

HaMode boolOptional

Site high availability mode. If set to true, the site can have two connectors and runs in high availability mode.

<a href="#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20ha_mode">Link to this property</a>

Location <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites%20%3E%20(model)%20site_location%20%3E%20(schema)">SiteLocation</a>Optional

Location of site in latitude and longitude.

<a href="#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20location">Link to this property</a>

Name stringOptional

The name of the site.

<a href="#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

SecondaryConnectorID stringOptional

Magic Connector identifier tag. Used when high availability mode is on.

<a href="#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20secondary_connector_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites%20%3E%20(model)%20site%20%3E%20(schema)>)

<details>

<summary>

type SiteLocation struct{…}

Location of site in latitude and longitude.

</summary>

Lat stringOptional

Latitude

<a href="#(resource)%20magic_transit.sites%20%3E%20(model)%20site_location%20%3E%20(schema)%20%3E%20(property)%20lat">Link to this property</a>

Lon stringOptional

Longitude

<a href="#(resource)%20magic_transit.sites%20%3E%20(model)%20site_location%20%3E%20(schema)%20%3E%20(property)%20lon">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites%20%3E%20(model)%20site_location%20%3E%20(schema)>)

#### SitesApp Configuration

#### SitesACLs

##### [List Site ACLs](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/acls/methods/list)

client.MagicTransit.Sites.ACLs.List(ctx, siteID, query) (\*SinglePage\[[ACL](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/magic/sites/{site\_id}/acls

##### [Site ACL Details](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/acls/methods/get)

client.MagicTransit.Sites.ACLs.Get(ctx, siteID, aclID, query) (\*[ACL](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/sites/{site\_id}/acls/{acl\_id}

##### [Create a new Site ACL](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/acls/methods/create)

client.MagicTransit.Sites.ACLs.New(ctx, siteID, params) (\*[ACL](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/magic/sites/{site\_id}/acls

##### [Update Site ACL](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/acls/methods/update)

client.MagicTransit.Sites.ACLs.Update(ctx, siteID, aclID, params) (\*[ACL](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/sites/{site\_id}/acls/{acl\_id}

##### [Patch Site ACL](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/acls/methods/edit)

client.MagicTransit.Sites.ACLs.Edit(ctx, siteID, aclID, params) (\*[ACL](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/magic/sites/{site\_id}/acls/{acl\_id}

##### [Delete Site ACL](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/acls/methods/delete)

client.MagicTransit.Sites.ACLs.Delete(ctx, siteID, aclID, body) (\*[ACL](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/sites/{site\_id}/acls/{acl\_id}

##### ModelsExpand Collapse

<details>

<summary>

type ACL struct{…}

Bidirectional ACL policy for network traffic within a site.

</summary>

ID stringOptional

Identifier

maxLength32

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Description stringOptional

Description for the ACL.

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

ForwardLocally boolOptional

The desired forwarding action for this ACL policy. If set to “false”, the policy will forward traffic to Cloudflare. If set to “true”, the policy will forward traffic locally on the Magic Connector. If not included in request, will default to false.

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)%20%3E%20(property)%20forward_locally">Link to this property</a>

LAN1 <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl_configuration%20%3E%20(schema)">ACLConfiguration</a>Optional

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)%20%3E%20(property)%20lan_1">Link to this property</a>

LAN2 <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl_configuration%20%3E%20(schema)">ACLConfiguration</a>Optional

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)%20%3E%20(property)%20lan_2">Link to this property</a>

Name stringOptional

The name of the ACL.

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

Protocols \[]<a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)">AllowedProtocol</a>Optional

</summary>

One of the following:

const AllowedProtocolTCP <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)">AllowedProtocol</a> = "tcp"

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const AllowedProtocolUdp <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)">AllowedProtocol</a> = "udp"

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const AllowedProtocolIcmp <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)">AllowedProtocol</a> = "icmp"

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)%20%3E%20(property)%20protocols">Link to this property</a>

Unidirectional boolOptional

The desired traffic direction for this ACL policy. If set to “false”, the policy will allow bidirectional traffic. If set to “true”, the policy will only allow traffic in one direction. If not included in request, will default to false.

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)%20%3E%20(property)%20unidirectional">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl%20%3E%20(schema)>)

<details>

<summary>

type ACLConfiguration struct{…}

</summary>

LANID string

The identifier for the LAN you want to create an ACL policy with.

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl_configuration%20%3E%20(schema)%20%3E%20(property)%20lan_id">Link to this property</a>

LANName stringOptional

The name of the LAN based on the provided lan\_id.

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl_configuration%20%3E%20(schema)%20%3E%20(property)%20lan_name">Link to this property</a>

PortRanges \[]stringOptional

Array of port ranges on the provided LAN that will be included in the ACL. If no ports or port rangess are provided, communication on any port on this LAN is allowed.

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl_configuration%20%3E%20(schema)%20%3E%20(property)%20port_ranges">Link to this property</a>

Ports \[]int64Optional

Array of ports on the provided LAN that will be included in the ACL. If no ports or port ranges are provided, communication on any port on this LAN is allowed.

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl_configuration%20%3E%20(schema)%20%3E%20(property)%20ports">Link to this property</a>

Subnets \[]<a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20subnet%20%3E%20(schema)">Subnet</a>Optional

Array of subnet IPs within the LAN that will be included in the ACL. If no subnets are provided, communication on any subnets on this LAN are allowed.

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl_configuration%20%3E%20(schema)%20%3E%20(property)%20subnets">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20acl_configuration%20%3E%20(schema)>)

<details>

<summary>

type AllowedProtocol string

Array of allowed communication protocols between configured LANs. If no protocols are provided, all protocols are allowed.

</summary>

One of the following:

const AllowedProtocolTCP <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)">AllowedProtocol</a> = "tcp"

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const AllowedProtocolUdp <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)">AllowedProtocol</a> = "udp"

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const AllowedProtocolIcmp <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)">AllowedProtocol</a> = "icmp"

<a href="#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20allowed_protocol%20%3E%20(schema)>)

type Subnet string

A valid IPv4 address.

[Link to this property](<#(resource)%20magic_transit.sites.acls%20%3E%20(model)%20subnet%20%3E%20(schema)>)

#### SitesLANs

##### [List Site LANs](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/lans/methods/list)

client.MagicTransit.Sites.LANs.List(ctx, siteID, query) (\*SinglePage\[[LAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/magic/sites/{site\_id}/lans

##### [Site LAN Details](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/lans/methods/get)

client.MagicTransit.Sites.LANs.Get(ctx, siteID, lanID, query) (\*[LAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/sites/{site\_id}/lans/{lan\_id}

##### [Create a new Site LAN](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/lans/methods/create)

client.MagicTransit.Sites.LANs.New(ctx, siteID, params) (\*SinglePage\[[LAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)>)], error)

POST/accounts/{account\_id}/magic/sites/{site\_id}/lans

##### [Update Site LAN](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/lans/methods/update)

client.MagicTransit.Sites.LANs.Update(ctx, siteID, lanID, params) (\*[LAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/sites/{site\_id}/lans/{lan\_id}

##### [Patch Site LAN](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/lans/methods/edit)

client.MagicTransit.Sites.LANs.Edit(ctx, siteID, lanID, params) (\*[LAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/magic/sites/{site\_id}/lans/{lan\_id}

##### [Delete Site LAN](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/lans/methods/delete)

client.MagicTransit.Sites.LANs.Delete(ctx, siteID, lanID, body) (\*[LAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/sites/{site\_id}/lans/{lan\_id}

##### ModelsExpand Collapse

<details>

<summary>

type DHCPRelay struct{…}

</summary>

ServerAddresses \[]stringOptional

List of DHCP server IPs.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_relay%20%3E%20(schema)%20%3E%20(property)%20server_addresses">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_relay%20%3E%20(schema)>)

<details>

<summary>

type DHCPServer struct{…}

</summary>

<details>

<summary>

DHCPOptions \[]DHCPServerDHCPOptionOptional

Optional list of custom DHCP options to include in DHCP responses. Only valid when DHCP server is enabled.

</summary>

Code int64

DHCP option number (1-254). Options 0 and 255 are reserved by RFC 2132. Options 3, 6, and 51 are not allowed because they conflict with connector-managed configuration.

maximum254

minimum1

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_options%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

<details>

<summary>

Type DHCPServerDHCPOptionsType

The type of the option value. text: a string (max 255 bytes). hex: colon-separated hex bytes (e.g. “01:04:aa:bb:cc”, max 255 bytes). ip: an IPv4 address (e.g. “10.20.30.40”). byte: an unsigned integer 0-255 (1 byte). short: an unsigned integer 0-65535 (2 bytes). integer: an unsigned integer 0-4294967295 (4 bytes).

</summary>

One of the following:

const DHCPServerDHCPOptionsTypeText DHCPServerDHCPOptionsType = "text"

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_options%20%3E%20(items)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const DHCPServerDHCPOptionsTypeHex DHCPServerDHCPOptionsType = "hex"

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_options%20%3E%20(items)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

const DHCPServerDHCPOptionsTypeIP DHCPServerDHCPOptionsType = "ip"

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_options%20%3E%20(items)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

const DHCPServerDHCPOptionsTypeByte DHCPServerDHCPOptionsType = "byte"

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_options%20%3E%20(items)%20%3E%20(property)%20type%20%3E%20(member)%203">Link to this property</a>

const DHCPServerDHCPOptionsTypeShort DHCPServerDHCPOptionsType = "short"

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_options%20%3E%20(items)%20%3E%20(property)%20type%20%3E%20(member)%204">Link to this property</a>

const DHCPServerDHCPOptionsTypeInteger DHCPServerDHCPOptionsType = "integer"

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_options%20%3E%20(items)%20%3E%20(property)%20type%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_options%20%3E%20(items)%20%3E%20(property)%20type">Link to this property</a>

Value string

The option value, interpreted according to the type field.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_options%20%3E%20(items)%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_options">Link to this property</a>

DHCPPoolEnd stringOptional

A valid IPv4 address.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_pool_end">Link to this property</a>

DHCPPoolStart stringOptional

A valid IPv4 address.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dhcp_pool_start">Link to this property</a>

DeprecatedDNSServer stringOptional

A valid IPv4 address.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dns_server">Link to this property</a>

DNSServers \[]stringOptional

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20dns_servers">Link to this property</a>

Reservations map\[string, string]Optional

Mapping of MAC addresses to IP addresses

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)%20%3E%20(property)%20reservations">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)>)

<details>

<summary>

type LAN struct{…}

</summary>

ID stringOptional

Identifier

maxLength32

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

BondID int64Optional

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20bond_id">Link to this property</a>

HaLink boolOptional

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.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20ha_link">Link to this property</a>

IsBreakout boolOptional

mark true to use this LAN for source-based breakout traffic

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20is_breakout">Link to this property</a>

IsPrioritized boolOptional

mark true to use this LAN for source-based prioritized traffic

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20is_prioritized">Link to this property</a>

Name stringOptional

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

Nat <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20nat%20%3E%20(schema)">Nat</a>Optional

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20nat">Link to this property</a>

Physport int64Optional

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20physport">Link to this property</a>

<details>

<summary>

RoutedSubnets \[]<a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20routed_subnet%20%3E%20(schema)">RoutedSubnet</a>Optional

</summary>

NextHop string

A valid IPv4 address.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20routed_subnet%20%3E%20(schema)%20%3E%20(property)%20next_hop">Link to this property</a>

Prefix string

A valid CIDR notation representing an IP range.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20routed_subnet%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

Nat <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20nat%20%3E%20(schema)">Nat</a>Optional

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20routed_subnet%20%3E%20(schema)%20%3E%20(property)%20nat">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20routed_subnets">Link to this property</a>

SiteID stringOptional

Identifier

maxLength32

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20site_id">Link to this property</a>

StaticAddressing <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan_static_addressing%20%3E%20(schema)">LANStaticAddressing</a>Optional

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.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20static_addressing">Link to this property</a>

VlanTag int64Optional

VLAN ID. Use zero for untagged.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)%20%3E%20(property)%20vlan_tag">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan%20%3E%20(schema)>)

<details>

<summary>

type LANStaticAddressing struct{…}

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.

</summary>

Address string

A valid CIDR notation representing an IP range.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan_static_addressing%20%3E%20(schema)%20%3E%20(property)%20address">Link to this property</a>

DHCPRelay <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_relay%20%3E%20(schema)">DHCPRelay</a>Optional

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan_static_addressing%20%3E%20(schema)%20%3E%20(property)%20dhcp_relay">Link to this property</a>

DHCPServer <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20dhcp_server%20%3E%20(schema)">DHCPServer</a>Optional

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan_static_addressing%20%3E%20(schema)%20%3E%20(property)%20dhcp_server">Link to this property</a>

SecondaryAddress stringOptional

A valid CIDR notation representing an IP range.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan_static_addressing%20%3E%20(schema)%20%3E%20(property)%20secondary_address">Link to this property</a>

VirtualAddress stringOptional

A valid CIDR notation representing an IP range.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan_static_addressing%20%3E%20(schema)%20%3E%20(property)%20virtual_address">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20lan_static_addressing%20%3E%20(schema)>)

<details>

<summary>

type Nat struct{…}

</summary>

StaticPrefix stringOptional

A valid CIDR notation representing an IP range.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20nat%20%3E%20(schema)%20%3E%20(property)%20static_prefix">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20nat%20%3E%20(schema)>)

<details>

<summary>

type RoutedSubnet struct{…}

</summary>

NextHop string

A valid IPv4 address.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20routed_subnet%20%3E%20(schema)%20%3E%20(property)%20next_hop">Link to this property</a>

Prefix string

A valid CIDR notation representing an IP range.

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20routed_subnet%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

Nat <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20nat%20%3E%20(schema)">Nat</a>Optional

<a href="#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20routed_subnet%20%3E%20(schema)%20%3E%20(property)%20nat">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.lans%20%3E%20(model)%20routed_subnet%20%3E%20(schema)>)

#### SitesWANs

##### [List Site WANs](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/wans/methods/list)

client.MagicTransit.Sites.WANs.List(ctx, siteID, query) (\*SinglePage\[[WAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/magic/sites/{site\_id}/wans

##### [Site WAN Details](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/wans/methods/get)

client.MagicTransit.Sites.WANs.Get(ctx, siteID, wanID, query) (\*[WAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/sites/{site\_id}/wans/{wan\_id}

##### [Create a new Site WAN](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/wans/methods/create)

client.MagicTransit.Sites.WANs.New(ctx, siteID, params) (\*SinglePage\[[WAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)>)], error)

POST/accounts/{account\_id}/magic/sites/{site\_id}/wans

##### [Update Site WAN](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/wans/methods/update)

client.MagicTransit.Sites.WANs.Update(ctx, siteID, wanID, params) (\*[WAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/sites/{site\_id}/wans/{wan\_id}

##### [Patch Site WAN](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/wans/methods/edit)

client.MagicTransit.Sites.WANs.Edit(ctx, siteID, wanID, params) (\*[WAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/magic/sites/{site\_id}/wans/{wan\_id}

##### [Delete Site WAN](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/sites/subresources/wans/methods/delete)

client.MagicTransit.Sites.WANs.Delete(ctx, siteID, wanID, body) (\*[WAN](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/sites/{site\_id}/wans/{wan\_id}

##### ModelsExpand Collapse

<details>

<summary>

type WAN struct{…}

</summary>

ID stringOptional

Identifier

maxLength32

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

HealthCheckRate WANHealthCheckRateOptional

Magic WAN health check rate for tunnels created on this link. The default value is <code>mid</code>.

</summary>

One of the following:

const WANHealthCheckRateLow WANHealthCheckRate = "low"

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20health_check_rate%20%3E%20(member)%200">Link to this property</a>

const WANHealthCheckRateMid WANHealthCheckRate = "mid"

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20health_check_rate%20%3E%20(member)%201">Link to this property</a>

const WANHealthCheckRateHigh WANHealthCheckRate = "high"

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20health_check_rate%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20health_check_rate">Link to this property</a>

LoadBalanceInnerFlows boolOptional

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20load_balance_inner_flows">Link to this property</a>

Name stringOptional

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

Physport int64Optional

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20physport">Link to this property</a>

Priority int64Optional

Priority of WAN for traffic loadbalancing.

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20priority">Link to this property</a>

SiteID stringOptional

Identifier

maxLength32

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20site_id">Link to this property</a>

StaticAddressing <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan_static_addressing%20%3E%20(schema)">WANStaticAddressing</a>Optional

(optional) if omitted, use DHCP. Submit secondary\_address when site is in high availability mode.

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20static_addressing">Link to this property</a>

VlanTag int64Optional

VLAN ID. Use zero for untagged.

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)%20%3E%20(property)%20vlan_tag">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan%20%3E%20(schema)>)

<details>

<summary>

type WANStaticAddressing struct{…}

(optional) if omitted, use DHCP. Submit secondary\_address when site is in high availability mode.

</summary>

Address string

A valid CIDR notation representing an IP range.

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan_static_addressing%20%3E%20(schema)%20%3E%20(property)%20address">Link to this property</a>

GatewayAddress string

A valid IPv4 address.

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan_static_addressing%20%3E%20(schema)%20%3E%20(property)%20gateway_address">Link to this property</a>

SecondaryAddress stringOptional

A valid CIDR notation representing an IP range.

<a href="#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan_static_addressing%20%3E%20(schema)%20%3E%20(property)%20secondary_address">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.sites.wans%20%3E%20(model)%20wan_static_addressing%20%3E%20(schema)>)