PHP Client for Cloudflare API
User

Load Balancers

Load balancing owned by the authenticated user rather than by an account.

Load balancing owned by the authenticated user rather than by an account.

Regions

List all region mappings in the user context.

ParamTypeRequiredDefaultDescription
paramsarrayNo[]Query Parameters: `subdivision_code` and `country_code`.
php
$response = $client->user()->loadBalancers()->regions([]);

Preview

Get the result of a previous preview operation.

Previews are started from monitors()->preview() or pools()->preview(), which hand back the identifier to read here.

ParamTypeRequiredDefaultDescription
previewIdstringYesPreview Identifier, as returned when the preview was started.
php
$response = $client->user()->loadBalancers()->preview('PREVIEW_ID');

Healthcheck Events

List origin health changes.

ParamTypeRequiredDefaultDescription
paramsarrayNo[]Query Parameters: `since`, `until`, `pool_id`, `pool_name`, `pool_healthy`, `origin_name` and `origin_healthy`.
php
$response = $client->user()->loadBalancers()->healthcheckEvents([]);
Copyright © 2026