Cloudflare/addressing
@swamp/cloudflare/addressingv2026.06.24.1
01README
Cloudflare addressing infrastructure models
02Release Notes
- Added: regional_hostnames
03Models
@swamp/cloudflare/addressing/address-mapsv2026.06.08.1address_maps.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| default_sni? | string | If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account. |
| description? | string | An optional description field which may be used to describe the types of IPs or zones on the map. |
| enabled? | boolean | Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled. |
| ips? | array | |
| memberships? | array | Zones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership. |
| 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 Address Maps
fn get(id: string)
Get a Address Maps
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Address Maps |
fn update()
Update Address Maps attributes
fn delete(id: string)
Delete the Address Maps
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Address Maps |
fn sync()
Sync Address Maps state from Cloudflare
Resources
state(infinite)— Address Maps resource state
@swamp/cloudflare/addressing/prefixesv2026.06.08.1prefixes.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| description? | string | Description of the prefix. |
| asn | number | Autonomous System Number (ASN) the prefix will be advertised under. |
| cidr | string | IP Prefix in Classless Inter-Domain Routing format. |
| delegate_loa_creation? | boolean | Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner. |
| loa_document_id? | string | Identifier for the uploaded LOA document. |
| 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 Prefixes
fn get(id: string)
Get a Prefixes
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Prefixes |
fn update()
Update Prefixes attributes
fn delete(id: string)
Delete the Prefixes
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Prefixes |
fn sync()
Sync Prefixes state from Cloudflare
Resources
state(infinite)— Prefixes resource state
@swamp/cloudflare/addressing/regional-hostnamesv2026.06.24.1regional_hostnames.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| zone_id | string | Cloudflare zone ID |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| region_key | string | Identifying key for the region |
| hostname | string | DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com` |
| routing? | string | Configure which routing method to use for the regional hostname |
| 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 Regional Hostnames
fn get(id: string)
Get a Regional Hostnames
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Regional Hostnames |
fn update()
Update Regional Hostnames attributes
fn delete(id: string)
Delete the Regional Hostnames
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Regional Hostnames |
fn sync()
Sync Regional Hostnames state from Cloudflare
Resources
state(infinite)— Regional Hostnames resource state
04Previous Versions
2026.06.08.2Jun 8, 2026
- Updated: address_maps
- Updated: prefixes
2026.05.29.1May 29, 2026
- Updated: address_maps
- Updated: prefixes
2026.05.22.1May 22, 2026
- Added: address_maps
- Added: prefixes
05Stats
A
100 / 100
Downloads
3
Archive size
14.9 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