Skip to main content

Cloudflare/cni

@swamp/cloudflare/cniv2026.10.02.1· 4d agoMODELS
01README

Cloudflare cni infrastructure models

02Release Notes
  • Updated: cnis
03Models2
@swamp/cloudflare/cni/cnisv2026.10.02.1cnis.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
account?stringCustomer account tag
bgp?object
bgp_mode?enumThe BGP mode for a CNI.\nOne of the following:\n* `dynamic_route_exchange`\n* `advertise_only`
cust_ip?stringCustomer end of the point-to-point link\n\nThis should always be inside the same prefix as `p2p_ip`.
id?string
interconnect?string
magic?object
p2p_ip?stringCloudflare end of the point-to-point link
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 Cnis
fn get(id: string)
Get a Cnis
ArgumentTypeDescription
idstringThe ID of the Cnis
fn lookup()
Look up an existing Cnis by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Cnis by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Cnis to import
fn update(identifier?: string)
Update Cnis attributes
ArgumentTypeDescription
identifier?stringTarget a specific Cnis by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Cnis
ArgumentTypeDescription
idstringThe ID of the Cnis
fn sync(identifier?: string)
Sync Cnis state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Cnis by id (e.g. one discovered by list)

Resources

state(infinite)— Cnis resource state
@swamp/cloudflare/cni/interconnectsv2026.09.29.1interconnects.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
account?string
type?string
slot_id?string
speed?string
bandwidth?enumBandwidth structure as visible through the customer-facing API.
pairing_key?stringPairing key provided by GCP
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 Interconnects
fn get(id: string)
Get a Interconnects
ArgumentTypeDescription
idstringThe ID of the Interconnects
fn lookup()
Look up an existing Interconnects by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Interconnects by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Interconnects to import
fn delete(id: string)
Delete the Interconnects
ArgumentTypeDescription
idstringThe ID of the Interconnects
fn sync(identifier?: string)
Sync Interconnects state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Interconnects by id (e.g. one discovered by list)

Resources

state(infinite)— Interconnects resource state
04Previous Versions10
2026.09.29.2
  • Updated: cnis
2026.09.29.1
  • Updated: cnis
  • Updated: interconnects
2026.08.25.2
  • Updated: cnis
2026.08.25.1
  • Updated: cnis
2026.08.11.1
  • Updated: cnis
2026.07.21.1
  • Updated: cnis
  • Updated: interconnects
2026.07.18.2

Modified 2 models

2026.06.08.2
  • Updated: cnis
  • Updated: interconnects
2026.05.29.1
  • Updated: cnis
  • Updated: interconnects
2026.05.22.1
  • Added: cnis
  • Added: interconnects
05Stats
A
100 / 100
Downloads
25
Archive size
12.5 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
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels