Cloudflare/cni
@swamp/cloudflare/cniv2026.10.02.1
01README
Cloudflare cni infrastructure models
02Release Notes
- Updated: cnis
03Models
@swamp/cloudflare/cni/cnisv2026.10.02.1cnis.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| account? | string | Customer account tag |
| bgp? | object | |
| bgp_mode? | enum | The BGP mode for a CNI.\nOne of the following:\n* `dynamic_route_exchange`\n* `advertise_only` |
| cust_ip? | string | Customer 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? | string | Cloudflare end of the point-to-point link |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Cnis to import |
fn update(identifier?: string)
Update Cnis attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Cnis by id (e.g. one discovered by list) |
fn delete(id: string)
Delete the Cnis
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Cnis |
fn sync(identifier?: string)
Sync Cnis state from Cloudflare
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| account? | string | |
| type? | string | |
| slot_id? | string | |
| speed? | string | |
| bandwidth? | enum | Bandwidth structure as visible through the customer-facing API. |
| pairing_key? | string | Pairing key provided by GCP |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Interconnects to import |
fn delete(id: string)
Delete the Interconnects
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Interconnects |
fn sync(identifier?: string)
Sync Interconnects state from Cloudflare
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Interconnects by id (e.g. one discovered by list) |
Resources
state(infinite)— Interconnects resource state
04Previous Versions
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