---
title: Networks
---

[Skip to content](#_top)

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

[Zero Trust](https://developers.cloudflare.com/api/go/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/go/resources/zero_trust/subresources/networks/subresources/routes/methods/list)

client.ZeroTrust.Networks.Routes.List(ctx, params) (\*V4PagePaginationArray\[[Teamnet](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)>)], error)

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

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

client.ZeroTrust.Networks.Routes.Get(ctx, routeID, query) (\*[Route](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.Routes.New(ctx, params) (\*[Route](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.Routes.Edit(ctx, routeID, params) (\*[Route](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.Routes.Delete(ctx, routeID, body) (\*[Route](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>), error)

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

##### ModelsExpand Collapse

<details>

<summary>

type NetworkRoute struct{…}

</summary>

ID stringOptional

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 stringOptional

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>

CreatedAt TimeOptional

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>

DeletedAt TimeOptional

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 stringOptional

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>

TunnelID stringOptional

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>

VirtualNetworkID stringOptional

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>

type Route struct{…}

</summary>

ID stringOptional

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 stringOptional

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>

CreatedAt TimeOptional

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>

DeletedAt TimeOptional

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 stringOptional

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>

TunnelID stringOptional

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>

VirtualNetworkID stringOptional

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>

type Teamnet struct{…}

</summary>

ID stringOptional

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 stringOptional

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>

CreatedAt TimeOptional

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>

DeletedAt TimeOptional

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 stringOptional

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>

TunType TeamnetTunTypeOptional

The type of tunnel.

</summary>

One of the following:

const TeamnetTunTypeCfdTunnel TeamnetTunType = "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>

const TeamnetTunTypeWARPConnector TeamnetTunType = "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>

const TeamnetTunTypeWARP TeamnetTunType = "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>

const TeamnetTunTypeMagic TeamnetTunType = "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>

const TeamnetTunTypeIPSec TeamnetTunType = "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>

const TeamnetTunTypeGRE TeamnetTunType = "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>

const TeamnetTunTypeCNI TeamnetTunType = "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>

TunnelID stringOptional

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>

TunnelName stringOptional

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>

VirtualNetworkID stringOptional

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>

VirtualNetworkName stringOptional

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/go/resources/zero_trust/subresources/networks/subresources/routes/subresources/ips/methods/get)

client.ZeroTrust.Networks.Routes.IPs.Get(ctx, ip, params) (\*[Teamnet](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20teamnet%20%3E%20(schema)>), error)

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

#### NetworksRoutesNetworks

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

Deprecated

client.ZeroTrust.Networks.Routes.Networks.New(ctx, ipNetworkEncoded, params) (\*[Route](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>), error)

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

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

Deprecated

client.ZeroTrust.Networks.Routes.Networks.Edit(ctx, ipNetworkEncoded, body) (\*[Route](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>), error)

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

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

Deprecated

client.ZeroTrust.Networks.Routes.Networks.Delete(ctx, ipNetworkEncoded, params) (\*[Route](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.routes%20%3E%20(model)%20route%20%3E%20(schema)>), error)

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

#### NetworksVirtual Networks

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

client.ZeroTrust.Networks.VirtualNetworks.List(ctx, params) (\*SinglePage\[[VirtualNetwork](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>)], error)

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

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

client.ZeroTrust.Networks.VirtualNetworks.Get(ctx, virtualNetworkID, query) (\*[VirtualNetwork](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.VirtualNetworks.New(ctx, params) (\*[VirtualNetwork](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.VirtualNetworks.Edit(ctx, virtualNetworkID, params) (\*[VirtualNetwork](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.VirtualNetworks.Delete(ctx, virtualNetworkID, body) (\*[VirtualNetwork](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.virtual_networks%20%3E%20(model)%20virtual_network%20%3E%20(schema)>), error)

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

##### ModelsExpand Collapse

<details>

<summary>

type VirtualNetwork struct{…}

</summary>

ID string

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 string

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>

CreatedAt Time

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>

IsDefaultNetwork 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 string

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>

DeletedAt TimeOptional

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/go/resources/zero_trust/subresources/networks/subresources/subnets/methods/list)

client.ZeroTrust.Networks.Subnets.List(ctx, params) (\*V4PagePaginationArray\[[Subnet](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>)], error)

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

#### NetworksSubnetsWARP

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

client.ZeroTrust.Networks.Subnets.WARP.New(ctx, params) (\*[Subnet](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.Subnets.WARP.Get(ctx, subnetID, query) (\*[Subnet](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.Subnets.WARP.Edit(ctx, subnetID, params) (\*[Subnet](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.Subnets.WARP.Delete(ctx, subnetID, body) (\*[NetworkSubnetWARPDeleteResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20NetworkSubnetWARPDeleteResponse%20%3E%20(schema)>), error)

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

##### ModelsExpand Collapse

<details>

<summary>

type Subnet struct{…}

</summary>

ID stringOptional

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 SubnetCapacityOptional

IP capacity information for the subnet.

</summary>

Total int64Optional

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 int64Optional

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 stringOptional

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>

CreatedAt TimeOptional

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>

DeletedAt TimeOptional

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>

IsDefaultNetwork boolOptional

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 stringOptional

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 stringOptional

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>

SubnetType SubnetSubnetTypeOptional

The type of subnet.

</summary>

One of the following:

const SubnetSubnetTypeCloudflareSource SubnetSubnetType = "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>

const SubnetSubnetTypeInitialResolvedIP SubnetSubnetType = "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>

const SubnetSubnetTypeWARP SubnetSubnetType = "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)>)

#### NetworksSubnetsCloudflare Source

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

client.ZeroTrust.Networks.Subnets.CloudflareSource.Update(ctx, addressFamily, params) (\*[Subnet](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>), error)

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

#### NetworksSubnetsInitial Resolved IP

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

client.ZeroTrust.Networks.Subnets.InitialResolvedIP.Get(ctx, addressFamily, query) (\*[Subnet](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.Subnets.InitialResolvedIP.Update(ctx, addressFamily, params) (\*[Subnet](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.subnets.warp%20%3E%20(model)%20subnet%20%3E%20(schema)>), error)

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

#### NetworksHostname Routes

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

client.ZeroTrust.Networks.HostnameRoutes.List(ctx, params) (\*V4PagePaginationArray\[[HostnameRoute](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>)], error)

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

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

client.ZeroTrust.Networks.HostnameRoutes.Get(ctx, hostnameRouteID, query) (\*[HostnameRoute](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.HostnameRoutes.New(ctx, params) (\*[HostnameRoute](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.HostnameRoutes.Edit(ctx, hostnameRouteID, params) (\*[HostnameRoute](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>), error)

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

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

client.ZeroTrust.Networks.HostnameRoutes.Delete(ctx, hostnameRouteID, body) (\*[HostnameRoute](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.networks.hostname_routes%20%3E%20(model)%20hostname_route%20%3E%20(schema)>), error)

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

##### ModelsExpand Collapse

<details>

<summary>

type HostnameRoute struct{…}

</summary>

ID stringOptional

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 stringOptional

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>

CreatedAt TimeOptional

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>

DeletedAt TimeOptional

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 stringOptional

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>

TunType HostnameRouteTunTypeOptional

The type of tunnel.

</summary>

One of the following:

const HostnameRouteTunTypeCfdTunnel HostnameRouteTunType = "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>

const HostnameRouteTunTypeWARPConnector HostnameRouteTunType = "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>

const HostnameRouteTunTypeWARP HostnameRouteTunType = "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>

const HostnameRouteTunTypeMagic HostnameRouteTunType = "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>

const HostnameRouteTunTypeIPSec HostnameRouteTunType = "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>

const HostnameRouteTunTypeGRE HostnameRouteTunType = "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>

const HostnameRouteTunTypeCNI HostnameRouteTunType = "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>

TunnelID stringOptional

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>

TunnelName stringOptional

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)>)