---
title: Networks
---

[Skip to content](#_top)

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

[Zero Trust](https://developers.cloudflare.com/api/python/resources/zero_trust)

Copy Markdown

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

---

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

# Networks

#### NetworksRoutes

##### [List tunnel routes](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/routes/methods/list)

zero\_trust.networks.routes.list(RouteListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[Teamnet](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)>)]

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

##### [Get tunnel route](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/routes/methods/get)

zero\_trust.networks.routes.get(strroute\_id, RouteGetParams\*\*kwargs) -> [Route](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>)

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

##### [Create a tunnel route](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/routes/methods/create)

zero\_trust.networks.routes.create(RouteCreateParams\*\*kwargs) -> [Route](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>)

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

##### [Update a tunnel route](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/routes/methods/edit)

zero\_trust.networks.routes.edit(strroute\_id, RouteEditParams\*\*kwargs) -> [Route](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/teamnet/routes/{route\_id}

##### [Delete a tunnel route](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/routes/methods/delete)

zero\_trust.networks.routes.delete(strroute\_id, RouteDeleteParams\*\*kwargs) -> [Route](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class NetworkRoute: …

</summary>

id: Optional\[str]

UUID of the route.

maxLength36

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20network_route%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: Optional\[str]

Optional remark describing the route.

maxLength100

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20network_route%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_at: Optional\[datetime]

Timestamp of when the resource was created.

formatdate-time

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20network_route%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

deleted\_at: Optional\[datetime]

Timestamp of when the resource was deleted. If <code>null</code>, the resource has not been deleted.

formatdate-time

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20network_route%20%3E%20(schema)%20%3E%20(property)%20deleted_at">Link to this property</a>

network: Optional\[str]

The private IPv4 or IPv6 range connected by the route, in CIDR notation.

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20network_route%20%3E%20(schema)%20%3E%20(property)%20network">Link to this property</a>

tunnel\_id: Optional\[str]

UUID of the tunnel.

formatuuid

maxLength36

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20network_route%20%3E%20(schema)%20%3E%20(property)%20tunnel_id">Link to this property</a>

virtual\_network\_id: Optional\[str]

UUID of the virtual network.

formatuuid

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20network_route%20%3E%20(schema)%20%3E%20(property)%20virtual_network_id">Link to this property</a>

</details>

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

<details>

<summary>

class Route: …

</summary>

id: Optional\[str]

UUID of the route.

maxLength36

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: Optional\[str]

Optional remark describing the route.

maxLength100

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_at: Optional\[datetime]

Timestamp of when the resource was created.

formatdate-time

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

deleted\_at: Optional\[datetime]

Timestamp of when the resource was deleted. If <code>null</code>, the resource has not been deleted.

formatdate-time

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)%20%3E%20(property)%20deleted_at">Link to this property</a>

network: Optional\[str]

The private IPv4 or IPv6 range connected by the route, in CIDR notation.

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)%20%3E%20(property)%20network">Link to this property</a>

tunnel\_id: Optional\[str]

UUID of the tunnel.

formatuuid

maxLength36

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)%20%3E%20(property)%20tunnel_id">Link to this property</a>

virtual\_network\_id: Optional\[str]

UUID of the virtual network.

formatuuid

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)%20%3E%20(property)%20virtual_network_id">Link to this property</a>

</details>

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

<details>

<summary>

class Teamnet: …

</summary>

id: Optional\[str]

UUID of the route.

maxLength36

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: Optional\[str]

Optional remark describing the route.

maxLength100

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_at: Optional\[datetime]

Timestamp of when the resource was created.

formatdate-time

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

deleted\_at: Optional\[datetime]

Timestamp of when the resource was deleted. If <code>null</code>, the resource has not been deleted.

formatdate-time

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20deleted_at">Link to this property</a>

network: Optional\[str]

The private IPv4 or IPv6 range connected by the route, in CIDR notation.

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20network">Link to this property</a>

<details>

<summary>

tun\_type: Optional\[Literal\["cfd\_tunnel", "warp\_connector", "warp", 4 more]]

The type of tunnel.

</summary>

One of the following:

"cfd\_tunnel"

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%200">Link to this property</a>

"warp\_connector"

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%201">Link to this property</a>

"warp"

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%202">Link to this property</a>

"magic"

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%203">Link to this property</a>

"ip\_sec"

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%204">Link to this property</a>

"gre"

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%205">Link to this property</a>

"cni"

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20tun_type">Link to this property</a>

tunnel\_id: Optional\[str]

UUID of the tunnel.

formatuuid

maxLength36

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20tunnel_id">Link to this property</a>

tunnel\_name: Optional\[str]

A user-friendly name for a tunnel.

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20tunnel_name">Link to this property</a>

virtual\_network\_id: Optional\[str]

UUID of the virtual network.

formatuuid

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20virtual_network_id">Link to this property</a>

virtual\_network\_name: Optional\[str]

A user-friendly name for the virtual network.

maxLength256

<a href="#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)%20%3E%20(property)%20virtual_network_name">Link to this property</a>

</details>

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

#### NetworksRoutesIPs

##### [Get tunnel route by IP](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/routes/subresources/ips/methods/get)

zero\_trust.networks.routes.ips.get(strip, IPGetParams\*\*kwargs) -> [Teamnet](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)>)

GET/accounts/{account\_id}/teamnet/routes/ip/{ip}

#### NetworksRoutesNetworks

##### [Create a tunnel route (CIDR Endpoint)](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/routes/subresources/networks/methods/create)

Deprecated

zero\_trust.networks.routes.networks.create(strip\_network\_encoded, NetworkCreateParams\*\*kwargs) -> [Route](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>)

POST/accounts/{account\_id}/teamnet/routes/network/{ip\_network\_encoded}

##### [Update a tunnel route (CIDR Endpoint)](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/routes/subresources/networks/methods/edit)

Deprecated

zero\_trust.networks.routes.networks.edit(strip\_network\_encoded, NetworkEditParams\*\*kwargs) -> [Route](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/teamnet/routes/network/{ip\_network\_encoded}

##### [Delete a tunnel route (CIDR Endpoint)](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/routes/subresources/networks/methods/delete)

Deprecated

zero\_trust.networks.routes.networks.delete(strip\_network\_encoded, NetworkDeleteParams\*\*kwargs) -> [Route](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/teamnet/routes/network/{ip\_network\_encoded}

#### NetworksVirtual Networks

##### [List virtual networks](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/virtual_networks/methods/list)

zero\_trust.networks.virtual\_networks.list(VirtualNetworkListParams\*\*kwargs) -> SyncSinglePage\[[VirtualNetwork](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>)]

GET/accounts/{account\_id}/teamnet/virtual\_networks

##### [Get a virtual network](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/virtual_networks/methods/get)

zero\_trust.networks.virtual\_networks.get(strvirtual\_network\_id, VirtualNetworkGetParams\*\*kwargs) -> [VirtualNetwork](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>)

GET/accounts/{account\_id}/teamnet/virtual\_networks/{virtual\_network\_id}

##### [Create a virtual network](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/virtual_networks/methods/create)

zero\_trust.networks.virtual\_networks.create(VirtualNetworkCreateParams\*\*kwargs) -> [VirtualNetwork](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>)

POST/accounts/{account\_id}/teamnet/virtual\_networks

##### [Update a virtual network](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/virtual_networks/methods/edit)

zero\_trust.networks.virtual\_networks.edit(strvirtual\_network\_id, VirtualNetworkEditParams\*\*kwargs) -> [VirtualNetwork](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/teamnet/virtual\_networks/{virtual\_network\_id}

##### [Delete a virtual network](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/virtual_networks/methods/delete)

zero\_trust.networks.virtual\_networks.delete(strvirtual\_network\_id, VirtualNetworkDeleteParams\*\*kwargs) -> [VirtualNetwork](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/teamnet/virtual\_networks/{virtual\_network\_id}

##### ModelsExpand Collapse

<details>

<summary>

class VirtualNetwork: …

</summary>

id: str

UUID of the virtual network.

formatuuid

<a href="#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: str

Optional remark describing the virtual network.

maxLength256

<a href="#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_at: datetime

Timestamp of when the resource was created.

formatdate-time

<a href="#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

is\_default\_network: bool

If <code>true</code>, this virtual network is the default for the account.

<a href="#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)%20%3E%20(property)%20is_default_network">Link to this property</a>

name: str

A user-friendly name for the virtual network.

maxLength256

<a href="#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

deleted\_at: Optional\[datetime]

Timestamp of when the resource was deleted. If <code>null</code>, the resource has not been deleted.

formatdate-time

<a href="#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)%20%3E%20(property)%20deleted_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>)

#### NetworksSubnets

##### [List Subnets](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/subnets/methods/list)

zero\_trust.networks.subnets.list(SubnetListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[Subnet](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>)]

GET/accounts/{account\_id}/zerotrust/subnets

#### NetworksSubnetsWARP

##### [Create WARP IP subnet](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/subnets/subresources/warp/methods/create)

zero\_trust.networks.subnets.warp.create(WARPCreateParams\*\*kwargs) -> [Subnet](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>)

POST/accounts/{account\_id}/zerotrust/subnets/warp

##### [Get WARP IP subnet](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/subnets/subresources/warp/methods/get)

zero\_trust.networks.subnets.warp.get(strsubnet\_id, WARPGetParams\*\*kwargs) -> [Subnet](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>)

GET/accounts/{account\_id}/zerotrust/subnets/warp/{subnet\_id}

##### [Update WARP IP subnet](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/subnets/subresources/warp/methods/edit)

zero\_trust.networks.subnets.warp.edit(strsubnet\_id, WARPEditParams\*\*kwargs) -> [Subnet](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/zerotrust/subnets/warp/{subnet\_id}

##### [Delete WARP IP subnet](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/subnets/subresources/warp/methods/delete)

zero\_trust.networks.subnets.warp.delete(strsubnet\_id, WARPDeleteParams\*\*kwargs) -> [WARPDeleteResponse](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/zerotrust/subnets/warp/{subnet\_id}

##### ModelsExpand Collapse

<details>

<summary>

class Subnet: …

</summary>

id: Optional\[str]

The UUID of the subnet.

formatuuid

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

capacity: Optional\[Capacity]

IP capacity information for the subnet.

</summary>

total: Optional\[int]

Total number of assignable IPs in the subnet.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20capacity%20%3E%20(property)%20total">Link to this property</a>

used: Optional\[int]

Number of assigned IPs in the subnet.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20capacity%20%3E%20(property)%20used">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20capacity">Link to this property</a>

comment: Optional\[str]

An optional description of the subnet.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_at: Optional\[datetime]

Timestamp of when the resource was created.

formatdate-time

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

deleted\_at: Optional\[datetime]

Timestamp of when the resource was deleted. If <code>null</code>, the resource has not been deleted.

formatdate-time

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20deleted_at">Link to this property</a>

is\_default\_network: Optional\[bool]

If <code>true</code>, this is the default subnet for the account. There can only be one default subnet per account.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20is_default_network">Link to this property</a>

name: Optional\[str]

A user-friendly name for the subnet.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

network: Optional\[str]

The private IPv4 or IPv6 range defining the subnet, in CIDR notation.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20network">Link to this property</a>

<details>

<summary>

subnet\_type: Optional\[Literal\["cloudflare\_source", "initial\_resolved\_ip", "warp"]]

The type of subnet.

</summary>

One of the following:

"cloudflare\_source"

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20subnet_type%20%3E%20(member)%200">Link to this property</a>

"initial\_resolved\_ip"

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20subnet_type%20%3E%20(member)%201">Link to this property</a>

"warp"

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20subnet_type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)%20%3E%20(property)%20subnet_type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>)

<details>

<summary>

class WARPDeleteResponse: …

</summary>

id: Optional\[str]

The UUID of the subnet.

formatuuid

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

capacity: Optional\[Capacity]

IP capacity information for the subnet.

</summary>

total: Optional\[int]

Total number of assignable IPs in the subnet.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20capacity%20%3E%20(property)%20total">Link to this property</a>

used: Optional\[int]

Number of assigned IPs in the subnet.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20capacity%20%3E%20(property)%20used">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20capacity">Link to this property</a>

comment: Optional\[str]

An optional description of the subnet.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_at: Optional\[datetime]

Timestamp of when the resource was created.

formatdate-time

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

deleted\_at: Optional\[datetime]

Timestamp of when the resource was deleted. If <code>null</code>, the resource has not been deleted.

formatdate-time

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_at">Link to this property</a>

is\_default\_network: Optional\[bool]

If <code>true</code>, this is the default subnet for the account. There can only be one default subnet per account.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20is_default_network">Link to this property</a>

name: Optional\[str]

A user-friendly name for the subnet.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

network: Optional\[str]

The private IPv4 or IPv6 range defining the subnet, in CIDR notation.

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20network">Link to this property</a>

<details>

<summary>

subnet\_type: Optional\[Literal\["cloudflare\_source", "initial\_resolved\_ip", "warp"]]

The type of subnet.

</summary>

One of the following:

"cloudflare\_source"

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20subnet_type%20%3E%20(member)%200">Link to this property</a>

"initial\_resolved\_ip"

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20subnet_type%20%3E%20(member)%201">Link to this property</a>

"warp"

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20subnet_type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)%20%3E%20(property)%20subnet_type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20warp_delete_response%20%3E%20(schema)>)

#### NetworksSubnetsCloudflare Source

##### [Update Cloudflare Source Subnet](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/subnets/subresources/cloudflare_source/methods/update)

zero\_trust.networks.subnets.cloudflare\_source.update(Literal\["v4", "v6"]address\_family, CloudflareSourceUpdateParams\*\*kwargs) -> [Subnet](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/zerotrust/subnets/cloudflare\_source/{address\_family}

#### NetworksSubnetsInitial Resolved IP

##### [Get Initial Resolved IP Subnet](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/subnets/subresources/initial_resolved_ip/methods/get)

zero\_trust.networks.subnets.initial\_resolved\_ip.get(Literal\["v4", "v6"]address\_family, InitialResolvedIPGetParams\*\*kwargs) -> [Subnet](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>)

GET/accounts/{account\_id}/zerotrust/subnets/initial\_resolved\_ip/{address\_family}

##### [Update Initial Resolved IP Subnet](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/subnets/subresources/initial_resolved_ip/methods/update)

zero\_trust.networks.subnets.initial\_resolved\_ip.update(Literal\["v4", "v6"]address\_family, InitialResolvedIPUpdateParams\*\*kwargs) -> [Subnet](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>)

PUT/accounts/{account\_id}/zerotrust/subnets/initial\_resolved\_ip/{address\_family}

#### NetworksHostname Routes

##### [List hostname routes](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/hostname_routes/methods/list)

zero\_trust.networks.hostname\_routes.list(HostnameRouteListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[HostnameRoute](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>)]

GET/accounts/{account\_id}/zerotrust/routes/hostname

##### [Get hostname route](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/hostname_routes/methods/get)

zero\_trust.networks.hostname\_routes.get(strhostname\_route\_id, HostnameRouteGetParams\*\*kwargs) -> [HostnameRoute](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>)

GET/accounts/{account\_id}/zerotrust/routes/hostname/{hostname\_route\_id}

##### [Create hostname route](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/hostname_routes/methods/create)

zero\_trust.networks.hostname\_routes.create(HostnameRouteCreateParams\*\*kwargs) -> [HostnameRoute](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>)

POST/accounts/{account\_id}/zerotrust/routes/hostname

##### [Update hostname route](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/hostname_routes/methods/edit)

zero\_trust.networks.hostname\_routes.edit(strhostname\_route\_id, HostnameRouteEditParams\*\*kwargs) -> [HostnameRoute](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/zerotrust/routes/hostname/{hostname\_route\_id}

##### [Delete hostname route](https://developers.cloudflare.com/api/python/resources/zero_trust/subresources/networks/subresources/hostname_routes/methods/delete)

zero\_trust.networks.hostname\_routes.delete(strhostname\_route\_id, HostnameRouteDeleteParams\*\*kwargs) -> [HostnameRoute](<https://developers.cloudflare.com/api/python/resources/zero_trust#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/zerotrust/routes/hostname/{hostname\_route\_id}

##### ModelsExpand Collapse

<details>

<summary>

class HostnameRoute: …

</summary>

id: Optional\[str]

The hostname route ID.

formatuuid

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: Optional\[str]

An optional description of the hostname route.

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_at: Optional\[datetime]

Timestamp of when the resource was created.

formatdate-time

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

deleted\_at: Optional\[datetime]

Timestamp of when the resource was deleted. If <code>null</code>, the resource has not been deleted.

formatdate-time

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20deleted_at">Link to this property</a>

hostname: Optional\[str]

The hostname of the route.

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20hostname">Link to this property</a>

<details>

<summary>

tun\_type: Optional\[Literal\["cfd\_tunnel", "warp\_connector", "warp", 4 more]]

The type of tunnel.

</summary>

One of the following:

"cfd\_tunnel"

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%200">Link to this property</a>

"warp\_connector"

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%201">Link to this property</a>

"warp"

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%202">Link to this property</a>

"magic"

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%203">Link to this property</a>

"ip\_sec"

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%204">Link to this property</a>

"gre"

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%205">Link to this property</a>

"cni"

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20tun_type%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20tun_type">Link to this property</a>

tunnel\_id: Optional\[str]

UUID of the tunnel.

formatuuid

maxLength36

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20tunnel_id">Link to this property</a>

tunnel\_name: Optional\[str]

A user-friendly name for a tunnel.

<a href="#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)%20%3E%20(property)%20tunnel_name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>)