Connect Domains To Cloudflare
connect_domains_to_cloudflareQueue up to 500 domains to move into your Cloudflare account; Porkbun creates the zone, copies DNS records, and repoints nameservers. Asynchronous, so poll for results.
Instructions
Queue domains to move into the customer's own Cloudflare account: Porkbun creates the zone there, copies over the DNS records it holds, and repoints the registry nameservers at Cloudflare. ASYNCHRONOUS — a successful call means QUEUED, never connected; the work runs in the background over the next few minutes, so poll get_cloudflare_queue afterwards. Results are PER DOMAIN: each name comes back under queued, skipped or alreadyQueued with its own reason. A non-empty skipped is a NORMAL outcome (DNSSEC live, custom nameservers, already connected), NOT a failed call — report the reasons rather than calling the whole thing an error. Eligibility is re-checked right before each domain is acted on, so a queued domain can still be skipped later. Requires the Cloudflare account to be connected first (see get_cloudflare_connection). Use dry_run to preview verdicts without queueing. Max 500 domains per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domains | Yes | Domain names to move into the customer's Cloudflare account. | |
| dry_run | No | Preview the per-domain verdicts without queueing anything. |