Skip to content
Start here

Routes

List tunnel routes
client.ZeroTrust.Networks.Routes.List(ctx, params) (*V4PagePaginationArray[Teamnet], error)
GET/accounts/{account_id}/teamnet/routes
Get tunnel route
client.ZeroTrust.Networks.Routes.Get(ctx, routeID, query) (*Route, error)
GET/accounts/{account_id}/teamnet/routes/{route_id}
Create a tunnel route
client.ZeroTrust.Networks.Routes.New(ctx, params) (*Route, error)
POST/accounts/{account_id}/teamnet/routes
Update a tunnel route
client.ZeroTrust.Networks.Routes.Edit(ctx, routeID, params) (*Route, error)
PATCH/accounts/{account_id}/teamnet/routes/{route_id}
Delete a tunnel route
client.ZeroTrust.Networks.Routes.Delete(ctx, routeID, body) (*Route, error)
DELETE/accounts/{account_id}/teamnet/routes/{route_id}
ModelsExpand Collapse
type NetworkRoute struct{…}
ID stringoptional

UUID of the route.

maxLength36
Comment stringoptional

Optional remark describing the route.

maxLength100
CreatedAt Timeoptional

Timestamp of when the resource was created.

formatdate-time
DeletedAt Timeoptional

Timestamp of when the resource was deleted. If null, the resource has not been deleted.

formatdate-time
Network stringoptional

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

TunnelID stringoptional

UUID of the tunnel.

formatuuid
maxLength36
VirtualNetworkID stringoptional

UUID of the virtual network.

formatuuid
type Route struct{…}
ID stringoptional

UUID of the route.

maxLength36
Comment stringoptional

Optional remark describing the route.

maxLength100
CreatedAt Timeoptional

Timestamp of when the resource was created.

formatdate-time
DeletedAt Timeoptional

Timestamp of when the resource was deleted. If null, the resource has not been deleted.

formatdate-time
Network stringoptional

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

TunnelID stringoptional

UUID of the tunnel.

formatuuid
maxLength36
VirtualNetworkID stringoptional

UUID of the virtual network.

formatuuid
type Teamnet struct{…}
ID stringoptional

UUID of the route.

maxLength36
Comment stringoptional

Optional remark describing the route.

maxLength100
CreatedAt Timeoptional

Timestamp of when the resource was created.

formatdate-time
DeletedAt Timeoptional

Timestamp of when the resource was deleted. If null, the resource has not been deleted.

formatdate-time
Network stringoptional

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

TunType TeamnetTunTypeoptional

The type of tunnel.

One of the following:
const TeamnetTunTypeCfdTunnel TeamnetTunType = "cfd_tunnel"
const TeamnetTunTypeWARPConnector TeamnetTunType = "warp_connector"
const TeamnetTunTypeWARP TeamnetTunType = "warp"
const TeamnetTunTypeMagic TeamnetTunType = "magic"
const TeamnetTunTypeIPSec TeamnetTunType = "ip_sec"
const TeamnetTunTypeGRE TeamnetTunType = "gre"
const TeamnetTunTypeCNI TeamnetTunType = "cni"
TunnelID stringoptional

UUID of the tunnel.

formatuuid
maxLength36
TunnelName stringoptional

A user-friendly name for a tunnel.

VirtualNetworkID stringoptional

UUID of the virtual network.

formatuuid
VirtualNetworkName stringoptional

A user-friendly name for the virtual network.

maxLength256

RoutesIPs

Get tunnel route by IP
client.ZeroTrust.Networks.Routes.IPs.Get(ctx, ip, params) (*Teamnet, error)
GET/accounts/{account_id}/teamnet/routes/ip/{ip}

RoutesNetworks

Create a tunnel route (CIDR Endpoint)
Deprecated
client.ZeroTrust.Networks.Routes.Networks.New(ctx, ipNetworkEncoded, params) (*Route, error)
POST/accounts/{account_id}/teamnet/routes/network/{ip_network_encoded}
Update a tunnel route (CIDR Endpoint)
Deprecated
client.ZeroTrust.Networks.Routes.Networks.Edit(ctx, ipNetworkEncoded, body) (*Route, error)
PATCH/accounts/{account_id}/teamnet/routes/network/{ip_network_encoded}
Delete a tunnel route (CIDR Endpoint)
Deprecated
client.ZeroTrust.Networks.Routes.Networks.Delete(ctx, ipNetworkEncoded, params) (*Route, error)
DELETE/accounts/{account_id}/teamnet/routes/network/{ip_network_encoded}