Skip to content
Start here

Virtual Networks

List virtual networks
client.ZeroTrust.Networks.VirtualNetworks.List(ctx, params) (*SinglePage[VirtualNetwork], error)
GET/accounts/{account_id}/teamnet/virtual_networks
Get a virtual network
client.ZeroTrust.Networks.VirtualNetworks.Get(ctx, virtualNetworkID, query) (*VirtualNetwork, error)
GET/accounts/{account_id}/teamnet/virtual_networks/{virtual_network_id}
Create a virtual network
client.ZeroTrust.Networks.VirtualNetworks.New(ctx, params) (*VirtualNetwork, error)
POST/accounts/{account_id}/teamnet/virtual_networks
Update a virtual network
client.ZeroTrust.Networks.VirtualNetworks.Edit(ctx, virtualNetworkID, params) (*VirtualNetwork, error)
PATCH/accounts/{account_id}/teamnet/virtual_networks/{virtual_network_id}
Delete a virtual network
client.ZeroTrust.Networks.VirtualNetworks.Delete(ctx, virtualNetworkID, body) (*VirtualNetwork, error)
DELETE/accounts/{account_id}/teamnet/virtual_networks/{virtual_network_id}
ModelsExpand Collapse
type VirtualNetwork struct{…}
ID string

UUID of the virtual network.

formatuuid
Comment string

Optional remark describing the virtual network.

maxLength256
CreatedAt Time

Timestamp of when the resource was created.

formatdate-time
IsDefaultNetwork bool

If true, this virtual network is the default for the account.

Name string

A user-friendly name for the virtual network.

maxLength256
DeletedAt Timeoptional

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

formatdate-time