---
title: GRE Tunnels
---

[Skip to content](#_top)

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

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

Copy Markdown

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

---

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

# GRE Tunnels

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

magic\_transit.gre\_tunnels.list(GRETunnelListParams\*\*kwargs) -> [GRETunnelListResponse](<https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)>)

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

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

magic\_transit.gre\_tunnels.get(strgre\_tunnel\_id, GRETunnelGetParams\*\*kwargs) -> [GRETunnelGetResponse](<https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)>)

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

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

magic\_transit.gre\_tunnels.create(GRETunnelCreateParams\*\*kwargs) -> [GRETunnelCreateResponse](<https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)>)

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

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

magic\_transit.gre\_tunnels.update(strgre\_tunnel\_id, GRETunnelUpdateParams\*\*kwargs) -> [GRETunnelUpdateResponse](<https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)>)

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

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

magic\_transit.gre\_tunnels.delete(strgre\_tunnel\_id, GRETunnelDeleteParams\*\*kwargs) -> [GRETunnelDeleteResponse](<https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)>)

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

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

magic\_transit.gre\_tunnels.bulk\_update(GRETunnelBulkUpdateParams\*\*kwargs) -> [GRETunnelBulkUpdateResponse](<https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class GRETunnelListResponse: …

</summary>

<details>

<summary>

gre\_tunnels: Optional\[List\[GRETunnel]]

</summary>

id: str

Identifier

maxLength32

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

cloudflare\_gre\_endpoint: str

The IP address assigned to the Cloudflare side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20cloudflare_gre_endpoint">Link to this property</a>

customer\_gre\_endpoint: str

The IP address assigned to the customer side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20customer_gre_endpoint">Link to this property</a>

interface\_address: str

A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side of the tunnel. Select the subnet from the following private IP space: 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20interface_address">Link to this property</a>

name: str

The name of the tunnel. The name cannot contain spaces or special characters, must be 15 characters or less, and cannot share a name with another GRE tunnel.

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

automatic\_return\_routing: Optional\[bool]

True if automatic stateful return routing should be enabled for a tunnel, false otherwise. Requires the <code>coupler_integration</code> account flag to be enabled; requests setting this to <code>true</code> without that flag will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20automatic_return_routing">Link to this property</a>

<details>

<summary>

bgp: Optional\[GRETunnelBGP]

</summary>

customer\_asn: int

ASN used on the customer end of the BGP session

formatint32

minimum0

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp%20%3E%20(property)%20customer_asn">Link to this property</a>

export\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes advertised to the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp%20%3E%20(property)%20export_filter_id">Link to this property</a>

extra\_prefixes: Optional\[List\[str]]

Prefixes in this list will be advertised to the customer device, in addition to the routes in the Magic routing table.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp%20%3E%20(property)%20extra_prefixes">Link to this property</a>

import\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes received from the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp%20%3E%20(property)%20import_filter_id">Link to this property</a>

md5\_key: Optional\[str]

MD5 key to use for session authentication.

Note that *this is not a security measure*. MD5 is not a valid security mechanism, and the key is not treated as a secret value. This is *only* supported for preventing misconfiguration, not for defending against malicious attacks.

The MD5 key, if set, must be of non-zero length and consist only of the following types of character:

- ASCII alphanumerics: <code>[a-zA-Z0-9]</code>
- Special characters in the set <code>'!@#$%^&amp;*()+[]{}&lt;&gt;/.,;:_-~</code>= |\`

In other words, MD5 keys may contain any printable ASCII character aside from newline (0x0A), quotation mark (<code>"</code>), vertical tab (0x0B), carriage return (0x0D), tab (0x09), form feed (0x0C), and the question mark (<code>?</code>). Requests specifying an MD5 key with one or more of these disallowed characters will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp%20%3E%20(property)%20md5_key">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp">Link to this property</a>

<details>

<summary>

bgp\_status: Optional\[GRETunnelBGPStatus]

</summary>

<details>

<summary>

state: Literal\["BGP\_DOWN", "BGP\_UP", "BGP\_ESTABLISHING"]

</summary>

One of the following:

"BGP\_DOWN"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%200">Link to this property</a>

"BGP\_UP"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%201">Link to this property</a>

"BGP\_ESTABLISHING"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state">Link to this property</a>

tcp\_established: bool

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20tcp_established">Link to this property</a>

updated\_at: datetime

formatdate-time

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20updated_at">Link to this property</a>

bgp\_state: Optional\[str]

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20bgp_state">Link to this property</a>

cf\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_ip">Link to this property</a>

cf\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_port">Link to this property</a>

customer\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_ip">Link to this property</a>

customer\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_port">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status">Link to this property</a>

created\_on: Optional\[datetime]

The date and time the tunnel was created.

formatdate-time

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

description: Optional\[str]

An optional description of the GRE tunnel.

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

<details>

<summary>

health\_check: Optional\[GRETunnelHealthCheck]

</summary>

<details>

<summary>

direction: Optional\[Literal\["unidirectional", "bidirectional"]]

The direction of the flow of the healthcheck. Either unidirectional, where the probe comes to you via the tunnel and the result comes back to Cloudflare via the open Internet, or bidirectional where both the probe and result come and go via the tunnel.

</summary>

One of the following:

"unidirectional"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%20%3E%20(property)%20direction%20%3E%20(member)%200">Link to this property</a>

"bidirectional"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%20%3E%20(property)%20direction%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%20%3E%20(property)%20direction">Link to this property</a>

enabled: Optional\[bool]

Determines whether to run healthchecks for a tunnel.

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

rate: Optional\[HealthCheckRate]

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

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

<details>

<summary>

target: Optional\[GRETunnelHealthCheckTarget]

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>

class GRETunnelHealthCheckTargetMagicHealthCheckTarget: …

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.

</summary>

effective: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200%20%3E%20(property)%20effective">Link to this property</a>

saved: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%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.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200">Link to this property</a>

str

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

</details>

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

type: Optional\[HealthCheckType]

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

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

</details>

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

interface\_address6: Optional\[str]

A 127 bit IPV6 prefix from within the virtual\_subnet6 prefix space with the address being the first IP of the subnet and not same as the address of virtual\_subnet6. Eg if virtual\_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 , interface\_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20interface_address6">Link to this property</a>

modified\_on: Optional\[datetime]

The date and time the tunnel was last modified.

formatdate-time

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

mtu: Optional\[int]

Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The minimum value is 576.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20mtu">Link to this property</a>

ttl: Optional\[int]

Time To Live (TTL) in number of hops of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_list_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnels%20%3E%20(items)%20%3E%20(property)%20ttl">Link to this property</a>

</details>

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

</details>

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

<details>

<summary>

class GRETunnelGetResponse: …

</summary>

<details>

<summary>

gre\_tunnel: Optional\[GRETunnel]

</summary>

id: str

Identifier

maxLength32

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

cloudflare\_gre\_endpoint: str

The IP address assigned to the Cloudflare side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20cloudflare_gre_endpoint">Link to this property</a>

customer\_gre\_endpoint: str

The IP address assigned to the customer side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20customer_gre_endpoint">Link to this property</a>

interface\_address: str

A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side of the tunnel. Select the subnet from the following private IP space: 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20interface_address">Link to this property</a>

name: str

The name of the tunnel. The name cannot contain spaces or special characters, must be 15 characters or less, and cannot share a name with another GRE tunnel.

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

automatic\_return\_routing: Optional\[bool]

True if automatic stateful return routing should be enabled for a tunnel, false otherwise. Requires the <code>coupler_integration</code> account flag to be enabled; requests setting this to <code>true</code> without that flag will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20automatic_return_routing">Link to this property</a>

<details>

<summary>

bgp: Optional\[GRETunnelBGP]

</summary>

customer\_asn: int

ASN used on the customer end of the BGP session

formatint32

minimum0

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20customer_asn">Link to this property</a>

export\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes advertised to the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20export_filter_id">Link to this property</a>

extra\_prefixes: Optional\[List\[str]]

Prefixes in this list will be advertised to the customer device, in addition to the routes in the Magic routing table.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20extra_prefixes">Link to this property</a>

import\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes received from the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20import_filter_id">Link to this property</a>

md5\_key: Optional\[str]

MD5 key to use for session authentication.

Note that *this is not a security measure*. MD5 is not a valid security mechanism, and the key is not treated as a secret value. This is *only* supported for preventing misconfiguration, not for defending against malicious attacks.

The MD5 key, if set, must be of non-zero length and consist only of the following types of character:

- ASCII alphanumerics: <code>[a-zA-Z0-9]</code>
- Special characters in the set <code>'!@#$%^&amp;*()+[]{}&lt;&gt;/.,;:_-~</code>= |\`

In other words, MD5 keys may contain any printable ASCII character aside from newline (0x0A), quotation mark (<code>"</code>), vertical tab (0x0B), carriage return (0x0D), tab (0x09), form feed (0x0C), and the question mark (<code>?</code>). Requests specifying an MD5 key with one or more of these disallowed characters will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20md5_key">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp">Link to this property</a>

<details>

<summary>

bgp\_status: Optional\[GRETunnelBGPStatus]

</summary>

<details>

<summary>

state: Literal\["BGP\_DOWN", "BGP\_UP", "BGP\_ESTABLISHING"]

</summary>

One of the following:

"BGP\_DOWN"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%200">Link to this property</a>

"BGP\_UP"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%201">Link to this property</a>

"BGP\_ESTABLISHING"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state">Link to this property</a>

tcp\_established: bool

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20tcp_established">Link to this property</a>

updated\_at: datetime

formatdate-time

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20updated_at">Link to this property</a>

bgp\_state: Optional\[str]

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20bgp_state">Link to this property</a>

cf\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_ip">Link to this property</a>

cf\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_port">Link to this property</a>

customer\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_ip">Link to this property</a>

customer\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_port">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20bgp_status">Link to this property</a>

created\_on: Optional\[datetime]

The date and time the tunnel was created.

formatdate-time

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

description: Optional\[str]

An optional description of the GRE tunnel.

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

<details>

<summary>

health\_check: Optional\[GRETunnelHealthCheck]

</summary>

<details>

<summary>

direction: Optional\[Literal\["unidirectional", "bidirectional"]]

The direction of the flow of the healthcheck. Either unidirectional, where the probe comes to you via the tunnel and the result comes back to Cloudflare via the open Internet, or bidirectional where both the probe and result come and go via the tunnel.

</summary>

One of the following:

"unidirectional"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20direction%20%3E%20(member)%200">Link to this property</a>

"bidirectional"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20direction%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20direction">Link to this property</a>

enabled: Optional\[bool]

Determines whether to run healthchecks for a tunnel.

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

rate: Optional\[HealthCheckRate]

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

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

<details>

<summary>

target: Optional\[GRETunnelHealthCheckTarget]

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>

class GRETunnelHealthCheckTargetMagicHealthCheckTarget: …

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.

</summary>

effective: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200%20%3E%20(property)%20effective">Link to this property</a>

saved: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20health_check%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.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200">Link to this property</a>

str

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

</details>

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

type: Optional\[HealthCheckType]

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

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

</details>

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

interface\_address6: Optional\[str]

A 127 bit IPV6 prefix from within the virtual\_subnet6 prefix space with the address being the first IP of the subnet and not same as the address of virtual\_subnet6. Eg if virtual\_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 , interface\_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20interface_address6">Link to this property</a>

modified\_on: Optional\[datetime]

The date and time the tunnel was last modified.

formatdate-time

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

mtu: Optional\[int]

Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The minimum value is 576.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20mtu">Link to this property</a>

ttl: Optional\[int]

Time To Live (TTL) in number of hops of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel%20%3E%20(property)%20ttl">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_get_response%20%3E%20(schema)%20%3E%20(property)%20gre_tunnel">Link to this property</a>

</details>

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

<details>

<summary>

class GRETunnelCreateResponse: …

</summary>

id: str

Identifier

maxLength32

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

cloudflare\_gre\_endpoint: str

The IP address assigned to the Cloudflare side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20cloudflare_gre_endpoint">Link to this property</a>

customer\_gre\_endpoint: str

The IP address assigned to the customer side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20customer_gre_endpoint">Link to this property</a>

interface\_address: str

A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side of the tunnel. Select the subnet from the following private IP space: 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20interface_address">Link to this property</a>

name: str

The name of the tunnel. The name cannot contain spaces or special characters, must be 15 characters or less, and cannot share a name with another GRE tunnel.

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

automatic\_return\_routing: Optional\[bool]

True if automatic stateful return routing should be enabled for a tunnel, false otherwise. Requires the <code>coupler_integration</code> account flag to be enabled; requests setting this to <code>true</code> without that flag will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20automatic_return_routing">Link to this property</a>

<details>

<summary>

bgp: Optional\[BGP]

</summary>

customer\_asn: int

ASN used on the customer end of the BGP session

formatint32

minimum0

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp%20%3E%20(property)%20customer_asn">Link to this property</a>

export\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes advertised to the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp%20%3E%20(property)%20export_filter_id">Link to this property</a>

extra\_prefixes: Optional\[List\[str]]

Prefixes in this list will be advertised to the customer device, in addition to the routes in the Magic routing table.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp%20%3E%20(property)%20extra_prefixes">Link to this property</a>

import\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes received from the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp%20%3E%20(property)%20import_filter_id">Link to this property</a>

md5\_key: Optional\[str]

MD5 key to use for session authentication.

Note that *this is not a security measure*. MD5 is not a valid security mechanism, and the key is not treated as a secret value. This is *only* supported for preventing misconfiguration, not for defending against malicious attacks.

The MD5 key, if set, must be of non-zero length and consist only of the following types of character:

- ASCII alphanumerics: <code>[a-zA-Z0-9]</code>
- Special characters in the set <code>'!@#$%^&amp;*()+[]{}&lt;&gt;/.,;:_-~</code>= |\`

In other words, MD5 keys may contain any printable ASCII character aside from newline (0x0A), quotation mark (<code>"</code>), vertical tab (0x0B), carriage return (0x0D), tab (0x09), form feed (0x0C), and the question mark (<code>?</code>). Requests specifying an MD5 key with one or more of these disallowed characters will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp%20%3E%20(property)%20md5_key">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp">Link to this property</a>

<details>

<summary>

bgp\_status: Optional\[BGPStatus]

</summary>

<details>

<summary>

state: Literal\["BGP\_DOWN", "BGP\_UP", "BGP\_ESTABLISHING"]

</summary>

One of the following:

"BGP\_DOWN"

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

"BGP\_UP"

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

"BGP\_ESTABLISHING"

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

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state">Link to this property</a>

tcp\_established: bool

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20tcp_established">Link to this property</a>

updated\_at: datetime

formatdate-time

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20updated_at">Link to this property</a>

bgp\_state: Optional\[str]

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20bgp_state">Link to this property</a>

cf\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_ip">Link to this property</a>

cf\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_port">Link to this property</a>

customer\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_ip">Link to this property</a>

customer\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_port">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20bgp_status">Link to this property</a>

created\_on: Optional\[datetime]

The date and time the tunnel was created.

formatdate-time

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

description: Optional\[str]

An optional description of the GRE tunnel.

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

<details>

<summary>

health\_check: Optional\[HealthCheck]

</summary>

<details>

<summary>

direction: Optional\[Literal\["unidirectional", "bidirectional"]]

The direction of the flow of the healthcheck. Either unidirectional, where the probe comes to you via the tunnel and the result comes back to Cloudflare via the open Internet, or bidirectional where both the probe and result come and go via the tunnel.

</summary>

One of the following:

"unidirectional"

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

"bidirectional"

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

</details>

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

enabled: Optional\[bool]

Determines whether to run healthchecks for a tunnel.

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

rate: Optional\[HealthCheckRate]

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

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

<details>

<summary>

target: Optional\[HealthCheckTarget]

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>

class HealthCheckTargetMagicHealthCheckTarget: …

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.

</summary>

effective: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200%20%3E%20(property)%20effective">Link to this property</a>

saved: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20health_check%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.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200">Link to this property</a>

str

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

</details>

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

type: Optional\[HealthCheckType]

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

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

</details>

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

interface\_address6: Optional\[str]

A 127 bit IPV6 prefix from within the virtual\_subnet6 prefix space with the address being the first IP of the subnet and not same as the address of virtual\_subnet6. Eg if virtual\_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 , interface\_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20interface_address6">Link to this property</a>

modified\_on: Optional\[datetime]

The date and time the tunnel was last modified.

formatdate-time

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

mtu: Optional\[int]

Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The minimum value is 576.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20mtu">Link to this property</a>

ttl: Optional\[int]

Time To Live (TTL) in number of hops of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_create_response%20%3E%20(schema)%20%3E%20(property)%20ttl">Link to this property</a>

</details>

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

<details>

<summary>

class GRETunnelUpdateResponse: …

</summary>

modified: Optional\[bool]

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

<details>

<summary>

modified\_gre\_tunnel: Optional\[ModifiedGRETunnel]

</summary>

id: str

Identifier

maxLength32

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

cloudflare\_gre\_endpoint: str

The IP address assigned to the Cloudflare side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20cloudflare_gre_endpoint">Link to this property</a>

customer\_gre\_endpoint: str

The IP address assigned to the customer side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20customer_gre_endpoint">Link to this property</a>

interface\_address: str

A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side of the tunnel. Select the subnet from the following private IP space: 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20interface_address">Link to this property</a>

name: str

The name of the tunnel. The name cannot contain spaces or special characters, must be 15 characters or less, and cannot share a name with another GRE tunnel.

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

automatic\_return\_routing: Optional\[bool]

True if automatic stateful return routing should be enabled for a tunnel, false otherwise. Requires the <code>coupler_integration</code> account flag to be enabled; requests setting this to <code>true</code> without that flag will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20automatic_return_routing">Link to this property</a>

<details>

<summary>

bgp: Optional\[ModifiedGRETunnelBGP]

</summary>

customer\_asn: int

ASN used on the customer end of the BGP session

formatint32

minimum0

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20customer_asn">Link to this property</a>

export\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes advertised to the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20export_filter_id">Link to this property</a>

extra\_prefixes: Optional\[List\[str]]

Prefixes in this list will be advertised to the customer device, in addition to the routes in the Magic routing table.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20extra_prefixes">Link to this property</a>

import\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes received from the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20import_filter_id">Link to this property</a>

md5\_key: Optional\[str]

MD5 key to use for session authentication.

Note that *this is not a security measure*. MD5 is not a valid security mechanism, and the key is not treated as a secret value. This is *only* supported for preventing misconfiguration, not for defending against malicious attacks.

The MD5 key, if set, must be of non-zero length and consist only of the following types of character:

- ASCII alphanumerics: <code>[a-zA-Z0-9]</code>
- Special characters in the set <code>'!@#$%^&amp;*()+[]{}&lt;&gt;/.,;:_-~</code>= |\`

In other words, MD5 keys may contain any printable ASCII character aside from newline (0x0A), quotation mark (<code>"</code>), vertical tab (0x0B), carriage return (0x0D), tab (0x09), form feed (0x0C), and the question mark (<code>?</code>). Requests specifying an MD5 key with one or more of these disallowed characters will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20md5_key">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp">Link to this property</a>

<details>

<summary>

bgp\_status: Optional\[ModifiedGRETunnelBGPStatus]

</summary>

<details>

<summary>

state: Literal\["BGP\_DOWN", "BGP\_UP", "BGP\_ESTABLISHING"]

</summary>

One of the following:

"BGP\_DOWN"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%200">Link to this property</a>

"BGP\_UP"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%201">Link to this property</a>

"BGP\_ESTABLISHING"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state">Link to this property</a>

tcp\_established: bool

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20tcp_established">Link to this property</a>

updated\_at: datetime

formatdate-time

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20updated_at">Link to this property</a>

bgp\_state: Optional\[str]

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20bgp_state">Link to this property</a>

cf\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_ip">Link to this property</a>

cf\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_port">Link to this property</a>

customer\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_ip">Link to this property</a>

customer\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_port">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20bgp_status">Link to this property</a>

created\_on: Optional\[datetime]

The date and time the tunnel was created.

formatdate-time

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

description: Optional\[str]

An optional description of the GRE tunnel.

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

<details>

<summary>

health\_check: Optional\[ModifiedGRETunnelHealthCheck]

</summary>

<details>

<summary>

direction: Optional\[Literal\["unidirectional", "bidirectional"]]

The direction of the flow of the healthcheck. Either unidirectional, where the probe comes to you via the tunnel and the result comes back to Cloudflare via the open Internet, or bidirectional where both the probe and result come and go via the tunnel.

</summary>

One of the following:

"unidirectional"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20direction%20%3E%20(member)%200">Link to this property</a>

"bidirectional"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20direction%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20direction">Link to this property</a>

enabled: Optional\[bool]

Determines whether to run healthchecks for a tunnel.

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

rate: Optional\[HealthCheckRate]

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

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

<details>

<summary>

target: Optional\[ModifiedGRETunnelHealthCheckTarget]

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>

class ModifiedGRETunnelHealthCheckTargetMagicHealthCheckTarget: …

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.

</summary>

effective: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200%20%3E%20(property)%20effective">Link to this property</a>

saved: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20health_check%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.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200">Link to this property</a>

str

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

</details>

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

type: Optional\[HealthCheckType]

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

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

</details>

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

interface\_address6: Optional\[str]

A 127 bit IPV6 prefix from within the virtual\_subnet6 prefix space with the address being the first IP of the subnet and not same as the address of virtual\_subnet6. Eg if virtual\_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 , interface\_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20interface_address6">Link to this property</a>

modified\_on: Optional\[datetime]

The date and time the tunnel was last modified.

formatdate-time

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

mtu: Optional\[int]

Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The minimum value is 576.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20mtu">Link to this property</a>

ttl: Optional\[int]

Time To Live (TTL) in number of hops of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel%20%3E%20(property)%20ttl">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnel">Link to this property</a>

</details>

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

<details>

<summary>

class GRETunnelDeleteResponse: …

</summary>

deleted: Optional\[bool]

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted">Link to this property</a>

<details>

<summary>

deleted\_gre\_tunnel: Optional\[DeletedGRETunnel]

</summary>

id: str

Identifier

maxLength32

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

cloudflare\_gre\_endpoint: str

The IP address assigned to the Cloudflare side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20cloudflare_gre_endpoint">Link to this property</a>

customer\_gre\_endpoint: str

The IP address assigned to the customer side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20customer_gre_endpoint">Link to this property</a>

interface\_address: str

A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side of the tunnel. Select the subnet from the following private IP space: 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20interface_address">Link to this property</a>

name: str

The name of the tunnel. The name cannot contain spaces or special characters, must be 15 characters or less, and cannot share a name with another GRE tunnel.

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

automatic\_return\_routing: Optional\[bool]

True if automatic stateful return routing should be enabled for a tunnel, false otherwise. Requires the <code>coupler_integration</code> account flag to be enabled; requests setting this to <code>true</code> without that flag will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20automatic_return_routing">Link to this property</a>

<details>

<summary>

bgp: Optional\[DeletedGRETunnelBGP]

</summary>

customer\_asn: int

ASN used on the customer end of the BGP session

formatint32

minimum0

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20customer_asn">Link to this property</a>

export\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes advertised to the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20export_filter_id">Link to this property</a>

extra\_prefixes: Optional\[List\[str]]

Prefixes in this list will be advertised to the customer device, in addition to the routes in the Magic routing table.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20extra_prefixes">Link to this property</a>

import\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes received from the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20import_filter_id">Link to this property</a>

md5\_key: Optional\[str]

MD5 key to use for session authentication.

Note that *this is not a security measure*. MD5 is not a valid security mechanism, and the key is not treated as a secret value. This is *only* supported for preventing misconfiguration, not for defending against malicious attacks.

The MD5 key, if set, must be of non-zero length and consist only of the following types of character:

- ASCII alphanumerics: <code>[a-zA-Z0-9]</code>
- Special characters in the set <code>'!@#$%^&amp;*()+[]{}&lt;&gt;/.,;:_-~</code>= |\`

In other words, MD5 keys may contain any printable ASCII character aside from newline (0x0A), quotation mark (<code>"</code>), vertical tab (0x0B), carriage return (0x0D), tab (0x09), form feed (0x0C), and the question mark (<code>?</code>). Requests specifying an MD5 key with one or more of these disallowed characters will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp%20%3E%20(property)%20md5_key">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp">Link to this property</a>

<details>

<summary>

bgp\_status: Optional\[DeletedGRETunnelBGPStatus]

</summary>

<details>

<summary>

state: Literal\["BGP\_DOWN", "BGP\_UP", "BGP\_ESTABLISHING"]

</summary>

One of the following:

"BGP\_DOWN"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%200">Link to this property</a>

"BGP\_UP"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%201">Link to this property</a>

"BGP\_ESTABLISHING"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state">Link to this property</a>

tcp\_established: bool

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20tcp_established">Link to this property</a>

updated\_at: datetime

formatdate-time

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20updated_at">Link to this property</a>

bgp\_state: Optional\[str]

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20bgp_state">Link to this property</a>

cf\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_ip">Link to this property</a>

cf\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_port">Link to this property</a>

customer\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_ip">Link to this property</a>

customer\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_port">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20bgp_status">Link to this property</a>

created\_on: Optional\[datetime]

The date and time the tunnel was created.

formatdate-time

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

description: Optional\[str]

An optional description of the GRE tunnel.

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

<details>

<summary>

health\_check: Optional\[DeletedGRETunnelHealthCheck]

</summary>

<details>

<summary>

direction: Optional\[Literal\["unidirectional", "bidirectional"]]

The direction of the flow of the healthcheck. Either unidirectional, where the probe comes to you via the tunnel and the result comes back to Cloudflare via the open Internet, or bidirectional where both the probe and result come and go via the tunnel.

</summary>

One of the following:

"unidirectional"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20direction%20%3E%20(member)%200">Link to this property</a>

"bidirectional"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20direction%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20direction">Link to this property</a>

enabled: Optional\[bool]

Determines whether to run healthchecks for a tunnel.

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

rate: Optional\[HealthCheckRate]

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

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

<details>

<summary>

target: Optional\[DeletedGRETunnelHealthCheckTarget]

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>

class DeletedGRETunnelHealthCheckTargetMagicHealthCheckTarget: …

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.

</summary>

effective: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200%20%3E%20(property)%20effective">Link to this property</a>

saved: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20health_check%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.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200">Link to this property</a>

str

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

</details>

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

type: Optional\[HealthCheckType]

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

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

</details>

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

interface\_address6: Optional\[str]

A 127 bit IPV6 prefix from within the virtual\_subnet6 prefix space with the address being the first IP of the subnet and not same as the address of virtual\_subnet6. Eg if virtual\_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 , interface\_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20interface_address6">Link to this property</a>

modified\_on: Optional\[datetime]

The date and time the tunnel was last modified.

formatdate-time

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

mtu: Optional\[int]

Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The minimum value is 576.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20mtu">Link to this property</a>

ttl: Optional\[int]

Time To Live (TTL) in number of hops of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel%20%3E%20(property)%20ttl">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_gre_tunnel">Link to this property</a>

</details>

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

<details>

<summary>

class GRETunnelBulkUpdateResponse: …

</summary>

modified: Optional\[bool]

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

<details>

<summary>

modified\_gre\_tunnels: Optional\[List\[ModifiedGRETunnel]]

</summary>

id: str

Identifier

maxLength32

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

cloudflare\_gre\_endpoint: str

The IP address assigned to the Cloudflare side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20cloudflare_gre_endpoint">Link to this property</a>

customer\_gre\_endpoint: str

The IP address assigned to the customer side of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20customer_gre_endpoint">Link to this property</a>

interface\_address: str

A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side of the tunnel. Select the subnet from the following private IP space: 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20interface_address">Link to this property</a>

name: str

The name of the tunnel. The name cannot contain spaces or special characters, must be 15 characters or less, and cannot share a name with another GRE tunnel.

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

automatic\_return\_routing: Optional\[bool]

True if automatic stateful return routing should be enabled for a tunnel, false otherwise. Requires the <code>coupler_integration</code> account flag to be enabled; requests setting this to <code>true</code> without that flag will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20automatic_return_routing">Link to this property</a>

<details>

<summary>

bgp: Optional\[ModifiedGRETunnelBGP]

</summary>

customer\_asn: int

ASN used on the customer end of the BGP session

formatint32

minimum0

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp%20%3E%20(property)%20customer_asn">Link to this property</a>

export\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes advertised to the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp%20%3E%20(property)%20export_filter_id">Link to this property</a>

extra\_prefixes: Optional\[List\[str]]

Prefixes in this list will be advertised to the customer device, in addition to the routes in the Magic routing table.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp%20%3E%20(property)%20extra_prefixes">Link to this property</a>

import\_filter\_id: Optional\[str]

ID of the BGP filter profile applied to routes received from the customer.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp%20%3E%20(property)%20import_filter_id">Link to this property</a>

md5\_key: Optional\[str]

MD5 key to use for session authentication.

Note that *this is not a security measure*. MD5 is not a valid security mechanism, and the key is not treated as a secret value. This is *only* supported for preventing misconfiguration, not for defending against malicious attacks.

The MD5 key, if set, must be of non-zero length and consist only of the following types of character:

- ASCII alphanumerics: <code>[a-zA-Z0-9]</code>
- Special characters in the set <code>'!@#$%^&amp;*()+[]{}&lt;&gt;/.,;:_-~</code>= |\`

In other words, MD5 keys may contain any printable ASCII character aside from newline (0x0A), quotation mark (<code>"</code>), vertical tab (0x0B), carriage return (0x0D), tab (0x09), form feed (0x0C), and the question mark (<code>?</code>). Requests specifying an MD5 key with one or more of these disallowed characters will be rejected.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp%20%3E%20(property)%20md5_key">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp">Link to this property</a>

<details>

<summary>

bgp\_status: Optional\[ModifiedGRETunnelBGPStatus]

</summary>

<details>

<summary>

state: Literal\["BGP\_DOWN", "BGP\_UP", "BGP\_ESTABLISHING"]

</summary>

One of the following:

"BGP\_DOWN"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%200">Link to this property</a>

"BGP\_UP"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%201">Link to this property</a>

"BGP\_ESTABLISHING"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20state">Link to this property</a>

tcp\_established: bool

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20tcp_established">Link to this property</a>

updated\_at: datetime

formatdate-time

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20updated_at">Link to this property</a>

bgp\_state: Optional\[str]

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20bgp_state">Link to this property</a>

cf\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_ip">Link to this property</a>

cf\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20cf_speaker_port">Link to this property</a>

customer\_speaker\_ip: Optional\[str]

formatipv4

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_ip">Link to this property</a>

customer\_speaker\_port: Optional\[int]

maximum65535

minimum1

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status%20%3E%20(property)%20customer_speaker_port">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20bgp_status">Link to this property</a>

created\_on: Optional\[datetime]

The date and time the tunnel was created.

formatdate-time

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

description: Optional\[str]

An optional description of the GRE tunnel.

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

<details>

<summary>

health\_check: Optional\[ModifiedGRETunnelHealthCheck]

</summary>

<details>

<summary>

direction: Optional\[Literal\["unidirectional", "bidirectional"]]

The direction of the flow of the healthcheck. Either unidirectional, where the probe comes to you via the tunnel and the result comes back to Cloudflare via the open Internet, or bidirectional where both the probe and result come and go via the tunnel.

</summary>

One of the following:

"unidirectional"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%20%3E%20(property)%20direction%20%3E%20(member)%200">Link to this property</a>

"bidirectional"

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%20%3E%20(property)%20direction%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%20%3E%20(property)%20direction">Link to this property</a>

enabled: Optional\[bool]

Determines whether to run healthchecks for a tunnel.

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

rate: Optional\[HealthCheckRate]

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

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

<details>

<summary>

target: Optional\[ModifiedGRETunnelHealthCheckTarget]

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>

class ModifiedGRETunnelHealthCheckTargetMagicHealthCheckTarget: …

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.

</summary>

effective: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200%20%3E%20(property)%20effective">Link to this property</a>

saved: Optional\[str]

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.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%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.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check%20%3E%20(property)%20target%20%3E%20(variant)%200">Link to this property</a>

str

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

</details>

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

type: Optional\[HealthCheckType]

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

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

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20health_check">Link to this property</a>

interface\_address6: Optional\[str]

A 127 bit IPV6 prefix from within the virtual\_subnet6 prefix space with the address being the first IP of the subnet and not same as the address of virtual\_subnet6. Eg if virtual\_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 , interface\_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20interface_address6">Link to this property</a>

modified\_on: Optional\[datetime]

The date and time the tunnel was last modified.

formatdate-time

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

mtu: Optional\[int]

Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The minimum value is 576.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20mtu">Link to this property</a>

ttl: Optional\[int]

Time To Live (TTL) in number of hops of the GRE tunnel.

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels%20%3E%20(items)%20%3E%20(property)%20ttl">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.gre_tunnels%20%3E%20(model)%20gre_tunnel_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_gre_tunnels">Link to this property</a>

</details>

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