PHP Client for Cloudflare API
Load Balancers

Monitors

Monitors endpoint reference.

List

List configured load balancer monitors for an account.

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

Create

Create a new load balancer monitor for an account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
valuesarrayNo[]Values to set on the monitor, e.g. `type`, `method`, `path`, `expected_codes`.
php
$response = $client->loadBalancers()->monitors()->create('ACCOUNT_ID', []);
View this operation on the Cloudflare API Reference

Get

Get a single configured load balancer monitor for an account.

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

Update

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

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
monitorIdstringYesMonitor Identifier.
valuesarrayYesValues to set on the monitor, e.g. `type`, `method`, `path`, `expected_codes`.
php
$response = $client->loadBalancers()->monitors()->update('ACCOUNT_ID', 'MONITOR_ID', []);
View this operation on the Cloudflare API Reference

Edit

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

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

Delete

Delete a load balancer monitor for an account.

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

Preview

Preview pools associated with a given monitor and show the effective response.

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

References

List the load balancers and pools that reference a given monitor.

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