Main methods
create
Create a new zone.string
required
The domain name (e.g., ‘example.com’)
'full' | 'partial' | 'secondary' | 'internal'
Zone type. A full zone implies DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or CNAME setup.
string
Zone identifier
string
The domain name
'initializing' | 'pending' | 'active' | 'moved'
The zone status on Cloudflare
string[]
The name servers Cloudflare assigns to the zone
string
When the zone was created
string | null
The last time proof of ownership was detected and the zone was made active
list
List, search, sort, and filter zones. Listing zones across more than 500 accounts is currently not allowed.object
string
Filter by domain name (supports operators like ‘contains’, ‘starts_with’, ‘ends_with’, etc.)
'initializing' | 'pending' | 'active' | 'moved'
Filter by zone status
'name' | 'status' | 'account.id' | 'account.name' | 'plan.id'
Field to order zones by
'asc' | 'desc'
Direction to order zones
'any' | 'all'
Whether to match all search requirements or at least one
delete
Delete an existing zone.string
required
Zone identifier
edit
Edit a zone. Only one zone property can be changed at a time.string
required
Zone identifier
boolean
Whether the zone is only using Cloudflare DNS services (true means no security or performance benefits)
'full' | 'partial' | 'secondary' | 'internal'
Zone type (Enterprise only)
string[]
Custom name servers (Business and Enterprise plans only)
get
Get zone details.string
required
Zone identifier
Zone type
Sub-resources
The Zones resource provides access to several sub-resources:- settings - Manage zone settings (SSL, caching, security, etc.)
- activationCheck - Trigger activation checks for the zone
- customNameservers - Manage custom nameservers
- holds - Manage zone holds
- subscriptions - Manage zone subscriptions
- plans - View available rate plans