Create a load balancer
Create a new load balancer for a zone.The zone identifier
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.
The pool ID to use when all other pools are detected as unhealthy.
The DNS hostname to associate with your load balancer.
An optional description of your load balancer.
Whether the load balancer is enabled. Defaults to true.
Whether the hostname gets Cloudflare’s origin protection. Defaults to false.
Time to live (TTL) of the DNS entry for the IP address returned by this load balancer.
A mapping of region/country codes to a list of pool IDs (ordered by their failover priority) for the given region.
Controls features that modify the routing of requests to pools and origins in response to dynamic conditions.
Extends zero-downtime failover of requests to healthy origins from alternate pools.
Specifies the type of session affinity the load balancer should use. Options:
none, cookie, ip_cookie, header.The unique identifier of the load balancer
The timestamp when the load balancer was created
The timestamp when the load balancer was last modified
The DNS hostname associated with the load balancer
The list of pool IDs ordered by their failover priority
The pool ID used when all other pools are unhealthy
Update a load balancer
Update a configured load balancer.The load balancer identifier
List load balancers
List all load balancers configured in a zone.The zone identifier
Get a load balancer
Fetch details for a single configured load balancer.The load balancer identifier
The zone identifier
Edit a load balancer
Apply changes to an existing load balancer, overwriting only the supplied properties.The load balancer identifier
The zone identifier
Delete a load balancer
Delete a configured load balancer.The load balancer identifier
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