Skip to content
Start here

Routes

List tunnel routes
zero_trust.networks.routes.list(RouteListParams**kwargs) -> SyncV4PagePaginationArray[Teamnet]
GET/accounts/{account_id}/teamnet/routes
Get tunnel route
zero_trust.networks.routes.get(strroute_id, RouteGetParams**kwargs) -> Route
GET/accounts/{account_id}/teamnet/routes/{route_id}
Create a tunnel route
zero_trust.networks.routes.create(RouteCreateParams**kwargs) -> Route
POST/accounts/{account_id}/teamnet/routes
Update a tunnel route
zero_trust.networks.routes.edit(strroute_id, RouteEditParams**kwargs) -> Route
PATCH/accounts/{account_id}/teamnet/routes/{route_id}
Delete a tunnel route
zero_trust.networks.routes.delete(strroute_id, RouteDeleteParams**kwargs) -> Route
DELETE/accounts/{account_id}/teamnet/routes/{route_id}
ModelsExpand Collapse
class NetworkRoute:
id: Optional[str]

UUID of the route.

maxLength36
comment: Optional[str]

Optional remark describing the route.

maxLength100
created_at: Optional[datetime]

Timestamp of when the resource was created.

formatdate-time
deleted_at: Optional[datetime]

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

formatdate-time
network: Optional[str]

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

tunnel_id: Optional[str]

UUID of the tunnel.

formatuuid
maxLength36
virtual_network_id: Optional[str]

UUID of the virtual network.

formatuuid
class Route:
id: Optional[str]

UUID of the route.

maxLength36
comment: Optional[str]

Optional remark describing the route.

maxLength100
created_at: Optional[datetime]

Timestamp of when the resource was created.

formatdate-time
deleted_at: Optional[datetime]

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

formatdate-time
network: Optional[str]

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

tunnel_id: Optional[str]

UUID of the tunnel.

formatuuid
maxLength36
virtual_network_id: Optional[str]

UUID of the virtual network.

formatuuid
class Teamnet:
id: Optional[str]

UUID of the route.

maxLength36
comment: Optional[str]

Optional remark describing the route.

maxLength100
created_at: Optional[datetime]

Timestamp of when the resource was created.

formatdate-time
deleted_at: Optional[datetime]

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

formatdate-time
network: Optional[str]

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

tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "warp", 4 more]]

The type of tunnel.

One of the following:
"cfd_tunnel"
"warp_connector"
"warp"
"magic"
"ip_sec"
"gre"
"cni"
tunnel_id: Optional[str]

UUID of the tunnel.

formatuuid
maxLength36
tunnel_name: Optional[str]

A user-friendly name for a tunnel.

virtual_network_id: Optional[str]

UUID of the virtual network.

formatuuid
virtual_network_name: Optional[str]

A user-friendly name for the virtual network.

maxLength256

RoutesIPs

Get tunnel route by IP
zero_trust.networks.routes.ips.get(strip, IPGetParams**kwargs) -> Teamnet
GET/accounts/{account_id}/teamnet/routes/ip/{ip}

RoutesNetworks

Create a tunnel route (CIDR Endpoint)
Deprecated
zero_trust.networks.routes.networks.create(strip_network_encoded, NetworkCreateParams**kwargs) -> Route
POST/accounts/{account_id}/teamnet/routes/network/{ip_network_encoded}
Update a tunnel route (CIDR Endpoint)
Deprecated
zero_trust.networks.routes.networks.edit(strip_network_encoded, NetworkEditParams**kwargs) -> Route
PATCH/accounts/{account_id}/teamnet/routes/network/{ip_network_encoded}
Delete a tunnel route (CIDR Endpoint)
Deprecated
zero_trust.networks.routes.networks.delete(strip_network_encoded, NetworkDeleteParams**kwargs) -> Route
DELETE/accounts/{account_id}/teamnet/routes/network/{ip_network_encoded}