Skip to main content

Cloudflare/addressing

@swamp/cloudflare/addressingv2026.06.24.1· 13d agoMODELS
01README

Cloudflare addressing infrastructure models

02Release Notes
  • Added: regional_hostnames
03Models3
@swamp/cloudflare/addressing/address-mapsv2026.06.08.1address_maps.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
default_sni?stringIf 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?stringAn optional description field which may be used to describe the types of IPs or zones on the map.
enabled?booleanWhether 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?arrayZones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership.
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 Address Maps
fn get(id: string)
Get a Address Maps
ArgumentTypeDescription
idstringThe ID of the Address Maps
fn update()
Update Address Maps attributes
fn delete(id: string)
Delete the Address Maps
ArgumentTypeDescription
idstringThe 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

ArgumentTypeDescription
account_idstringCloudflare account ID
description?stringDescription of the prefix.
asnnumberAutonomous System Number (ASN) the prefix will be advertised under.
cidrstringIP Prefix in Classless Inter-Domain Routing format.
delegate_loa_creation?booleanWhether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner.
loa_document_id?stringIdentifier for the uploaded LOA document.
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 Prefixes
fn get(id: string)
Get a Prefixes
ArgumentTypeDescription
idstringThe ID of the Prefixes
fn update()
Update Prefixes attributes
fn delete(id: string)
Delete the Prefixes
ArgumentTypeDescription
idstringThe 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

ArgumentTypeDescription
zone_idstringCloudflare zone ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
region_keystringIdentifying key for the region
hostnamestringDNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`
routing?stringConfigure which routing method to use for the regional hostname
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 Regional Hostnames
fn get(id: string)
Get a Regional Hostnames
ArgumentTypeDescription
idstringThe ID of the Regional Hostnames
fn update()
Update Regional Hostnames attributes
fn delete(id: string)
Delete the Regional Hostnames
ArgumentTypeDescription
idstringThe ID of the Regional Hostnames
fn sync()
Sync Regional Hostnames state from Cloudflare

Resources

state(infinite)— Regional Hostnames resource state
04Previous Versions3
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