---
title: Magic Transit
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Magic Transit

##### ModelsExpand Collapse

<details>

<summary>

type HealthCheck struct{…}

</summary>

Enabled boolOptional

Determines whether to run healthchecks for a tunnel.

<a href="#(resource)%20magic_transit%20%3E%20(model)%20health_check%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

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

How frequent the health check is run. The default value is <code>mid</code>.

<a href="#(resource)%20magic_transit%20%3E%20(model)%20health_check%20%3E%20(schema)%20%3E%20(property)%20rate">Link to this property</a>

<details>

<summary>

Target HealthCheckTargetUnionOptional

The destination address in a request type health check. After the healthcheck is decapsulated at the customer end of the tunnel, the ICMP echo will be forwarded to this address. This field defaults to <code>customer_gre_endpoint address</code>. This field is ignored for bidirectional healthchecks as the interface\_address (not assigned to the Cloudflare side of the tunnel) is used as the target. Must be in object form if the x-magic-new-hc-target header is set to true and string form if x-magic-new-hc-target is absent or set to false.

</summary>

One of the following:

<details>

<summary>

HealthCheckTargetMagicHealthCheckTarget

</summary>

Effective stringOptional

The effective health check target. If ‘saved’ is empty, then this field will be populated with the calculated default value on GET requests. Ignored in POST, PUT, and PATCH requests.

<a href="#(resource)%20magic_transit%20%3E%20(model)%20health_check%20%3E%20(schema)%20%3E%20(property)%20target%20%3E%20(variant)%200%20%3E%20(property)%20effective">Link to this property</a>

Saved stringOptional

The saved health check target. Setting the value to the empty string indicates that the calculated default value will be used.

<a href="#(resource)%20magic_transit%20%3E%20(model)%20health_check%20%3E%20(schema)%20%3E%20(property)%20target%20%3E%20(variant)%200%20%3E%20(property)%20saved">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit%20%3E%20(model)%20health_check%20%3E%20(schema)%20%3E%20(property)%20target%20%3E%20(variant)%200">Link to this property</a>

UnionString

<a href="#(resource)%20magic_transit%20%3E%20(model)%20health_check%20%3E%20(schema)%20%3E%20(property)%20target%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit%20%3E%20(model)%20health_check%20%3E%20(schema)%20%3E%20(property)%20target">Link to this property</a>

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

The type of healthcheck to run, reply or request. The default value is <code>reply</code>.

<a href="#(resource)%20magic_transit%20%3E%20(model)%20health_check%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

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

<details>

<summary>

type HealthCheckRate string

How frequent the health check is run. The default value is <code>mid</code>.

</summary>

One of the following:

const HealthCheckRateLow <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit%20%3E%20(model)%20health_check_rate%20%3E%20(schema)">HealthCheckRate</a> = "low"

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

const HealthCheckRateMid <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit%20%3E%20(model)%20health_check_rate%20%3E%20(schema)">HealthCheckRate</a> = "mid"

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

const HealthCheckRateHigh <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit%20%3E%20(model)%20health_check_rate%20%3E%20(schema)">HealthCheckRate</a> = "high"

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

</details>

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

<details>

<summary>

type HealthCheckType string

The type of healthcheck to run, reply or request. The default value is <code>reply</code>.

</summary>

One of the following:

const HealthCheckTypeReply <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit%20%3E%20(model)%20health_check_type%20%3E%20(schema)">HealthCheckType</a> = "reply"

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

const HealthCheckTypeRequest <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit%20%3E%20(model)%20health_check_type%20%3E%20(schema)">HealthCheckType</a> = "request"

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

</details>

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

#### Magic TransitApps

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

client.MagicTransit.Apps.List(ctx, query) (\*SinglePage\[[AppListResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20AppListResponse%20%3E%20(schema)>)], error)

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

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

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

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

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

client.MagicTransit.Apps.Update(ctx, accountAppID, params) (\*[AppUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20AppUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/apps/{account\_app\_id}

##### [Update an App](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/apps/methods/edit)

client.MagicTransit.Apps.Edit(ctx, accountAppID, params) (\*[AppEditResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20AppEditResponse%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/magic/apps/{account\_app\_id}

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

client.MagicTransit.Apps.Delete(ctx, accountAppID, body) (\*[AppDeleteResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20AppDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/apps/{account\_app\_id}

#### Magic TransitCf Interconnects

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

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

GET/accounts/{account\_id}/magic/cf\_interconnects

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

client.MagicTransit.CfInterconnects.Get(ctx, cfInterconnectID, params) (\*[CfInterconnectGetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf_interconnects%20%3E%20(model)%20CfInterconnectGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/cf\_interconnects/{cf\_interconnect\_id}

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

client.MagicTransit.CfInterconnects.Update(ctx, cfInterconnectID, params) (\*[CfInterconnectUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf_interconnects%20%3E%20(model)%20CfInterconnectUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/cf\_interconnects/{cf\_interconnect\_id}

##### [Update multiple interconnects](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/cf_interconnects/methods/bulk_update)

client.MagicTransit.CfInterconnects.BulkUpdate(ctx, params) (\*[CfInterconnectBulkUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf_interconnects%20%3E%20(model)%20CfInterconnectBulkUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/cf\_interconnects

#### Magic TransitGRE Tunnels

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

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

GET/accounts/{account\_id}/magic/gre\_tunnels

##### [List GRE Tunnel Details](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/gre_tunnels/methods/get)

client.MagicTransit.GRETunnels.Get(ctx, greTunnelID, params) (\*[GRETunnelGetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20GRETunnelGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/gre\_tunnels/{gre\_tunnel\_id}

##### [Create a GRE tunnel](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/gre_tunnels/methods/create)

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

POST/accounts/{account\_id}/magic/gre\_tunnels

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

client.MagicTransit.GRETunnels.Update(ctx, greTunnelID, params) (\*[GRETunnelUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20GRETunnelUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/gre\_tunnels/{gre\_tunnel\_id}

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

client.MagicTransit.GRETunnels.Delete(ctx, greTunnelID, params) (\*[GRETunnelDeleteResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20GRETunnelDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/gre\_tunnels/{gre\_tunnel\_id}

##### [Update multiple GRE tunnels](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/gre_tunnels/methods/bulk_update)

client.MagicTransit.GRETunnels.BulkUpdate(ctx, params) (\*[GRETunnelBulkUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20GRETunnelBulkUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/gre\_tunnels

#### Magic TransitIPSEC Tunnels

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

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

GET/accounts/{account\_id}/magic/ipsec\_tunnels

##### [List IPsec tunnel details](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/ipsec_tunnels/methods/get)

client.MagicTransit.IPSECTunnels.Get(ctx, ipsecTunnelID, params) (\*[IPSECTunnelGetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.ipsec_tunnels%20%3E%20(model)%20IPSECTunnelGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/ipsec\_tunnels/{ipsec\_tunnel\_id}

##### [Create an IPsec tunnel](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/ipsec_tunnels/methods/create)

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

POST/accounts/{account\_id}/magic/ipsec\_tunnels

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

client.MagicTransit.IPSECTunnels.Update(ctx, ipsecTunnelID, params) (\*[IPSECTunnelUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.ipsec_tunnels%20%3E%20(model)%20IPSECTunnelUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/ipsec\_tunnels/{ipsec\_tunnel\_id}

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

client.MagicTransit.IPSECTunnels.Delete(ctx, ipsecTunnelID, params) (\*[IPSECTunnelDeleteResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.ipsec_tunnels%20%3E%20(model)%20IPSECTunnelDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/ipsec\_tunnels/{ipsec\_tunnel\_id}

##### [Update multiple IPsec tunnels](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/ipsec_tunnels/methods/bulk_update)

client.MagicTransit.IPSECTunnels.BulkUpdate(ctx, params) (\*[IPSECTunnelBulkUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.ipsec_tunnels%20%3E%20(model)%20IPSECTunnelBulkUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/ipsec\_tunnels

##### [Generate Pre-Shared Key (PSK) for IPsec tunnels](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/ipsec_tunnels/methods/psk_generate)

client.MagicTransit.IPSECTunnels.PSKGenerate(ctx, ipsecTunnelID, body) (\*[IPSECTunnelPSKGenerateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.ipsec_tunnels%20%3E%20(model)%20IPSECTunnelPSKGenerateResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/magic/ipsec\_tunnels/{ipsec\_tunnel\_id}/psk\_generate

##### [Set Pre-Shared Keys (PSK) for IPsec tunnels](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/ipsec_tunnels/methods/psk_set)

client.MagicTransit.IPSECTunnels.PSKSet(ctx, params) (\*[IPSECTunnelPSKSetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.ipsec_tunnels%20%3E%20(model)%20IPSECTunnelPSKSetResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/magic/ipsec\_tunnels/psk

##### ModelsExpand Collapse

<details>

<summary>

type PSKMetadata struct{…}

The PSK metadata that includes when the PSK was generated.

</summary>

LastGeneratedOn TimeOptional

The date and time the tunnel was last modified.

formatdate-time

<a href="#(resource)%20magic_transit.ipsec_tunnels%20%3E%20(model)%20psk_metadata%20%3E%20(schema)%20%3E%20(property)%20last_generated_on">Link to this property</a>

</details>

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

#### Magic TransitRoutes

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

client.MagicTransit.Routes.List(ctx, query) (\*[RouteListResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20RouteListResponse%20%3E%20(schema)>), error)

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

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

client.MagicTransit.Routes.Get(ctx, routeID, query) (\*[RouteGetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20RouteGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/routes/{route\_id}

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

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

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

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

client.MagicTransit.Routes.Update(ctx, routeID, params) (\*[RouteUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20RouteUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/routes/{route\_id}

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

client.MagicTransit.Routes.Delete(ctx, routeID, body) (\*[RouteDeleteResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20RouteDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/routes/{route\_id}

##### [Update Many Routes](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/routes/methods/bulk_update)

client.MagicTransit.Routes.BulkUpdate(ctx, params) (\*[RouteBulkUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20RouteBulkUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/routes

##### [Delete Many Routes](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/routes/methods/empty)

client.MagicTransit.Routes.Empty(ctx, body) (\*[RouteEmptyResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20RouteEmptyResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/routes

##### ModelsExpand Collapse

<details>

<summary>

type Scope struct{…}

Used only for ECMP routes.

</summary>

ColoNames \[]stringOptional

List of colo names for the ECMP scope.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)%20%3E%20(property)%20colo_names">Link to this property</a>

ColoRegions \[]stringOptional

List of colo regions for the ECMP scope.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)%20%3E%20(property)%20colo_regions">Link to this property</a>

</details>

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

#### Magic TransitBGP Filter Profiles

##### [List BGP Filter Profiles](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/bgp_filter_profiles/methods/list)

client.MagicTransit.BGPFilterProfiles.List(ctx, query) (\*SinglePage\[[BGPFilterProfileListResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.bgp_filter_profiles%20%3E%20(model)%20BGPFilterProfileListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/magic/bgp/filter\_profiles

##### [Get BGP Filter Profile](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/bgp_filter_profiles/methods/get)

client.MagicTransit.BGPFilterProfiles.Get(ctx, profileID, query) (\*[BGPFilterProfileGetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.bgp_filter_profiles%20%3E%20(model)%20BGPFilterProfileGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/bgp/filter\_profiles/{profile\_id}

##### [Create BGP Filter Profile](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/bgp_filter_profiles/methods/create)

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

POST/accounts/{account\_id}/magic/bgp/filter\_profiles

##### [Update BGP Filter Profile](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/bgp_filter_profiles/methods/update)

client.MagicTransit.BGPFilterProfiles.Update(ctx, profileID, params) (\*[BGPFilterProfileUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.bgp_filter_profiles%20%3E%20(model)%20BGPFilterProfileUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/bgp/filter\_profiles/{profile\_id}

##### [Delete BGP Filter Profile](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/bgp_filter_profiles/methods/delete)

client.MagicTransit.BGPFilterProfiles.Delete(ctx, profileID, body) (\*[BGPFilterProfileDeleteResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.bgp_filter_profiles%20%3E%20(model)%20BGPFilterProfileDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/bgp/filter\_profiles/{profile\_id}

#### Magic TransitSites

##### [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)>)

#### Magic TransitSitesApp Configuration

#### Magic TransitSitesACLs

##### [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)>)

#### Magic TransitSitesLANs

##### [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)>)

#### Magic TransitSitesWANs

##### [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)>)

#### Magic TransitConnectors

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

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

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

##### [Get Connector](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/connectors/methods/get)

client.MagicTransit.Connectors.Get(ctx, connectorID, query) (\*[ConnectorGetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/connectors/{connector\_id}

##### [Create Connector](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/connectors/methods/create)

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

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

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

client.MagicTransit.Connectors.Update(ctx, connectorID, params) (\*[ConnectorUpdateResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/magic/connectors/{connector\_id}

##### [Edit Connector](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/connectors/methods/edit)

client.MagicTransit.Connectors.Edit(ctx, connectorID, params) (\*[ConnectorEditResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorEditResponse%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/magic/connectors/{connector\_id}

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

client.MagicTransit.Connectors.Delete(ctx, connectorID, body) (\*[ConnectorDeleteResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/connectors/{connector\_id}

#### Magic TransitConnectorsInterrupts

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

client.MagicTransit.Connectors.Interrupts.List(ctx, connectorID, query) (\*SinglePage\[[ConnectorInterruptListResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors.interrupts%20%3E%20(model)%20ConnectorInterruptListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/magic/connectors/{connector\_id}/interrupts

##### [Create Interrupt](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/connectors/subresources/interrupts/methods/create)

client.MagicTransit.Connectors.Interrupts.New(ctx, connectorID, params) (\*[ConnectorInterruptNewResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors.interrupts%20%3E%20(model)%20ConnectorInterruptNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/magic/connectors/{connector\_id}/interrupts

#### Magic TransitConnectorsEvents

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

client.MagicTransit.Connectors.Events.List(ctx, connectorID, params) (\*[ConnectorEventListResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors.events%20%3E%20(model)%20ConnectorEventListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/connectors/{connector\_id}/telemetry/events

##### [Get Event](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/connectors/subresources/events/methods/get)

client.MagicTransit.Connectors.Events.Get(ctx, connectorID, eventT, eventN, query) (\*[ConnectorEventGetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors.events%20%3E%20(model)%20ConnectorEventGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/connectors/{connector\_id}/telemetry/events/{event\_t}.{event\_n}

#### Magic TransitConnectorsEventsLatest

##### [Get latest Events](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/connectors/subresources/events/subresources/latest/methods/list)

client.MagicTransit.Connectors.Events.Latest.List(ctx, connectorID, query) (\*[ConnectorEventLatestListResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors.events.latest%20%3E%20(model)%20ConnectorEventLatestListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/connectors/{connector\_id}/telemetry/events/latest

#### Magic TransitConnectorsSnapshots

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

client.MagicTransit.Connectors.Snapshots.List(ctx, connectorID, params) (\*[ConnectorSnapshotListResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors.snapshots%20%3E%20(model)%20ConnectorSnapshotListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/connectors/{connector\_id}/telemetry/snapshots

##### [Get Snapshot](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/connectors/subresources/snapshots/methods/get)

client.MagicTransit.Connectors.Snapshots.Get(ctx, connectorID, snapshotT, query) (\*[ConnectorSnapshotGetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors.snapshots%20%3E%20(model)%20ConnectorSnapshotGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/connectors/{connector\_id}/telemetry/snapshots/{snapshot\_t}

#### Magic TransitConnectorsSnapshotsLatest

##### [Get latest Snapshots](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/connectors/subresources/snapshots/subresources/latest/methods/list)

client.MagicTransit.Connectors.Snapshots.Latest.List(ctx, connectorID, query) (\*[ConnectorSnapshotLatestListResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors.snapshots.latest%20%3E%20(model)%20ConnectorSnapshotLatestListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/connectors/{connector\_id}/telemetry/snapshots/latest

#### Magic TransitCf1 Sites

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

client.MagicTransit.Cf1Sites.List(ctx, query) (\*SinglePage\[[Cf1Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites%20%3E%20(model)%20cf1_site%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/magic/cf1\_sites

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

client.MagicTransit.Cf1Sites.Get(ctx, cf1SiteID, query) (\*[Cf1Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites%20%3E%20(model)%20cf1_site%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/cf1\_sites/{cf1\_site\_id}

##### [Create CF1 Sites](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/cf1_sites/methods/create)

client.MagicTransit.Cf1Sites.New(ctx, params) (\*SinglePage\[[Cf1Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites%20%3E%20(model)%20cf1_site%20%3E%20(schema)>)], error)

POST/accounts/{account\_id}/magic/cf1\_sites

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

client.MagicTransit.Cf1Sites.Update(ctx, cf1SiteID, params) (\*[Cf1Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites%20%3E%20(model)%20cf1_site%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/magic/cf1\_sites/{cf1\_site\_id}

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

client.MagicTransit.Cf1Sites.Delete(ctx, cf1SiteID, body) (\*[Cf1Site](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites%20%3E%20(model)%20cf1_site%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/cf1\_sites/{cf1\_site\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Cf1Site struct{…}

</summary>

Name string

A human-provided name describing the CF1 Site that should be unique within the account.

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

ID stringOptional

Identifier

maxLength32

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

CreatedOn TimeOptional

formatdate-time

<a href="#(resource)%20magic_transit.cf1_sites%20%3E%20(model)%20cf1_site%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

Description stringOptional

A human-provided description of the CF1 Site.

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

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

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

ModifiedOn TimeOptional

formatdate-time

<a href="#(resource)%20magic_transit.cf1_sites%20%3E%20(model)%20cf1_site%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

</details>

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

<details>

<summary>

type Cf1SiteLocation struct{…}

</summary>

Lat float64Optional

Latitude of the CF1 Site.

formatfloat

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

Long float64Optional

Longitude of the CF1 Site.

formatfloat

<a href="#(resource)%20magic_transit.cf1_sites%20%3E%20(model)%20cf1_site_location%20%3E%20(schema)%20%3E%20(property)%20long">Link to this property</a>

Name stringOptional

Name of nearest town, city, or village.

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

</details>

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

#### Magic TransitCf1 SitesRamps

##### [List CF1 Site Ramps](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/cf1_sites/subresources/ramps/methods/list)

client.MagicTransit.Cf1Sites.Ramps.List(ctx, cf1SiteID, query) (\*SinglePage\[[Ramp](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/magic/cf1\_sites/{cf1\_site\_id}/ramps

##### [Get CF1 Site Ramp](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/cf1_sites/subresources/ramps/methods/get)

client.MagicTransit.Cf1Sites.Ramps.Get(ctx, cf1SiteID, rampID, query) (\*[Ramp](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/cf1\_sites/{cf1\_site\_id}/ramps/{ramp\_id}

##### [Create CF1 Site Ramps](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/cf1_sites/subresources/ramps/methods/create)

client.MagicTransit.Cf1Sites.Ramps.New(ctx, cf1SiteID, params) (\*SinglePage\[[Ramp](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)>)], error)

POST/accounts/{account\_id}/magic/cf1\_sites/{cf1\_site\_id}/ramps

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

client.MagicTransit.Cf1Sites.Ramps.Delete(ctx, cf1SiteID, rampID, body) (\*[Ramp](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/magic/cf1\_sites/{cf1\_site\_id}/ramps/{ramp\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Ramp struct{…}

</summary>

ID string

Identifier

maxLength32

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

CreatedOn Time

formatdate-time

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

ModifiedOn Time

formatdate-time

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

Name string

A human-provided name describing the ramp that should be unique within the CF1 Site.

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

Type <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp_type%20%3E%20(schema)">RampType</a>

The type of network connection (ramp) linking a CF1 Site to Cloudflare’s network.

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

Description stringOptional

A human-provided description of the ramp.

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

<details>

<summary>

GRE RampGREOptional

</summary>

ManagedBy stringOptional

URL reference to the source network resource that this ramp is managed by.

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20gre%20%3E%20(property)%20managed_by">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20gre">Link to this property</a>

<details>

<summary>

GREInterconnect RampGREInterconnectOptional

</summary>

ManagedBy stringOptional

URL reference to the source network resource that this ramp is managed by.

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20gre_interconnect%20%3E%20(property)%20managed_by">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20gre_interconnect">Link to this property</a>

<details>

<summary>

IPSEC RampIPSECOptional

</summary>

ManagedBy stringOptional

URL reference to the source network resource that this ramp is managed by.

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20ipsec%20%3E%20(property)%20managed_by">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20ipsec">Link to this property</a>

<details>

<summary>

Mconn RampMconnOptional

</summary>

ManagedBy stringOptional

URL reference to the source network resource that this ramp is managed by.

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20mconn%20%3E%20(property)%20managed_by">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20mconn">Link to this property</a>

<details>

<summary>

MplsInterconnect RampMplsInterconnectOptional

</summary>

ManagedBy stringOptional

URL reference to the source network resource that this ramp is managed by.

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20mpls_interconnect%20%3E%20(property)%20managed_by">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp%20%3E%20(schema)%20%3E%20(property)%20mpls_interconnect">Link to this property</a>

</details>

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

<details>

<summary>

type RampType string

The type of network connection (ramp) linking a CF1 Site to Cloudflare’s network.

</summary>

One of the following:

const RampTypeGRE <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp_type%20%3E%20(schema)">RampType</a> = "gre"

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

const RampTypeGREInterconnect <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp_type%20%3E%20(schema)">RampType</a> = "gre\_interconnect"

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

const RampTypeMplsInterconnect <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp_type%20%3E%20(schema)">RampType</a> = "mpls\_interconnect"

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

const RampTypeMconn <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp_type%20%3E%20(schema)">RampType</a> = "mconn"

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp_type%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

const RampTypeIPSEC <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp_type%20%3E%20(schema)">RampType</a> = "ipsec"

<a href="#(resource)%20magic_transit.cf1_sites.ramps%20%3E%20(model)%20ramp_type%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

</details>

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

#### Magic TransitPCAPs

##### [List packet capture requests](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/pcaps/methods/list)

client.MagicTransit.PCAPs.List(ctx, query) (\*SinglePage\[[PCAPListResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.pcaps%20%3E%20(model)%20PCAPListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/pcaps

##### [Get PCAP request](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/pcaps/methods/get)

client.MagicTransit.PCAPs.Get(ctx, pcapID, query) (\*[PCAPGetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.pcaps%20%3E%20(model)%20PCAPGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/pcaps/{pcap\_id}

##### [Create PCAP request](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/pcaps/methods/create)

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

POST/accounts/{account\_id}/pcaps

##### [Stop full PCAP](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/pcaps/methods/stop)

client.MagicTransit.PCAPs.Stop(ctx, pcapID, body) error

PUT/accounts/{account\_id}/pcaps/{pcap\_id}/stop

##### ModelsExpand Collapse

<details>

<summary>

type PCAP struct{…}

</summary>

ID stringOptional

The ID for the packet capture.

maxLength32

minLength32

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

FilterV1 <a href="https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap_filter%20%3E%20(schema)">PCAPFilter</a>Optional

The packet capture filter. When this field is empty, all packets are captured.

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20filter_v1">Link to this property</a>

OffsetTime TimeOptional

The RFC 3339 offset timestamp from which to query backwards for packets. Must be within the last 24h. When this field is empty, defaults to time of request.

formatdate-time

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20offset_time">Link to this property</a>

<details>

<summary>

Status PCAPStatusOptional

The status of the packet capture request.

</summary>

One of the following:

const PCAPStatusUnknown PCAPStatus = "unknown"

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

const PCAPStatusSuccess PCAPStatus = "success"

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

const PCAPStatusPending PCAPStatus = "pending"

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

const PCAPStatusRunning PCAPStatus = "running"

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const PCAPStatusConversionPending PCAPStatus = "conversion\_pending"

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const PCAPStatusConversionRunning PCAPStatus = "conversion\_running"

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

const PCAPStatusComplete PCAPStatus = "complete"

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%206">Link to this property</a>

const PCAPStatusFailed PCAPStatus = "failed"

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%207">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

Submitted stringOptional

The RFC 3339 timestamp when the packet capture was created.

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20submitted">Link to this property</a>

System PCAPSystemOptional

The system used to collect packet captures.

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20system">Link to this property</a>

TimeLimit float64Optional

The packet capture duration in seconds.

maximum300

minimum1

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20time_limit">Link to this property</a>

<details>

<summary>

Type PCAPTypeOptional

The type of packet capture. <code>Simple</code> captures sampled packets, and <code>full</code> captures entire payloads and non-sampled packets.

</summary>

One of the following:

const PCAPTypeSimple PCAPType = "simple"

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

const PCAPTypeFull PCAPType = "full"

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

</details>

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

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

<details>

<summary>

type PCAPFilter struct{…}

The packet capture filter. When this field is empty, all packets are captured.

</summary>

DestinationAddress stringOptional

The destination IP address of the packet.

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap_filter%20%3E%20(schema)%20%3E%20(property)%20destination_address">Link to this property</a>

DestinationPort float64Optional

The destination port of the packet.

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap_filter%20%3E%20(schema)%20%3E%20(property)%20destination_port">Link to this property</a>

Protocol float64Optional

The protocol number of the packet.

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap_filter%20%3E%20(schema)%20%3E%20(property)%20protocol">Link to this property</a>

SourceAddress stringOptional

The source IP address of the packet.

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap_filter%20%3E%20(schema)%20%3E%20(property)%20source_address">Link to this property</a>

SourcePort float64Optional

The source port of the packet.

<a href="#(resource)%20magic_transit.pcaps%20%3E%20(model)%20pcap_filter%20%3E%20(schema)%20%3E%20(property)%20source_port">Link to this property</a>

</details>

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

#### Magic TransitPCAPsOwnership

##### [List PCAPs Bucket Ownership](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/pcaps/subresources/ownership/methods/get)

client.MagicTransit.PCAPs.Ownership.Get(ctx, query) (\*SinglePage\[[Ownership](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.pcaps.ownership%20%3E%20(model)%20ownership%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/pcaps/ownership

##### [Add buckets for full packet captures](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/pcaps/subresources/ownership/methods/create)

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

POST/accounts/{account\_id}/pcaps/ownership

##### [Delete buckets for full packet captures](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/pcaps/subresources/ownership/methods/delete)

client.MagicTransit.PCAPs.Ownership.Delete(ctx, ownershipID, body) error

DELETE/accounts/{account\_id}/pcaps/ownership/{ownership\_id}

##### [Validate buckets for full packet captures](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/pcaps/subresources/ownership/methods/validate)

client.MagicTransit.PCAPs.Ownership.Validate(ctx, params) (\*[Ownership](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.pcaps.ownership%20%3E%20(model)%20ownership%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pcaps/ownership/validate

##### ModelsExpand Collapse

<details>

<summary>

type Ownership struct{…}

</summary>

ID string

The bucket ID associated with the packet captures API.

maxLength32

minLength32

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

DestinationConf string

The full URI for the bucket. This field only applies to <code>full</code> packet captures.

<a href="#(resource)%20magic_transit.pcaps.ownership%20%3E%20(model)%20ownership%20%3E%20(schema)%20%3E%20(property)%20destination_conf">Link to this property</a>

Filename string

The ownership challenge filename stored in the bucket.

<a href="#(resource)%20magic_transit.pcaps.ownership%20%3E%20(model)%20ownership%20%3E%20(schema)%20%3E%20(property)%20filename">Link to this property</a>

<details>

<summary>

Status OwnershipStatus

The status of the ownership challenge. Can be pending, success or failed.

</summary>

One of the following:

const OwnershipStatusPending OwnershipStatus = "pending"

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

const OwnershipStatusSuccess OwnershipStatus = "success"

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

const OwnershipStatusFailed OwnershipStatus = "failed"

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

</details>

<a href="#(resource)%20magic_transit.pcaps.ownership%20%3E%20(model)%20ownership%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

Submitted string

The RFC 3339 timestamp when the bucket was added to packet captures API.

<a href="#(resource)%20magic_transit.pcaps.ownership%20%3E%20(model)%20ownership%20%3E%20(schema)%20%3E%20(property)%20submitted">Link to this property</a>

Validated stringOptional

The RFC 3339 timestamp when the bucket was validated.

<a href="#(resource)%20magic_transit.pcaps.ownership%20%3E%20(model)%20ownership%20%3E%20(schema)%20%3E%20(property)%20validated">Link to this property</a>

</details>

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

#### Magic TransitPCAPsDownload

##### [Download Simple PCAP](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/pcaps/subresources/download/methods/get)

client.MagicTransit.PCAPs.Download.Get(ctx, pcapID, query) (\*Response, error)

GET/accounts/{account\_id}/pcaps/{pcap\_id}/download