---
title: Pools
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Load Balancers](https://developers.cloudflare.com/api/go/resources/load_balancers)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Pools

##### [List Pools](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/pools/methods/list)

client.LoadBalancers.Pools.List(ctx, params) (\*SinglePage\[[Pool](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/load\_balancers/pools

##### [Pool Details](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/pools/methods/get)

client.LoadBalancers.Pools.Get(ctx, poolID, query) (\*[Pool](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/load\_balancers/pools/{pool\_id}

##### [Create Pool](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/pools/methods/create)

client.LoadBalancers.Pools.New(ctx, params) (\*[Pool](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/load\_balancers/pools

##### [Update Pool](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/pools/methods/update)

client.LoadBalancers.Pools.Update(ctx, poolID, params) (\*[Pool](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/load\_balancers/pools/{pool\_id}

##### [Patch Pool](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/pools/methods/edit)

client.LoadBalancers.Pools.Edit(ctx, poolID, params) (\*[Pool](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/load\_balancers/pools/{pool\_id}

##### [Delete Pool](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/pools/methods/delete)

client.LoadBalancers.Pools.Delete(ctx, poolID, body) (\*[PoolDeleteResponse](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.pools%20%3E%20(model)%20PoolDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/load\_balancers/pools/{pool\_id}

##### [Patch Pools](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/pools/methods/bulk_edit)

client.LoadBalancers.Pools.BulkEdit(ctx, params) (\*SinglePage\[[Pool](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)>)], error)

PATCH/accounts/{account\_id}/load\_balancers/pools

##### ModelsExpand Collapse

<details>

<summary>

type Pool struct{…}

</summary>

ID stringOptional

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

CheckRegions \[]<a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a>Optional

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

</summary>

One of the following:

const CheckRegionWnam <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "WNAM"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const CheckRegionEnam <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "ENAM"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const CheckRegionWeu <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "WEU"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

const CheckRegionEeu <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "EEU"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

const CheckRegionNsam <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "NSAM"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

const CheckRegionSsam <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "SSAM"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

const CheckRegionOc <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "OC"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

const CheckRegionMe <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "ME"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

const CheckRegionNaf <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "NAF"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

const CheckRegionSaf <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "SAF"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

const CheckRegionSas <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "SAS"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

const CheckRegionSeas <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "SEAS"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

const CheckRegionNeas <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "NEAS"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

const CheckRegionChina <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "CHINA"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

const CheckRegionAllRegions <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)">CheckRegion</a> = "ALL\_REGIONS"

<a href="#(resource)%20load_balancers%20%3E%20(model)%20check_region%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

</details>

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20check_regions">Link to this property</a>

CreatedOn stringOptional

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

Description stringOptional

A human-readable description of the pool.

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

DisabledAt TimeOptional

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

formatdate-time

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20disabled_at">Link to this property</a>

Enabled boolOptional

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).

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

HealthSources \[]PoolHealthSourceOptional

A list of health sources, ordered from highest to lowest priority, used to evaluate individual origin health and overall pool health. The load balancer uses the first source that has data and falls back to the next. Currently accepted values are null or the exact array \[“regional”, “global”]; any other combination is rejected. Null (the default) behaves like \[“local”, “global”]. \[“regional”, “global”] makes each region steer on its own health, falling back to the global decision when a region has no fresh data. Setting regional requires at least one region in check\_regions.

</summary>

One of the following:

const PoolHealthSourceLocal PoolHealthSource = "local"

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20health_sources%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const PoolHealthSourceRegional PoolHealthSource = "regional"

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20health_sources%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const PoolHealthSourceGlobal PoolHealthSource = "global"

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20health_sources%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20health_sources">Link to this property</a>

Latitude float64Optional

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.

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20latitude">Link to this property</a>

LoadShedding <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20load_shedding%20%3E%20(schema)">LoadShedding</a>Optional

Configures load shedding policies and percentages for the pool.

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20load_shedding">Link to this property</a>

Longitude float64Optional

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.

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20longitude">Link to this property</a>

MinimumOrigins int64Optional

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.

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20minimum_origins">Link to this property</a>

ModifiedOn stringOptional

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

Monitor stringOptional

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

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20monitor">Link to this property</a>

MonitorGroup stringOptional

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

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20monitor_group">Link to this property</a>

Name stringOptional

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

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

Networks \[]stringOptional

List of networks where Load Balancer or Pool is enabled.

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20networks">Link to this property</a>

NotificationEmail stringOptional

This field is now deprecated. It has been moved to Cloudflare’s Centralized Notification service <a href="https://developers.cloudflare.com/fundamentals/notifications/">https://developers.cloudflare.com/fundamentals/notifications/</a>. 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.

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20notification_email">Link to this property</a>

NotificationFilter <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20notification_filter%20%3E%20(schema)">NotificationFilter</a>Optional

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

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20notification_filter">Link to this property</a>

OriginSteering <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20origin_steering%20%3E%20(schema)">OriginSteering</a>Optional

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

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20origin_steering">Link to this property</a>

<details>

<summary>

Origins \[]<a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20origin%20%3E%20(schema)">Origin</a>Optional

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.

</summary>

Address stringOptional

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.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20origin%20%3E%20(schema)%20%3E%20(property)%20address">Link to this property</a>

DisabledAt TimeOptional

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

formatdate-time

<a href="#(resource)%20load_balancers%20%3E%20(model)%20origin%20%3E%20(schema)%20%3E%20(property)%20disabled_at">Link to this property</a>

Enabled boolOptional

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.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20origin%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

FlattenCNAME boolOptional

Whether to flatten CNAME records for this origin, resolving them to A/AAAA records before returning to the client. When true (the default), the director resolves CNAME addresses to their underlying A/AAAA records. When false, the origin address is returned as a raw CNAME record without resolution. This setting mirrors the DNS API record flatten\_cname setting.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20origin%20%3E%20(schema)%20%3E%20(property)%20flatten_cname">Link to this property</a>

Header <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20header%20%3E%20(schema)">Header</a>Optional

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

<a href="#(resource)%20load_balancers%20%3E%20(model)%20origin%20%3E%20(schema)%20%3E%20(property)%20header">Link to this property</a>

Name stringOptional

A human-identifiable name for the origin.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20origin%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

Port int64Optional

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

<a href="#(resource)%20load_balancers%20%3E%20(model)%20origin%20%3E%20(schema)%20%3E%20(property)%20port">Link to this property</a>

VirtualNetworkID stringOptional

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

<a href="#(resource)%20load_balancers%20%3E%20(model)%20origin%20%3E%20(schema)%20%3E%20(property)%20virtual_network_id">Link to this property</a>

Weight float64Optional

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.

- <code>origin_steering.policy="least_outstanding_requests"</code>: Use weight to scale the origin’s outstanding requests.
- <code>origin_steering.policy="least_connections"</code>: Use weight to scale the origin’s open connections.

maximum1

minimum0

multipleOf0.01

<a href="#(resource)%20load_balancers%20%3E%20(model)%20origin%20%3E%20(schema)%20%3E%20(property)%20weight">Link to this property</a>

</details>

<a href="#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)%20%3E%20(property)%20origins">Link to this property</a>

</details>

[Link to this property](<#(resource)%20load_balancers.pools%20%3E%20(model)%20pool%20%3E%20(schema)>)

#### PoolsHealth

##### [Pool Health Details](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/pools/subresources/health/methods/get)

client.LoadBalancers.Pools.Health.Get(ctx, poolID, query) (\*[PoolHealthGetResponse](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.pools.health%20%3E%20(model)%20PoolHealthGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/load\_balancers/pools/{pool\_id}/health

##### [Preview Pool](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/pools/subresources/health/methods/create)

client.LoadBalancers.Pools.Health.New(ctx, poolID, params) (\*[PoolHealthNewResponse](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.pools.health%20%3E%20(model)%20PoolHealthNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/load\_balancers/pools/{pool\_id}/preview

#### PoolsReferences

##### [List Pool References](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/pools/subresources/references/methods/get)

client.LoadBalancers.Pools.References.Get(ctx, poolID, query) (\*SinglePage\[[PoolReferenceGetResponse](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.pools.references%20%3E%20(model)%20PoolReferenceGetResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/load\_balancers/pools/{pool\_id}/references