Magic Transit
magic_transit
Domain types
Apps
magic_transit.apps
Methods
Creates a new App for an account
Deletes specific Account App.
Lists Apps associated with an account.
Updates an Account App
Cf Interconnects
magic_transit.cf_interconnects
Methods
Updates multiple interconnects associated with an account. Use ?validate_only=true
as an optional query parameter to only run validation without persisting changes.
Lists details for a specific interconnect.
Lists interconnects associated with an account.
Updates a specific interconnect 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
Update Connector
Fetch Connector
List Connectors
Replace Connector
GRE Tunnels
magic_transit.gre_tunnels
Methods
Updates multiple GRE tunnels. Use ?validate_only=true
as an optional query parameter to only run validation without persisting changes.
Creates new GRE tunnels. 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.
Lists informtion for a specific GRE tunnel.
Lists GRE tunnels associated with an account.
Updates a specific GRE tunnel. Use ?validate_only=true
as an optional query parameter to only run validation without persisting changes.
IPSEC Tunnels
magic_transit.ipsec_tunnels
Methods
Update multiple IPsec tunnels associated with an account. Use ?validate_only=true
as an optional query parameter to only run validation without persisting changes.
Creates new IPsec tunnels 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.
Lists details for a specific IPsec tunnel.
Lists IPsec tunnels associated with an account.
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.
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.
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example: X-Auth-Email: user@example.com
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example: X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Identifier
Identifier
Whether the API call was successful
Domain types
PCAPs
magic_transit.pcaps
Methods
Create new PCAP request for account.
Get information for a PCAP request by id.
Lists all packet capture requests for an account.
Domain types
magic_transit.pcaps.download
Methods
Download PCAP information into a file. Response is a binary PCAP file.
magic_transit.pcaps.ownership
Methods
Adds an AWS or GCP bucket to use with full packet captures.
Deletes buckets added to the packet captures API.
List all buckets configured for use with PCAPs API.
Validates buckets added to the packet captures API.
Domain types
Routes
magic_transit.routes
Methods
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.
Creates a new 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.
Delete multiple Magic static routes.
Get a specific Magic static route.
List all Magic static routes.
Update a specific Magic static route. Use ?validate_only=true
as an optional query parameter to run validation only without persisting changes.
Domain types
Sites
magic_transit.sites
Methods
Creates a new Site
Remove a specific Site.
Patch a specific Site.
Get a specific Site.
Lists Sites associated with an account. Use connector_identifier query param to return sites where connector_identifier matches either site.ConnectorID or site.SecondaryConnectorID.
Update a specific Site.
Domain types
magic_transit.sites.acls
Methods
Creates a new Site ACL.
Remove a specific Site ACL.
Patch a specific Site ACL.
Get a specific Site ACL.
Lists Site ACLs associated with an account.
Update a specific Site ACL.
Domain types
magic_transit.sites.lans
Methods
Creates a new Site LAN. If the site is in high availability mode, static_addressing is required along with secondary and virtual address.
Remove a specific Site LAN.
Patch a specific Site LAN.
Get a specific Site LAN.
Lists Site LANs associated with an account.
Update a specific Site LAN.
Domain types
magic_transit.sites.wans
Methods
Creates a new Site WAN.
Remove a specific Site WAN.
Patch a specific Site WAN.
Get a specific Site WAN.
Lists Site WANs associated with an account.
Update a specific Site WAN.
Domain types