fn listdnsprotectionrulesforaccount(page?: number, per_page?: number, order?: string, direction?: string)
List all DNS Protection rules.
| Argument | Type | Required | Description |
|---|
| page? | number | no | The page number for pagination. Defaults to 1. |
| per_page? | number | no | The number of items per page. Must be between 10 and 1000. Defaults to 25. |
| order? | string | no | The field to order by. Defaults to 'prefix'. |
| direction? | string | no | The direction of ordering (ASC or DESC). Defaults to 'ASC'. |
fn creatednsprotectionrule(burst_sensitivity: string, mode: string, name: string, profile_sensitivity: string, rate_sensitivity: string, scope: string)
Create DNS Protection rule.
| Argument | Type | Required | Description |
|---|
| burst_sensitivity | string | yes | The burst sensitivity. Must be one of 'low', 'medium', 'high'. |
| mode | string | yes | The mode for DNS Protection. Must be one of 'enabled', 'disabled', 'monitoring'. |
| name | string | yes | The name of the DNS Protection rule. Value is relative to the 'scope' setting... |
| profile_sensitivity | string | yes | The profile sensitivity. Recommended setting is 'low'. Must be one of 'low', ... |
| rate_sensitivity | string | yes | The rate sensitivity. Must be one of 'low', 'medium', 'high'. |
| scope | string | yes | The scope for the DNS Protection rule. Must be one of 'global', 'region', or ... |
fn deletednsprotectionrulesforaccount()
Delete all DNS Protection rules.
fn getdnsprotectionrule(rule_id: string)
Get DNS Protection rule.
| Argument | Type | Required | Description |
|---|
| rule_id | string | yes | The UUID of the DNS Protection rule. |
fn updatednsprotectionrule(rule_id: string, burst_sensitivity?: string, mode?: string, profile_sensitivity?: string, rate_sensitivity?: string)
Update DNS Protection rule.
| Argument | Type | Required | Description |
|---|
| rule_id | string | yes | The UUID of the DNS Protection rule to update. |
| burst_sensitivity? | string | no | The new burst sensitivity. Optional. Must be one of 'low', 'medium', 'high'. |
| mode? | string | no | The new mode for DNS Protection. Optional. Must be one of 'enabled', 'disable... |
| profile_sensitivity? | string | no | The new profile sensitivity. Optional. Recommended setting is 'low'. Must be ... |
| rate_sensitivity? | string | no | The new rate sensitivity. Optional. Must be one of 'low', 'medium', 'high'. |
fn deletednsprotectionrule(rule_id: string)
Delete DNS Protection rule.
| Argument | Type | Required | Description |
|---|
| rule_id | string | yes | The UUID of the DNS Protection rule to delete. |
fn listallowlistprefixesforaccount(page?: number, per_page?: number, order?: string, direction?: string)
List all allowlist prefixes.
| Argument | Type | Required | Description |
|---|
| page? | number | no | The page number for pagination. Defaults to 1. |
| per_page? | number | no | The number of items per page. Must be between 10 and 1000. Defaults to 25. |
| order? | string | no | The field to order by. Defaults to 'prefix'. |
| direction? | string | no | The direction of ordering (ASC or DESC). Defaults to 'ASC'. |
fn createallowlistedprefix(comment: string, enabled: boolean, prefix: string)
Create allowlist prefix.
| Argument | Type | Required | Description |
|---|
| comment | string | yes | An comment describing the allowlist prefix. |
| enabled | boolean | yes | Whether to enable the allowlist prefix into effect. |
| prefix | string | yes | The allowlist prefix to add in CIDR format. |
fn deleteallowlistprefixesforaccount()
Delete all allowlist prefixes.
fn getallowlistprefix(prefix_id: string)
Get allowlist prefix.
| Argument | Type | Required | Description |
|---|
| prefix_id | string | yes | The UUID of the allowlist prefix. |
fn updateallowlistprefix(prefix_id: string, comment?: string, enabled?: boolean)
Update allowlist prefix.
| Argument | Type | Required | Description |
|---|
| prefix_id | string | yes | The UUID of the allowlist prefix to update. |
| comment? | string | no | A comment describing the allowlist prefix. Optional. |
| enabled? | boolean | no | Whether to enable the allowlist prefix into effect. Optional. |
fn deleteallowlistprefix(prefix_id: string)
Delete allowlist prefix.
| Argument | Type | Required | Description |
|---|
| prefix_id | string | yes | The UUID of the allowlist prefix to delete. |
fn listprefixesforaccount(page?: number, per_page?: number, order?: string, direction?: string)
List all prefixes.
| Argument | Type | Required | Description |
|---|
| page? | number | no | The page number for pagination. Defaults to 1. |
| per_page? | number | no | The number of items per page. Must be between 10 and 1000. Defaults to 25. |
| order? | string | no | The field to order by. Defaults to 'prefix'. |
| direction? | string | no | The direction of ordering (ASC or DESC). Defaults to 'ASC'. |
fn createprefix(comment: string, excluded: boolean, prefix: string)
Create prefix.
| Argument | Type | Required | Description |
|---|
| comment | string | yes | A comment describing the prefix. |
| excluded | boolean | yes | Whether to exclude the prefix from protection. |
| prefix | string | yes | The prefix to add in CIDR format. |
fn deleteprefixesforaccount()
Delete all prefixes.
fn bulkcreateprefixes()
Create multiple prefixes.
fn getprefix(prefix_id: string)
Get prefix.
| Argument | Type | Required | Description |
|---|
| prefix_id | string | yes | The UUID of the prefix. |
fn updateprefix(prefix_id: string, comment?: string, excluded?: boolean)
Update prefix.
| Argument | Type | Required | Description |
|---|
| prefix_id | string | yes | The UUID of the prefix to update. |
| comment? | string | no | A new comment for the prefix. Optional. |
| excluded? | boolean | no | Whether to exclude the prefix from protection. Optional. |
fn deleteprefix(prefix_id: string)
Delete prefix.
| Argument | Type | Required | Description |
|---|
| prefix_id | string | yes | The UUID of the prefix to delete. |
fn listsynprotectionfiltersforaccount(mode?: string, page?: number, per_page?: number, order?: string, direction?: string)
List all SYN Protection filters.
| Argument | Type | Required | Description |
|---|
| mode? | string | no | The mode of the filters to get. Optional. Valid values: 'enabled', 'disabled', 'monitoring'. |
| page? | number | no | The page number for pagination. Defaults to 1. |
| per_page? | number | no | The number of items per page. Must be between 10 and 1000. Defaults to 25. |
| order? | string | no | The field to order by. Defaults to 'prefix'. |
| direction? | string | no | The direction of ordering (ASC or DESC). Defaults to 'ASC'. |
fn createsynprotectionfilter(expression: string, mode: string)
Create a SYN Protection filter.
| Argument | Type | Required | Description |
|---|
| expression | string | yes | The filter expression. |
| mode | string | yes | The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'. |
fn deletesynprotectionfiltersforaccount()
Delete all SYN Protection filters.
fn getsynprotectionfilter(filter_id: string)
Get SYN Protection filter.
| Argument | Type | Required | Description |
|---|
| filter_id | string | yes | The UUID of the filter to retrieve. |
fn updatesynprotectionfilter(filter_id: string, expression?: string, mode?: string)
Update SYN Protection filter.
| Argument | Type | Required | Description |
|---|
| filter_id | string | yes | The UUID of the filter to update. |
| expression? | string | no | The new filter expression. Optional. |
| mode? | string | no | The new mode for the filter. Optional. Must be one of 'enabled', 'disabled', ... |
fn deletesynprotectionfilter(filter_id: string)
Delete SYN Protection filter.
| Argument | Type | Required | Description |
|---|
| filter_id | string | yes | The UUID of the filter to delete. |
fn listsynprotectionrulesforaccount(page?: number, per_page?: number, order?: string, direction?: string)
List all SYN Protection rules.
| Argument | Type | Required | Description |
|---|
| page? | number | no | The page number for pagination. Defaults to 1. |
| per_page? | number | no | The number of items per page. Must be between 10 and 1000. Defaults to 25. |
| order? | string | no | The field to order by. Defaults to 'prefix'. |
| direction? | string | no | The direction of ordering (ASC or DESC). Defaults to 'ASC'. |
fn createsynprotectionrule(burst_sensitivity: string, mitigation_type?: string, mode: string, name: string, rate_sensitivity: string, scope: string)
Create SYN Protection rule.
| Argument | Type | Required | Description |
|---|
| burst_sensitivity | string | yes | The burst sensitivity. Must be one of 'low', 'medium', 'high'. |
| mitigation_type? | string | no | The type of mitigation. Must be one of 'challenge' or 'retransmit'. Optional.... |
| mode | string | yes | The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'. |
| name | string | yes | The name of the SYN Protection rule. Value is relative to the 'scope' setting... |
| rate_sensitivity | string | yes | The rate sensitivity. Must be one of 'low', 'medium', 'high'. |
| scope | string | yes | The scope for the SYN Protection rule. Must be one of 'global', 'region', or ... |
fn deletesynprotectionrulesforaccount()
Delete all SYN Protection rules.
fn getsynprotectionrule(rule_id: string)
Get SYN Protection rule.
| Argument | Type | Required | Description |
|---|
| rule_id | string | yes | The UUID of the SYN Protection rule. |
fn updatesynprotectionrule(rule_id: string, burst_sensitivity?: string, mitigation_type?: string, mode?: string, rate_sensitivity?: string)
Update SYN Protection rule.
| Argument | Type | Required | Description |
|---|
| rule_id | string | yes | The UUID of the SYN Protection rule to update. |
| burst_sensitivity? | string | no | The new burst sensitivity. Optional. Must be one of 'low', 'medium', 'high'. |
| mitigation_type? | string | no | The new mitigation type. Optional. Must be one of 'challenge' or 'retransmit'. |
| mode? | string | no | The new mode for SYN Protection. Optional. Must be one of 'enabled', 'disable... |
| rate_sensitivity? | string | no | The new rate sensitivity. Optional. Must be one of 'low', 'medium', 'high'. |
fn deletesynprotectionrule(rule_id: string)
Delete SYN Protection rule.
| Argument | Type | Required | Description |
|---|
| rule_id | string | yes | The UUID of the SYN Protection rule to delete. |
fn listtcpflowprotectionfiltersforaccount(mode?: string, page?: number, per_page?: number, order?: string, direction?: string)
List all TCP Flow Protection filters.
| Argument | Type | Required | Description |
|---|
| mode? | string | no | The mode of the filters to get. Optional. Valid values: 'enabled', 'disabled', 'monitoring'. |
| page? | number | no | The page number for pagination. Defaults to 1. |
| per_page? | number | no | The number of items per page. Must be between 10 and 1000. Defaults to 25. |
| order? | string | no | The field to order by. Defaults to 'prefix'. |
| direction? | string | no | The direction of ordering (ASC or DESC). Defaults to 'ASC'. |
fn createtcpflowprotectionfilter(expression: string, mode: string)
Create a TCP Flow Protection filter.
| Argument | Type | Required | Description |
|---|
| expression | string | yes | The filter expression. |
| mode | string | yes | The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'. |
fn deletetcpflowprotectionfiltersforaccount()
Delete all TCP Flow Protection filters.
fn gettcpflowprotectionfilter(filter_id: string)
Get TCP Flow Protection filter.
| Argument | Type | Required | Description |
|---|
| filter_id | string | yes | The UUID of the filter to retrieve. |
fn updatetcpflowprotectionfilter(filter_id: string, expression?: string, mode?: string)
Update TCP Flow Protection filter.
| Argument | Type | Required | Description |
|---|
| filter_id | string | yes | The UUID of the filter to update. |
| expression? | string | no | The new filter expression. Optional. |
| mode? | string | no | The new mode for the filter. Optional. Must be one of 'enabled', 'disabled', ... |
fn deletetcpflowprotectionfilter(filter_id: string)
Delete TCP Flow Protection filter.
| Argument | Type | Required | Description |
|---|
| filter_id | string | yes | The UUID of the filter to delete. |
fn listtcpflowprotectionrulesforaccount(page?: number, per_page?: number, order?: string, direction?: string)
List all TCP Flow Protection rules.
| Argument | Type | Required | Description |
|---|
| page? | number | no | The page number for pagination. Defaults to 1. |
| per_page? | number | no | The number of items per page. Must be between 10 and 1000. Defaults to 25. |
| order? | string | no | The field to order by. Defaults to 'prefix'. |
| direction? | string | no | The direction of ordering (ASC or DESC). Defaults to 'ASC'. |
fn createtcpflowprotectionrule(burst_sensitivity: string, mode: string, name: string, rate_sensitivity: string, scope: string)
Create TCP Flow Protection rule.
| Argument | Type | Required | Description |
|---|
| burst_sensitivity | string | yes | The burst sensitivity. Must be one of 'low', 'medium', 'high'. |
| mode | string | yes | The mode for the TCP Flow Protection. Must be one of 'enabled', 'disabled', '... |
| name | string | yes | The name of the TCP Flow Protection rule. Value is relative to the 'scope' se... |
| rate_sensitivity | string | yes | The rate sensitivity. Must be one of 'low', 'medium', 'high'. |
| scope | string | yes | The scope for the TCP Flow Protection rule. |
fn deletetcpflowprotectionrulesforaccount()
Delete all TCP Flow Protection rules.
fn gettcpflowprotectionrule(rule_id: string)
Get TCP Flow Protection rule.
| Argument | Type | Required | Description |
|---|
| rule_id | string | yes | The UUID of the TCP Flow Protection rule. |
fn updatetcpflowprotectionrule(rule_id: string, burst_sensitivity?: string, mode?: string, rate_sensitivity?: string)
Update TCP Flow Protection rule.
| Argument | Type | Required | Description |
|---|
| rule_id | string | yes | The UUID of the TCP Flow Protection rule to update. |
| burst_sensitivity? | string | no | The new burst sensitivity. Optional. Must be one of 'low', 'medium', 'high'. |
| mode? | string | no | The new mode for TCP Flow Protection. Optional. Must be one of 'enabled', 'di... |
| rate_sensitivity? | string | no | The new rate sensitivity. Optional. Must be one of 'low', 'medium', 'high'. |
fn deletetcpflowprotectionrule(rule_id: string)
Delete TCP Flow Protection rule.
| Argument | Type | Required | Description |
|---|
| rule_id | string | yes | The UUID of the TCP Flow Protection rule to delete. |
fn getprotectionstatus()
Get protection status.
fn updateprotectionstatus(enabled: boolean)
Update protection status.
| Argument | Type | Required | Description |
|---|
| enabled | boolean | yes | Enables or disables protection. |
fn create_magic_account_apps_add_app(hostnames?: unknown, ip_subnets?: unknown, name: unknown, source_subnets?: unknown, type: unknown)
Create a new App
| Argument | Type | Required | Description |
|---|
| hostnames? | unknown | no | |
| ip_subnets? | unknown | no | |
| name | unknown | yes | |
| source_subnets? | unknown | no | |
| type | unknown | yes | |
fn update_app(account_app_id: string, hostnames?: unknown, ip_subnets?: unknown, name?: unknown, source_subnets?: unknown, type?: unknown)
Update an App
| Argument | Type | Required | Description |
|---|
| account_app_id | string | yes | |
| hostnames? | unknown | no | |
| ip_subnets? | unknown | no | |
| name? | unknown | no | |
| source_subnets? | unknown | no | |
| type? | unknown | no | |
fn patch_app(account_app_id: string, hostnames?: unknown, ip_subnets?: unknown, name?: unknown, source_subnets?: unknown, type?: unknown)
Update an App
| Argument | Type | Required | Description |
|---|
| account_app_id | string | yes | |
| hostnames? | unknown | no | |
| ip_subnets? | unknown | no | |
| name? | unknown | no | |
| source_subnets? | unknown | no | |
| type? | unknown | no | |
fn delete_app(account_app_id: string)
Delete Account App
| Argument | Type | Required | Description |
|---|
| account_app_id | string | yes | |
fn list_filter_profiles()
List BGP Filter Profiles
fn create_filter_profile(description?: string, match_action: unknown, name: string, targets: array)
Create BGP Filter Profile
| Argument | Type | Required | Description |
|---|
| description? | string | no | Description of the filter profile |
| match_action | unknown | yes | |
| name | string | yes | Friendly name for the filter profile |
| targets | array | yes | List of CIDR prefixes. Each entry may carry an optional suffix that specifies... |
fn get_filter_profile(profile_id: string)
Get BGP Filter Profile
| Argument | Type | Required | Description |
|---|
| profile_id | string | yes | CNI (connector network interconnect) profile identifier. |
fn update_filter_profile(profile_id: string, description?: string, match_action?: unknown, name?: string, targets?: array)
Update BGP Filter Profile
| Argument | Type | Required | Description |
|---|
| profile_id | string | yes | CNI (connector network interconnect) profile identifier. |
| description? | string | no | Description of the filter profile |
| match_action? | unknown | no | |
| name? | string | no | Friendly name for the filter profile |
| targets? | array | no | List of CIDR prefixes. Each entry may carry an optional suffix that specifies... |
fn delete_filter_profile(profile_id: string)
Delete BGP Filter Profile
| Argument | Type | Required | Description |
|---|
| profile_id | string | yes | CNI (connector network interconnect) profile identifier. |
fn get_settings()
Get BGP Settings
fn update_settings(cloudflare_asn?: number, redistribute?: unknown)
Update BGP Settings
| Argument | Type | Required | Description |
|---|
| cloudflare_asn? | number | no | Route advertisements from Cloudflare to ramps in this account will use this ASN. |
| redistribute? | unknown | no | |
fn list_cf1_sites()
List CF1 Sites
fn create_cf1_sites()
Create CF1 Sites
fn get_cf1_site(cf1_site_id: string)
Get CF1 Site
| Argument | Type | Required | Description |
|---|
| cf1_site_id | string | yes | |
fn update_cf1_site(cf1_site_id: string, description?: string, location?: unknown, name?: string)
Update CF1 Site
| Argument | Type | Required | Description |
|---|
| cf1_site_id | string | yes | |
| description? | string | no | A human-provided description of the CF1 Site. |
| location? | unknown | no | |
| name? | string | no | A human-provided name describing the CF1 Site that should be unique within th... |
fn delete_cf1_site(cf1_site_id: string)
Delete CF1 Site
| Argument | Type | Required | Description |
|---|
| cf1_site_id | string | yes | |
fn list_cf1_site_ramps(cf1_site_id: string)
List CF1 Site Ramps
| Argument | Type | Required | Description |
|---|
| cf1_site_id | string | yes | |
fn create_cf1_site_ramps(cf1_site_id: string)
Create CF1 Site Ramps
| Argument | Type | Required | Description |
|---|
| cf1_site_id | string | yes | |
fn get_cf1_site_ramp(cf1_site_id: string, ramp_id: string)
Get CF1 Site Ramp
| Argument | Type | Required | Description |
|---|
| cf1_site_id | string | yes | |
| ramp_id | string | yes | |
fn delete_cf1_site_ramp(cf1_site_id: string, ramp_id: string)
Delete CF1 Site Ramp
| Argument | Type | Required | Description |
|---|
| cf1_site_id | string | yes | |
| ramp_id | string | yes | |
fn list_interconnects()
List interconnects
fn update_multiple_interconnects()
Update multiple interconnects
fn list_interconnect_details(cf_interconnect_id: string)
List interconnect Details
| Argument | Type | Required | Description |
|---|
| cf_interconnect_id | string | yes | |
fn update_interconnect(cf_interconnect_id: string, automatic_return_routing?: unknown, description?: unknown, gre?: unknown, health_check?: unknown, interface_address?: unknown, interface_address6?: unknown, mtu?: unknown, name?: unknown)
Update interconnect
| Argument | Type | Required | Description |
|---|
| cf_interconnect_id | string | yes | |
| automatic_return_routing? | unknown | no | |
| description? | unknown | no | |
| gre? | unknown | no | |
| health_check? | unknown | no | |
| interface_address? | unknown | no | |
| interface_address6? | unknown | no | |
| mtu? | unknown | no | |
| name? | unknown | no | |
fn list()
List Catalog Syncs
fn create(description?: string, destination_type: unknown, name: string, policy?: string, update_mode: unknown)
Create Catalog Sync
| Argument | Type | Required | Description |
|---|
| description? | string | no | |
| destination_type | unknown | yes | |
| name | string | yes | |
| policy? | string | no | |
| update_mode | unknown | yes | |
fn get_catalog_syncs_read(sync_id: string)
Read Catalog Sync
| Argument | Type | Required | Description |
|---|
| sync_id | string | yes | PCAP collection sync identifier. |
fn update(sync_id: string, description?: string, name?: string, policy?: string, update_mode?: unknown)
Update Catalog Sync
| Argument | Type | Required | Description |
|---|
| sync_id | string | yes | PCAP collection sync identifier. |
| description? | string | no | |
| name? | string | no | |
| policy? | string | no | |
| update_mode? | unknown | no | |
fn patch(sync_id: string, description?: string, name?: string, policy?: string, update_mode?: unknown)
Patch Catalog Sync
| Argument | Type | Required | Description |
|---|
| sync_id | string | yes | PCAP collection sync identifier. |
| description? | string | no | |
| name? | string | no | |
| policy? | string | no | |
| update_mode? | unknown | no | |
fn delete(sync_id: string, delete_destination?: boolean)
Delete Catalog Sync
| Argument | Type | Required | Description |
|---|
| sync_id | string | yes | PCAP collection sync identifier. |
| delete_destination? | boolean | no | |
fn catalog_syncs_refresh(sync_id: string)
Run Catalog Sync
| Argument | Type | Required | Description |
|---|
| sync_id | string | yes | PCAP collection sync identifier. |
fn get_onramps_mwan_addr_space_read()
Read Magic WAN Address Space
fn get_onramps_read(onramp_id: string, status?: boolean, vpcs?: boolean, post_apply_resources?: boolean, planned_resources?: boolean)
Read On-ramp
| Argument | Type | Required | Description |
|---|
| onramp_id | string | yes | Onramp identifier. |
| status? | boolean | no | |
| vpcs? | boolean | no | |
| post_apply_resources? | boolean | no | |
| planned_resources? | boolean | no | |
fn onramps_apply(onramp_id: string)
Apply On-ramp
| Argument | Type | Required | Description |
|---|
| onramp_id | string | yes | Onramp identifier. |
fn onramps_plan(onramp_id: string)
Plan On-ramp
| Argument | Type | Required | Description |
|---|
| onramp_id | string | yes | Onramp identifier. |
fn providers_discover_all()
Run Discovery for All Integrations
fn get_providers_read(provider_id: string, status?: boolean)
Read Cloud Integration
| Argument | Type | Required | Description |
|---|
| provider_id | string | yes | Network interconnect provider identifier. |
| status? | boolean | no | |
fn providers_discover(provider_id: string, v2?: boolean)
Run Discovery
| Argument | Type | Required | Description |
|---|
| provider_id | string | yes | Network interconnect provider identifier. |
| v2? | boolean | no | |
fn get_providers_initial_setup(provider_id: string)
Get Cloud Integration Setup Config
| Argument | Type | Required | Description |
|---|
| provider_id | string | yes | Network interconnect provider identifier. |
fn create_resources_catalog_policy_preview(policy: string)
Preview Rego Query
| Argument | Type | Required | Description |
|---|
| policy | string | yes | |
fn get_resources_catalog_read(resource_id: string, v2?: boolean)
Read Resource
| Argument | Type | Required | Description |
|---|
| resource_id | string | yes | |
| v2? | boolean | no | |
fn get(connector_id: string)
Get Connector
| Argument | Type | Required | Description |
|---|
| connector_id | string | yes | |
fn update_mconn_connectors_edit(connector_id: string, activated?: boolean, interrupt_window_days_of_week?: array, interrupt_window_duration_hours?: number, interrupt_window_embargo_dates?: array, interrupt_window_hour_of_day?: number, notes?: string, primary?: boolean, site_id?: string, timezone?: string, provision_license?: boolean)
Edit Connector
| Argument | Type | Required | Description |
|---|
| connector_id | string | yes | |
| activated? | boolean | no | |
| interrupt_window_days_of_week? | array | no | Allowed days of the week for upgrades. Default is all days. |
| interrupt_window_duration_hours? | number | no | |
| interrupt_window_embargo_dates? | array | no | List of dates (YYYY-MM-DD) when upgrades are blocked. |
| interrupt_window_hour_of_day? | number | no | |
| notes? | string | no | |
| primary? | boolean | no | |
| site_id? | string | no | |
| timezone? | string | no | |
| provision_license? | boolean | no | When true, regenerate license key for the connector. |
fn list_gre_tunnels()
List GRE tunnels
fn create_gre_tunnels(automatic_return_routing?: unknown, bgp?: unknown, cloudflare_gre_endpoint: unknown, customer_gre_endpoint: unknown, description?: unknown, health_check?: unknown, interface_address: unknown, interface_address6?: unknown, mtu?: unknown, name: unknown, ttl?: unknown)
Create a GRE tunnel
| Argument | Type | Required | Description |
|---|
| automatic_return_routing? | unknown | no | |
| bgp? | unknown | no | |
| cloudflare_gre_endpoint | unknown | yes | |
| customer_gre_endpoint | unknown | yes | |
| description? | unknown | no | |
| health_check? | unknown | no | |
| interface_address | unknown | yes | |
| interface_address6? | unknown | no | |
| mtu? | unknown | no | |
| name | unknown | yes | |
| ttl? | unknown | no | |
fn update_multiple_gre_tunnels()
Update multiple GRE tunnels
fn list_gre_tunnel_details(gre_tunnel_id: string)
List GRE Tunnel Details
| Argument | Type | Required | Description |
|---|
| gre_tunnel_id | string | yes | GRE tunnel identifier. |
fn update_gre_tunnel(gre_tunnel_id: string, automatic_return_routing?: unknown, cloudflare_gre_endpoint: unknown, customer_gre_endpoint: unknown, description?: unknown, health_check?: unknown, interface_address: unknown, interface_address6?: unknown, mtu?: unknown, name: unknown, ttl?: unknown)
Update GRE Tunnel
| Argument | Type | Required | Description |
|---|
| gre_tunnel_id | string | yes | GRE tunnel identifier. |
| automatic_return_routing? | unknown | no | |
| cloudflare_gre_endpoint | unknown | yes | |
| customer_gre_endpoint | unknown | yes | |
| description? | unknown | no | |
| health_check? | unknown | no | |
| interface_address | unknown | yes | |
| interface_address6? | unknown | no | |
| mtu? | unknown | no | |
| name | unknown | yes | |
| ttl? | unknown | no | |
fn delete_gre_tunnel(gre_tunnel_id: string)
Delete GRE Tunnel
| Argument | Type | Required | Description |
|---|
| gre_tunnel_id | string | yes | GRE tunnel identifier. |
fn list_ipsec_tunnels()
List IPsec tunnels
fn create_ipsec_tunnels(automatic_return_routing?: unknown, bgp?: unknown, cloudflare_endpoint: unknown, custom_remote_identities?: unknown, customer_endpoint?: unknown, description?: unknown, health_check?: unknown, interface_address: unknown, interface_address6?: unknown, name: unknown, psk?: unknown, replay_protection?: unknown)
Create an IPsec tunnel
| Argument | Type | Required | Description |
|---|
| automatic_return_routing? | unknown | no | |
| bgp? | unknown | no | |
| cloudflare_endpoint | unknown | yes | |
| custom_remote_identities? | unknown | no | |
| customer_endpoint? | unknown | no | |
| description? | unknown | no | |
| health_check? | unknown | no | |
| interface_address | unknown | yes | |
| interface_address6? | unknown | no | |
| name | unknown | yes | |
| psk? | unknown | no | |
| replay_protection? | unknown | no | |
fn update_multiple_ipsec_tunnels()
Update multiple IPsec tunnels
fn create_magic_ipsec_tunnels_set_pre_shared_keys_for_ipsec_tunnels(validate_only?: boolean, psks: array)
Set Pre-Shared Keys (PSK) for IPsec tunnels
| Argument | Type | Required | Description |
|---|
| validate_only? | boolean | no | If `true`, only run validation without persisting changes. |
| psks | array | yes | List of tunnel ID and PSK pairs. |
fn list_ipsec_tunnel_details(ipsec_tunnel_id: string)
List IPsec tunnel details
| Argument | Type | Required | Description |
|---|
| ipsec_tunnel_id | string | yes | IPsec tunnel identifier. |
fn update_ipsec_tunnel(ipsec_tunnel_id: string, automatic_return_routing?: unknown, bgp?: unknown, cloudflare_endpoint: unknown, custom_remote_identities?: unknown, customer_endpoint?: unknown, description?: unknown, health_check?: unknown, interface_address: unknown, interface_address6?: unknown, name: unknown, psk?: unknown, replay_protection?: unknown)
Update IPsec Tunnel
| Argument | Type | Required | Description |
|---|
| ipsec_tunnel_id | string | yes | IPsec tunnel identifier. |
| automatic_return_routing? | unknown | no | |
| bgp? | unknown | no | |
| cloudflare_endpoint | unknown | yes | |
| custom_remote_identities? | unknown | no | |
| customer_endpoint? | unknown | no | |
| description? | unknown | no | |
| health_check? | unknown | no | |
| interface_address | unknown | yes | |
| interface_address6? | unknown | no | |
| name | unknown | yes | |
| psk? | unknown | no | |
| replay_protection? | unknown | no | |
fn delete_ipsec_tunnel(ipsec_tunnel_id: string)
Delete IPsec Tunnel
| Argument | Type | Required | Description |
|---|
| ipsec_tunnel_id | string | yes | IPsec tunnel identifier. |
fn magic_ipsec_tunnels_generate_pre_shared_key_psk_for_ipsec_tunnels(ipsec_tunnel_id: string)
Generate Pre-Shared Key (PSK) for IPsec tunnels
| Argument | Type | Required | Description |
|---|
| ipsec_tunnel_id | string | yes | IPsec tunnel identifier. |
fn list_redundancy_groups()
List Redundancy Groups
fn create_redundancy_group(description?: string, members?: array, name: string)
Create a Redundancy Group
| Argument | Type | Required | Description |
|---|
| description? | string | no | Optional description |
| members? | array | no | Tunnels to add to the group |
| name | string | yes | Human-readable name for the redundancy group |
fn get_redundancy_group(redundancy_group_id: string)
Get Redundancy Group Details
| Argument | Type | Required | Description |
|---|
| redundancy_group_id | string | yes | Connector redundancy group identifier. |
fn update_redundancy_group(redundancy_group_id: string, description?: string, members?: array, name: string)
Update a Redundancy Group
| Argument | Type | Required | Description |
|---|
| redundancy_group_id | string | yes | Connector redundancy group identifier. |
| description? | string | no | Optional description |
| members? | array | no | Tunnels to add to the group |
| name | string | yes | Human-readable name for the redundancy group |
fn delete_redundancy_group(redundancy_group_id: string)
Delete a Redundancy Group
| Argument | Type | Required | Description |
|---|
| redundancy_group_id | string | yes | Connector redundancy group identifier. |
fn list_routes()
List Routes
fn create_routes(description?: unknown, nexthop: unknown, prefix: unknown, priority: unknown, scope?: unknown, weight?: unknown)
Create a Route
| Argument | Type | Required | Description |
|---|
| description? | unknown | no | |
| nexthop | unknown | yes | |
| prefix | unknown | yes | |
| priority | unknown | yes | |
| scope? | unknown | no | |
| weight? | unknown | no | |
fn update_many_routes(routes: array)
Update Many Routes
| Argument | Type | Required | Description |
|---|
| routes | array | yes | |
fn delete_many_routes(routes: array)
Delete Many Routes
| Argument | Type | Required | Description |
|---|
| routes | array | yes | |
fn get_magic_static_routes_route_details(route_id: string)
Route Details
| Argument | Type | Required | Description |
|---|
| route_id | string | yes | Static route identifier. |
fn update_route(route_id: string, description?: unknown, nexthop: unknown, prefix: unknown, priority: unknown, scope?: unknown, weight?: unknown)
Update Route
| Argument | Type | Required | Description |
|---|
| route_id | string | yes | Static route identifier. |
| description? | unknown | no | |
| nexthop | unknown | yes | |
| prefix | unknown | yes | |
| priority | unknown | yes | |
| scope? | unknown | no | |
| weight? | unknown | no | |
fn delete_route(route_id: string)
Delete Route
| Argument | Type | Required | Description |
|---|
| route_id | string | yes | Static route identifier. |
fn list_sites(connectorid?: string)
List Sites
| Argument | Type | Required | Description |
|---|
| connectorid? | string | no | |
fn create_site(connector_id?: unknown, description?: string, ha_mode?: boolean, location?: unknown, name: unknown, secondary_connector_id?: unknown)
Create a new Site
| Argument | Type | Required | Description |
|---|
| connector_id? | unknown | no | |
| description? | string | no | |
| ha_mode? | boolean | no | Site high availability mode. If set to true, the site can have two connectors... |
| location? | unknown | no | |
| name | unknown | yes | |
| secondary_connector_id? | unknown | no | |
fn get_magic_sites_site_details(site_id: string)
Site Details
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
fn update_site(site_id: string, connector_id?: unknown, description?: string, location?: unknown, name?: unknown, secondary_connector_id?: unknown)
Update Site
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| connector_id? | unknown | no | |
| description? | string | no | |
| location? | unknown | no | |
| name? | unknown | no | |
| secondary_connector_id? | unknown | no | |
fn patch_site(site_id: string, connector_id?: unknown, description?: string, location?: unknown, name?: unknown, secondary_connector_id?: unknown)
Patch Site
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| connector_id? | unknown | no | |
| description? | string | no | |
| location? | unknown | no | |
| name? | unknown | no | |
| secondary_connector_id? | unknown | no | |
fn delete_site(site_id: string)
Delete Site
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
fn list_acls(site_id: string)
List Site ACLs
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
fn create_acl(site_id: string, description?: string, forward_locally?: unknown, lan_1: unknown, lan_2: unknown, name: string, protocols?: array, unidirectional?: unknown)
Create a new Site ACL
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| description? | string | no | Description for the ACL. |
| forward_locally? | unknown | no | |
| lan_1 | unknown | yes | |
| lan_2 | unknown | yes | |
| name | string | yes | The name of the ACL. |
| protocols? | array | no | |
| unidirectional? | unknown | no | |
fn get_magic_site_acls_acl_details(site_id: string, acl_id: string)
Site ACL Details
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| acl_id | string | yes | ACL identifier. |
fn update_acl(site_id: string, acl_id: string, description?: string, forward_locally?: unknown, lan_1?: unknown, lan_2?: unknown, name?: string, protocols?: array, unidirectional?: unknown)
Update Site ACL
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| acl_id | string | yes | ACL identifier. |
| description? | string | no | Description for the ACL. |
| forward_locally? | unknown | no | |
| lan_1? | unknown | no | |
| lan_2? | unknown | no | |
| name? | string | no | The name of the ACL. |
| protocols? | array | no | |
| unidirectional? | unknown | no | |
fn patch_acl(site_id: string, acl_id: string, description?: string, forward_locally?: unknown, lan_1?: unknown, lan_2?: unknown, name?: string, protocols?: array, unidirectional?: unknown)
Patch Site ACL
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| acl_id | string | yes | ACL identifier. |
| description? | string | no | Description for the ACL. |
| forward_locally? | unknown | no | |
| lan_1? | unknown | no | |
| lan_2? | unknown | no | |
| name? | string | no | The name of the ACL. |
| protocols? | array | no | |
| unidirectional? | unknown | no | |
fn delete_acl(site_id: string, acl_id: string)
Delete Site ACL
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| acl_id | string | yes | ACL identifier. |
fn list_app_configs(site_id: string)
List App Configs
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
fn create_magic_site_app_configs_add_app_config(site_id: string, breakout?: unknown, preferred_wans?: unknown, priority?: unknown)
Create a new App Config
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| breakout? | unknown | no | |
| preferred_wans? | unknown | no | |
| priority? | unknown | no | |
fn update_app_config(site_id: string, app_config_id: string, account_app_id?: unknown, breakout?: unknown, managed_app_id?: unknown, preferred_wans?: unknown, priority?: unknown)
Update an App Config
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| app_config_id | string | yes | |
| account_app_id? | unknown | no | |
| breakout? | unknown | no | |
| managed_app_id? | unknown | no | |
| preferred_wans? | unknown | no | |
| priority? | unknown | no | |
fn patch_app_config(site_id: string, app_config_id: string, account_app_id?: unknown, breakout?: unknown, managed_app_id?: unknown, preferred_wans?: unknown, priority?: unknown)
Update an App Config
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| app_config_id | string | yes | |
| account_app_id? | unknown | no | |
| breakout? | unknown | no | |
| managed_app_id? | unknown | no | |
| preferred_wans? | unknown | no | |
| priority? | unknown | no | |
fn delete_app_config(site_id: string, app_config_id: string)
Delete App Config
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| app_config_id | string | yes | |
fn list_lans(site_id: string)
List Site LANs
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
fn create_lan(site_id: string, bond_id?: unknown, ha_link?: boolean, is_breakout?: boolean, is_prioritized?: boolean, name?: string, nat?: unknown, physport?: unknown, routed_subnets?: array, static_addressing?: unknown, vlan_tag?: unknown)
Create a new Site LAN
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| bond_id? | unknown | no | |
| ha_link? | boolean | no | mark true to use this LAN for HA probing. only works for site with HA turned ... |
| is_breakout? | boolean | no | mark true to use this LAN for source-based breakout traffic |
| is_prioritized? | boolean | no | mark true to use this LAN for source-based prioritized traffic |
| name? | string | no | |
| nat? | unknown | no | |
| physport? | unknown | no | |
| routed_subnets? | array | no | |
| static_addressing? | unknown | no | |
| vlan_tag? | unknown | no | |
fn get_magic_site_lans_lan_details(site_id: string, lan_id: string)
Site LAN Details
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| lan_id | string | yes | LAN identifier. |
fn update_lan(site_id: string, lan_id: string, bond_id?: unknown, is_breakout?: boolean, is_prioritized?: boolean, name?: string, nat?: unknown, physport?: unknown, routed_subnets?: array, static_addressing?: unknown, vlan_tag?: unknown)
Update Site LAN
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| lan_id | string | yes | LAN identifier. |
| bond_id? | unknown | no | |
| is_breakout? | boolean | no | mark true to use this LAN for source-based breakout traffic |
| is_prioritized? | boolean | no | mark true to use this LAN for source-based prioritized traffic |
| name? | string | no | |
| nat? | unknown | no | |
| physport? | unknown | no | |
| routed_subnets? | array | no | |
| static_addressing? | unknown | no | |
| vlan_tag? | unknown | no | |
fn patch_lan(site_id: string, lan_id: string, bond_id?: unknown, is_breakout?: boolean, is_prioritized?: boolean, name?: string, nat?: unknown, physport?: unknown, routed_subnets?: array, static_addressing?: unknown, vlan_tag?: unknown)
Patch Site LAN
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| lan_id | string | yes | LAN identifier. |
| bond_id? | unknown | no | |
| is_breakout? | boolean | no | mark true to use this LAN for source-based breakout traffic |
| is_prioritized? | boolean | no | mark true to use this LAN for source-based prioritized traffic |
| name? | string | no | |
| nat? | unknown | no | |
| physport? | unknown | no | |
| routed_subnets? | array | no | |
| static_addressing? | unknown | no | |
| vlan_tag? | unknown | no | |
fn delete_lan(site_id: string, lan_id: string)
Delete Site LAN
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| lan_id | string | yes | LAN identifier. |
fn get_magic_site_netflow_config_details(site_id: string)
NetFlow Configuration Details
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
fn create_netflow_config(site_id: string, active_timeout?: number, collector_ip?: string, collector_port?: number, inactive_timeout?: number, sampling_rate?: number)
Create NetFlow Configuration
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| active_timeout? | number | no | Timeout in seconds for active flows. |
| collector_ip? | string | no | IPv4 address of the NetFlow collector. |
| collector_port? | number | no | UDP port of the NetFlow collector. |
| inactive_timeout? | number | no | Timeout in seconds for inactive flows. |
| sampling_rate? | number | no | Sampling rate for NetFlow records (1 = every packet). |
fn update_netflow_config(site_id: string, active_timeout?: number, collector_ip?: string, collector_port?: number, inactive_timeout?: number, sampling_rate?: number)
Update NetFlow Configuration
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| active_timeout? | number | no | Timeout in seconds for active flows. |
| collector_ip? | string | no | IPv4 address of the NetFlow collector. |
| collector_port? | number | no | UDP port of the NetFlow collector. |
| inactive_timeout? | number | no | Timeout in seconds for inactive flows. |
| sampling_rate? | number | no | Sampling rate for NetFlow records (1 = every packet). |
fn patch_netflow_config(site_id: string, active_timeout?: number, collector_ip?: string, collector_port?: number, inactive_timeout?: number, sampling_rate?: number)
Update NetFlow Configuration
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| active_timeout? | number | no | Timeout in seconds for active flows. |
| collector_ip? | string | no | IPv4 address of the NetFlow collector. |
| collector_port? | number | no | UDP port of the NetFlow collector. |
| inactive_timeout? | number | no | Timeout in seconds for inactive flows. |
| sampling_rate? | number | no | Sampling rate for NetFlow records (1 = every packet). |
fn delete_netflow_config(site_id: string)
Delete NetFlow Configuration
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
fn list_wans(site_id: string)
List Site WANs
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
fn create_wan(site_id: string, name?: string, physport: unknown, priority?: number, static_addressing?: unknown, vlan_tag?: unknown)
Create a new Site WAN
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| name? | string | no | |
| physport | unknown | yes | |
| priority? | number | no | |
| static_addressing? | unknown | no | |
| vlan_tag? | unknown | no | |
fn get_magic_site_wans_wan_details(site_id: string, wan_id: string)
Site WAN Details
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| wan_id | string | yes | WAN identifier. |
fn update_wan(site_id: string, wan_id: string, name?: string, physport?: unknown, priority?: number, static_addressing?: unknown, vlan_tag?: unknown)
Update Site WAN
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| wan_id | string | yes | WAN identifier. |
| name? | string | no | |
| physport? | unknown | no | |
| priority? | number | no | |
| static_addressing? | unknown | no | |
| vlan_tag? | unknown | no | |
fn patch_wan(site_id: string, wan_id: string, name?: string, physport?: unknown, priority?: number, static_addressing?: unknown, vlan_tag?: unknown)
Patch Site WAN
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| wan_id | string | yes | WAN identifier. |
| name? | string | no | |
| physport? | unknown | no | |
| priority? | number | no | |
| static_addressing? | unknown | no | |
| vlan_tag? | unknown | no | |
fn delete_wan(site_id: string, wan_id: string)
Delete Site WAN
| Argument | Type | Required | Description |
|---|
| site_id | string | yes | Magic WAN site identifier. |
| wan_id | string | yes | WAN identifier. |