Skip to content
Start here

Pools

List Pools
GET/accounts/{account_id}/load_balancers/pools
Pool Details
GET/accounts/{account_id}/load_balancers/pools/{pool_id}
Create Pool
POST/accounts/{account_id}/load_balancers/pools
Update Pool
PUT/accounts/{account_id}/load_balancers/pools/{pool_id}
Patch Pool
PATCH/accounts/{account_id}/load_balancers/pools/{pool_id}
Delete Pool
DELETE/accounts/{account_id}/load_balancers/pools/{pool_id}
Patch Pools
PATCH/accounts/{account_id}/load_balancers/pools
ModelsExpand Collapse
Pool = object { id, check_regions, created_on, 16 more }
id: optional string
check_regions: optional array of CheckRegion

A list of regions from which to run health checks. Null means every Cloudflare data center.

One of the following:
"WNAM"
"ENAM"
"WEU"
"EEU"
"NSAM"
"SSAM"
"OC"
"ME"
"NAF"
"SAF"
"SAS"
"SEAS"
"NEAS"
"ALL_REGIONS"
created_on: optional string
description: optional string

A human-readable description of the pool.

disabled_at: optional string

This field shows up only if the pool is disabled. This field is set with the time the pool was disabled at.

formatdate-time
enabled: optional boolean

Whether to enable (the default) or disable this pool. Disabled pools will not receive traffic and are excluded from health checks. Disabling a pool will cause any load balancers using it to failover to the next pool (if any).

latitude: optional number

The latitude of the data center containing the origins used in this pool in decimal degrees. If this is set, longitude must also be set.

load_shedding: optional LoadShedding { default_percent, default_policy, session_percent, session_policy }

Configures load shedding policies and percentages for the pool.

longitude: optional number

The longitude of the data center containing the origins used in this pool in decimal degrees. If this is set, latitude must also be set.

minimum_origins: optional number

The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and will failover to the next available pool.

modified_on: optional string
monitor: optional string

The ID of the Monitor to use for checking the health of origins within this pool.

monitor_group: optional string

The ID of the Monitor Group to use for checking the health of origins within this pool.

name: optional string

A short name (tag) for the pool. Only alphanumeric characters, hyphens, and underscores are allowed.

networks: optional array of string

List of networks where Load Balancer or Pool is enabled.

notification_email: optional string

This field is now deprecated. It has been moved to Cloudflare's Centralized Notification service https://developers.cloudflare.com/fundamentals/notifications/. The email address to send health status notifications to. This can be an individual mailbox or a mailing list. Multiple emails can be supplied as a comma delimited list.

notification_filter: optional NotificationFilter { origin, pool }

Filter pool and origin health notifications by resource type or health status. Use null to reset.

origin_steering: optional OriginSteering { policy }

Configures origin steering for the pool. Controls how origins are selected for new sessions and traffic without session affinity.

origins: optional array of Origin { address, disabled_at, enabled, 5 more }

The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy.

address: optional string

The IP address (IPv4 or IPv6) of the origin, or its publicly addressable hostname. Hostnames entered here should resolve directly to the origin, and not be a hostname proxied by Cloudflare. To set an internal/reserved address, virtual_network_id must also be set.

disabled_at: optional string

This field shows up only if the origin is disabled. This field is set with the time the origin was disabled.

formatdate-time
enabled: optional boolean

Whether to enable (the default) this origin within the pool. Disabled origins will not receive traffic and are excluded from health checks. The origin will only be disabled for the current pool.

header: optional Header { Host }

The request header is used to pass additional information with an HTTP request. Currently supported header is 'Host'.

name: optional string

A human-identifiable name for the origin.

port: optional number

The port for upstream connections. A value of 0 means the default port for the protocol will be used.

virtual_network_id: optional string

The virtual network subnet ID the origin belongs in. Virtual network must also belong to the account.

weight: optional number

The weight of this origin relative to other origins in the pool. Based on the configured weight the total traffic is distributed among origins within the pool.

  • origin_steering.policy="least_outstanding_requests": Use weight to scale the origin's outstanding requests.
  • origin_steering.policy="least_connections": Use weight to scale the origin's open connections.
maximum1
minimum0
multipleOf0.01
PoolDeleteResponse = object { id }
id: optional string

PoolsHealth

Pool Health Details
GET/accounts/{account_id}/load_balancers/pools/{pool_id}/health
Preview Pool
POST/accounts/{account_id}/load_balancers/pools/{pool_id}/preview
ModelsExpand Collapse
HealthGetResponse = object { pool_id, pop_health }

A list of regions from which to run health checks. Null means every Cloudflare data center.

pool_id: optional string

Pool ID.

pop_health: optional object { healthy, origins }

List of regions and associated health status.

healthy: optional boolean

Whether health check in region is healthy.

origins: optional array of object { ip }
ip: optional object { failure_reason, healthy, response_code, rtt }
failure_reason: optional string

Failure reason.

healthy: optional boolean

Origin health status.

response_code: optional number

Response code from origin health check.

rtt: optional string

Origin RTT (Round Trip Time) response.

HealthCreateResponse = object { pools, preview_id }
pools: optional map[string]

Monitored pool IDs mapped to their respective names.

preview_id: optional string

PoolsReferences

List Pool References
GET/accounts/{account_id}/load_balancers/pools/{pool_id}/references
ModelsExpand Collapse
ReferenceGetResponse = object { reference_type, resource_id, resource_name, resource_type }
reference_type: optional "*" or "referral" or "referrer"
One of the following:
"*"
"referral"
"referrer"
resource_id: optional string
resource_name: optional string
resource_type: optional string