Skip to content
Start here

Hostname Routes

List hostname routes
client.ZeroTrust.Networks.HostnameRoutes.List(ctx, params) (*V4PagePaginationArray[HostnameRoute], error)
GET/accounts/{account_id}/zerotrust/routes/hostname
Get hostname route
client.ZeroTrust.Networks.HostnameRoutes.Get(ctx, hostnameRouteID, query) (*HostnameRoute, error)
GET/accounts/{account_id}/zerotrust/routes/hostname/{hostname_route_id}
Create hostname route
client.ZeroTrust.Networks.HostnameRoutes.New(ctx, params) (*HostnameRoute, error)
POST/accounts/{account_id}/zerotrust/routes/hostname
Update hostname route
client.ZeroTrust.Networks.HostnameRoutes.Edit(ctx, hostnameRouteID, params) (*HostnameRoute, error)
PATCH/accounts/{account_id}/zerotrust/routes/hostname/{hostname_route_id}
Delete hostname route
client.ZeroTrust.Networks.HostnameRoutes.Delete(ctx, hostnameRouteID, body) (*HostnameRoute, error)
DELETE/accounts/{account_id}/zerotrust/routes/hostname/{hostname_route_id}
ModelsExpand Collapse
type HostnameRoute struct{…}
ID stringoptional

The hostname route ID.

formatuuid
Comment stringoptional

An optional description of the hostname route.

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
Hostname stringoptional

The hostname of the route.

TunnelID stringoptional

UUID of the tunnel.

formatuuid
maxLength36
TunnelName stringoptional

A user-friendly name for a tunnel.