PHP Client for Cloudflare API
Load Balancers

Pools

Pools endpoint reference.

List

List configured load balancer pools for an account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
php
$response = $client->loadBalancers()->pools()->list('ACCOUNT_ID');
View this operation on the Cloudflare API Reference

Create

Create a new load balancer pool for an account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
valuesarrayYesValues to set on the pool, e.g. `name`, `origins`.
php
$response = $client->loadBalancers()->pools()->create('ACCOUNT_ID', []);
View this operation on the Cloudflare API Reference

Get

Get a single configured load balancer pool for an account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
poolIdstringYesPool Identifier.
php
$response = $client->loadBalancers()->pools()->get('ACCOUNT_ID', 'POOL_ID');
View this operation on the Cloudflare API Reference

Update

Update an existing load balancer pool for an account, overwriting the full configuration.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
poolIdstringYesPool Identifier.
valuesarrayYesValues to set on the pool, e.g. `name`, `origins`.
php
$response = $client->loadBalancers()->pools()->update('ACCOUNT_ID', 'POOL_ID', []);
View this operation on the Cloudflare API Reference

Edit

Apply changes to an existing pool, overwriting only the supplied properties.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
poolIdstringYesPool Identifier.
valuesarrayYesValues to patch on the pool.
php
$response = $client->loadBalancers()->pools()->edit('ACCOUNT_ID', 'POOL_ID', []);
View this operation on the Cloudflare API Reference

Bulk Edit

Apply changes to a number of existing pools, overwriting the supplied properties. Returns the list of affected pools.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
valuesarrayYesList of pool patches to apply, each identified by `id`.
php
$response = $client->loadBalancers()->pools()->bulkEdit('ACCOUNT_ID', []);
View this operation on the Cloudflare API Reference

Delete

Delete a load balancer pool for an account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
poolIdstringYesPool Identifier.
php
$response = $client->loadBalancers()->pools()->delete('ACCOUNT_ID', 'POOL_ID');
View this operation on the Cloudflare API Reference

Health

Fetch the latest pool health status for a single pool.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
poolIdstringYesPool Identifier.
php
$response = $client->loadBalancers()->pools()->health('ACCOUNT_ID', 'POOL_ID');
View this operation on the Cloudflare API Reference

Preview

Preview pool health using the specified monitor and show the effective response.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
poolIdstringYesPool Identifier.
valuesarrayNo[]The monitor details to run the preview with.
php
$response = $client->loadBalancers()->pools()->preview('ACCOUNT_ID', 'POOL_ID', []);
View this operation on the Cloudflare API Reference

References

List the load balancers that reference a given pool.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
poolIdstringYesPool Identifier.
php
$response = $client->loadBalancers()->pools()->references('ACCOUNT_ID', 'POOL_ID');
View this operation on the Cloudflare API Reference
Copyright © 2026