Magic Transit
magic_transit
Domain types
How frequent the health check is run. The default value is mid.
The type of healthcheck to run, reply or request. The default value is reply.
Apps
magic_transit.apps
Methods
Lists Apps associated with an account.
Creates a new App for an account
Updates an Account App
Updates an Account App
Deletes specific Account App.
Cf Interconnects
magic_transit.cf_interconnects
Methods
Lists interconnects associated with an account.
Lists details for a specific interconnect.
Updates a specific interconnect associated with an account. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
Updates multiple interconnects associated with an account. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
Connectors
magic_transit.connectors
Methods
List Connectors
Fetch Connector
Add a connector to your account
Replace Connector or Re-provision License Key
Edit Connector to update specific properties or Re-provision License Key
Remove a connector from your account
magic_transit.connectors.events
Methods
List Events
Get Event
magic_transit.connectors.events.latest
Methods
Get latest Events
magic_transit.connectors.snapshots
Methods
List Snapshots
Get Snapshot
magic_transit.connectors.snapshots.latest
Methods
Get latest Snapshots
GRE Tunnels
magic_transit.gre_tunnels
Methods
Lists GRE tunnels associated with an account.
Lists informtion for a specific GRE tunnel.
Creates a new GRE tunnel. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
Updates a specific GRE tunnel. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
Disables and removes a specific static GRE tunnel. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
Updates multiple GRE tunnels. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
IPSEC Tunnels
magic_transit.ipsec_tunnels
Methods
Lists IPsec tunnels associated with an account.
Lists details for a specific IPsec tunnel.
Creates a new IPsec tunnel associated with an account. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
Updates a specific IPsec tunnel associated with an account. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
Disables and removes a specific static IPsec Tunnel associated with an account. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
Update multiple IPsec tunnels associated with an account. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
Generates a Pre Shared Key for a specific IPsec tunnel used in the IKE session. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes. After a PSK is generated, the PSK is immediately persisted to Cloudflare's edge and cannot be retrieved later. Note the PSK in a safe place.
Domain types
The PSK metadata that includes when the PSK was generated.
PCAPs
magic_transit.pcaps
Methods
Lists all packet capture requests for an account.
Get information for a PCAP request by id.
Create new PCAP request for account.
Stop full PCAP.
Domain types
The packet capture filter. When this field is empty, all packets are captured.
magic_transit.pcaps.download
Methods
Download PCAP information into a file. Response is a binary PCAP file.
magic_transit.pcaps.ownership
Methods
List all buckets configured for use with PCAPs API.
Adds an AWS or GCP bucket to use with full packet captures.
Deletes buckets added to the packet captures API.
Validates buckets added to the packet captures API.
Domain types
Routes
magic_transit.routes
Methods
List all Magic static routes.
Get a specific Magic static route.
Creates a new Magic static route. Use ?validate_only=true as an optional query parameter to run validation only without persisting changes.
Update a specific Magic static route. Use ?validate_only=true as an optional query parameter to run validation only without persisting changes.
Disable and remove a specific Magic static route.
Update multiple Magic static routes. Use ?validate_only=true as an optional query parameter to run validation only without persisting changes. Only fields for a route that need to be changed need be provided.
Delete multiple Magic static routes.
Domain types
Used only for ECMP routes.
Sites
magic_transit.sites
Methods
Lists Sites associated with an account. Use connectorid query param to return sites where connectorid matches either site.ConnectorID or site.SecondaryConnectorID.
Get a specific Site.
Creates a new Site
Update a specific Site.
Patch a specific Site.
Remove a specific Site.
Domain types
Location of site in latitude and longitude.
magic_transit.sites.acls
Methods
Lists Site ACLs associated with an account.
Get a specific Site ACL.
Creates a new Site ACL.
Update a specific Site ACL.
Patch a specific Site ACL.
Remove a specific Site ACL.
Domain types
Bidirectional ACL policy for network traffic within a site.
Array of allowed communication protocols between configured LANs. If no protocols are provided, all protocols are allowed.
A valid IPv4 address.
magic_transit.sites.app_configuration
Methods
Lists App Configs associated with a site.
Creates a new App Config for a site
Updates an App Config for a site
Updates an App Config for a site
Deletes specific App Config associated with a site.
magic_transit.sites.lans
Methods
Lists Site LANs associated with an account.
Get a specific Site LAN.
Creates a new Site LAN. If the site is in high availability mode, static_addressing is required along with secondary and virtual address.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Magic WAN Write Magic Transit Write
Identifier
Identifier
Whether the API call was successful
Update a specific Site LAN.
Patch a specific Site LAN.
Remove a specific Site LAN.
Domain types
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.
magic_transit.sites.wans
Methods
Lists Site WANs associated with an account.
Get a specific Site WAN.
Creates a new Site WAN.
Update a specific Site WAN.
Patch a specific Site WAN.
Remove a specific Site WAN.
Domain types
(optional) if omitted, use DHCP. Submit secondary_address when site is in high availability mode.