Skip to main content

Cloudflare/teamnet

@swamp/cloudflare/teamnetv2026.10.23.1· AGPL-3.0-or-later· 3d agoBEHAVIORS
01README

Cloudflare teamnet infrastructure models

02Release Notes
  • Updated: routes
  • Updated: virtual_networks
03Behaviors2
@swamp/cloudflare/teamnet/routesv2026.10.23.1routes.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
comment?stringOptional remark describing the route.
network?stringThe private IPv4 or IPv6 range connected by the route, in CIDR notation.
tunnel_id?stringUUID of the tunnel.
virtual_network_id?stringUUID of the virtual network.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Routes
fn get(id: string)
Get a Routes
ArgumentTypeDescription
idstringThe ID of the Routes
fn lookup(allowMissing?: boolean)
Look up an existing Routes by matching global argument values and import it into state
ArgumentTypeDescription
allowMissing?booleanSucceed and record found: false in lookupResult when nothing matches, instead of failing
fn adopt(id: string)
Import an existing Routes by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Routes to import
fn update(identifier?: string)
Update Routes attributes
ArgumentTypeDescription
identifier?stringTarget a specific Routes by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Routes
ArgumentTypeDescription
idstringThe ID of the Routes
fn sync(identifier?: string)
Sync Routes state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Routes by id (e.g. one discovered by list)

Resources

state(infinite)— Routes resource state
lookupResult(infinite)— Outcome of the most recent lookup
@swamp/cloudflare/teamnet/virtual-networksv2026.10.23.1virtual_networks.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
comment?stringOptional remark describing the virtual network.
is_default_network?booleanIf `true`, this virtual network is the default for the account.
name?stringA user-friendly name for the virtual network.
is_default?booleanIf `true`, this virtual network is the default for the account.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Virtual Networks
fn get(id: string)
Get a Virtual Networks
ArgumentTypeDescription
idstringThe ID of the Virtual Networks
fn lookup(allowMissing?: boolean)
Look up an existing Virtual Networks by matching global argument values and import it into state
ArgumentTypeDescription
allowMissing?booleanSucceed and record found: false in lookupResult when nothing matches, instead of failing
fn adopt(id: string)
Import an existing Virtual Networks by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Virtual Networks to import
fn update(identifier?: string)
Update Virtual Networks attributes
ArgumentTypeDescription
identifier?stringTarget a specific Virtual Networks by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Virtual Networks
ArgumentTypeDescription
idstringThe ID of the Virtual Networks
fn sync(identifier?: string)
Sync Virtual Networks state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Virtual Networks by id (e.g. one discovered by list)

Resources

state(infinite)— Virtual Networks resource state
lookupResult(infinite)— Outcome of the most recent lookup
04Previous Versions9
2026.10.20.1AGPL-3.0-or-later
  • Updated: routes
  • Updated: virtual_networks

Modified 2 behaviors

2026.10.16.1AGPL-3.0-or-later(was none)
2026.10.13.1
  • Updated: routes
  • Updated: virtual_networks
2026.09.29.1
  • Updated: routes
  • Updated: virtual_networks
2026.07.21.1
  • Updated: routes
  • Updated: virtual_networks
2026.07.18.2

Modified 2 behaviors

2026.06.08.2
  • Updated: routes
  • Updated: virtual_networks
2026.05.29.1
  • Updated: routes
  • Updated: virtual_networks
2026.05.22.1
  • Added: routes
  • Added: virtual_networks
05Stats
A
100 / 100
Downloads
33
Archive size
13.3 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned
06Platforms
07Labels