Create a load balancer
Create a new load balancer for a zone.string
required
The zone identifier
array
required
A list of pool IDs ordered by their failover priority. Cloudflare steers traffic to the first pool in the list, failing over to the next healthy pool.
string
required
The pool ID to use when all other pools are detected as unhealthy.
string
required
The DNS hostname to associate with your load balancer.
string
An optional description of your load balancer.
boolean
Whether the load balancer is enabled. Defaults to true.
boolean
Whether the hostname gets Cloudflare’s origin protection. Defaults to false.
number
Time to live (TTL) of the DNS entry for the IP address returned by this load balancer.
object
A mapping of region/country codes to a list of pool IDs (ordered by their failover priority) for the given region.
object
Controls features that modify the routing of requests to pools and origins in response to dynamic conditions.
boolean
Extends zero-downtime failover of requests to healthy origins from alternate pools.
string
Specifies the type of session affinity the load balancer should use. Options:
none, cookie, ip_cookie, header.string
The unique identifier of the load balancer
string
The timestamp when the load balancer was created
string
The timestamp when the load balancer was last modified
string
The DNS hostname associated with the load balancer
array
The list of pool IDs ordered by their failover priority
string
The pool ID used when all other pools are unhealthy
Update a load balancer
Update a configured load balancer.string
required
The load balancer identifier
List load balancers
List all load balancers configured in a zone.string
required
The zone identifier
Get a load balancer
Fetch details for a single configured load balancer.string
required
The load balancer identifier
string
required
The zone identifier
Edit a load balancer
Apply changes to an existing load balancer, overwriting only the supplied properties.string
required
The load balancer identifier
string
required
The zone identifier
Delete a load balancer
Delete a configured load balancer.string
required
The load balancer identifier
string
required
The zone identifier
Related resources
- Monitors: Health check monitors for your origin servers
- Pools: Groups of origin servers that can be used by load balancers
- Monitor Groups: Manage groups of health check monitors