Skip to content

AddressingServiceBinding

Source: src/Cloudflare/Addressing/ServiceBinding.ts

Binds part of a BYOIP prefix to a Cloudflare service (CDN, Spectrum, or Magic Transit), routing traffic for the bound CIDR to that service.

Bindings are create/delete only — every prop change forces a replacement. Provisioning to the edge is asynchronous: the binding is returned immediately with provisioning.state: "provisioning" and flips to "active" on Cloudflare’s side; the resource does not wait for it.

const binding = yield* Cloudflare.AddressingServiceBinding("cdn", {
prefixId: prefix.prefixId,
cidr: "192.0.2.0/24",
serviceId: cdnServiceId,
});