Skip to content
Start here

Subnets

List Subnets
zero_trust.networks.subnets.list(SubnetListParams**kwargs) -> SyncV4PagePaginationArray[Subnet]
GET/accounts/{account_id}/zerotrust/subnets

SubnetsWARP

Create WARP IP subnet
zero_trust.networks.subnets.warp.create(WARPCreateParams**kwargs) -> Subnet
POST/accounts/{account_id}/zerotrust/subnets/warp
Get WARP IP subnet
zero_trust.networks.subnets.warp.get(strsubnet_id, WARPGetParams**kwargs) -> Subnet
GET/accounts/{account_id}/zerotrust/subnets/warp/{subnet_id}
Update WARP IP subnet
zero_trust.networks.subnets.warp.edit(strsubnet_id, WARPEditParams**kwargs) -> Subnet
PATCH/accounts/{account_id}/zerotrust/subnets/warp/{subnet_id}
Delete WARP IP subnet
zero_trust.networks.subnets.warp.delete(strsubnet_id, WARPDeleteParams**kwargs) -> WARPDeleteResponse
DELETE/accounts/{account_id}/zerotrust/subnets/warp/{subnet_id}
ModelsExpand Collapse
class Subnet:
id: Optional[str]

The UUID of the subnet.

formatuuid
comment: Optional[str]

An optional description of the subnet.

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
is_default_network: Optional[bool]

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

name: Optional[str]

A user-friendly name for the subnet.

network: Optional[str]

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

subnet_type: Optional[Literal["cloudflare_source", "warp"]]

The type of subnet.

One of the following:
"cloudflare_source"
"warp"
class WARPDeleteResponse:
id: Optional[str]

The UUID of the subnet.

formatuuid
comment: Optional[str]

An optional description of the subnet.

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
is_default_network: Optional[bool]

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

name: Optional[str]

A user-friendly name for the subnet.

network: Optional[str]

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

subnet_type: Optional[Literal["cloudflare_source", "warp"]]

The type of subnet.

One of the following:
"cloudflare_source"
"warp"

SubnetsCloudflare Source

Update Cloudflare Source Subnet
zero_trust.networks.subnets.cloudflare_source.update(Literal["v4", "v6"]address_family, CloudflareSourceUpdateParams**kwargs) -> Subnet
PATCH/accounts/{account_id}/zerotrust/subnets/cloudflare_source/{address_family}