Skip to content
Start here

Subnets

List Subnets
client.ZeroTrust.Networks.Subnets.List(ctx, params) (*V4PagePaginationArray[Subnet], error)
GET/accounts/{account_id}/zerotrust/subnets

SubnetsWARP

Create WARP IP subnet
client.ZeroTrust.Networks.Subnets.WARP.New(ctx, params) (*Subnet, error)
POST/accounts/{account_id}/zerotrust/subnets/warp
Get WARP IP subnet
client.ZeroTrust.Networks.Subnets.WARP.Get(ctx, subnetID, query) (*Subnet, error)
GET/accounts/{account_id}/zerotrust/subnets/warp/{subnet_id}
Update WARP IP subnet
client.ZeroTrust.Networks.Subnets.WARP.Edit(ctx, subnetID, params) (*Subnet, error)
PATCH/accounts/{account_id}/zerotrust/subnets/warp/{subnet_id}
Delete WARP IP subnet
client.ZeroTrust.Networks.Subnets.WARP.Delete(ctx, subnetID, body) (*NetworkSubnetWARPDeleteResponse, error)
DELETE/accounts/{account_id}/zerotrust/subnets/warp/{subnet_id}
ModelsExpand Collapse
type Subnet struct{…}
ID stringoptional

The UUID of the subnet.

formatuuid
Comment stringoptional

An optional description of the subnet.

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

If true, this is the default subnet for the account. There can only be one default subnet per account.

Name stringoptional

A user-friendly name for the subnet.

Network stringoptional

The private IPv4 or IPv6 range defining the subnet, in CIDR notation.

SubnetType SubnetSubnetTypeoptional

The type of subnet.

One of the following:
const SubnetSubnetTypeCloudflareSource SubnetSubnetType = "cloudflare_source"
const SubnetSubnetTypeWARP SubnetSubnetType = "warp"

SubnetsCloudflare Source

Update Cloudflare Source Subnet
client.ZeroTrust.Networks.Subnets.CloudflareSource.Update(ctx, addressFamily, params) (*Subnet, error)
PATCH/accounts/{account_id}/zerotrust/subnets/cloudflare_source/{address_family}