Skip to content

NetworkInterconnectSettings

Source: src/Cloudflare/NetworkInterconnects/Settings.ts

Account-level settings for Cloudflare Network Interconnect (CNI v2) — currently the default ASN applied to new CNI BGP configurations (/accounts/{account_id}/cni/settings).

The settings object is an account singleton — it always exists and can never be created or deleted. Reconcile PUTs the desired value when the observed value differs; destroy restores the value the setting had before Alchemy first managed it (captured as initialDefaultAsn).

CNI is an enterprise feature — on accounts without the Network Interconnect entitlement the endpoint fails with the typed Forbidden error.

Pin the account’s default ASN

yield* Cloudflare.NetworkInterconnectSettings("CniSettings", {
defaultAsn: 65000,
});

Use a private 32-bit ASN

yield* Cloudflare.NetworkInterconnectSettings("CniSettings", {
defaultAsn: 4200000001,
});