---
title: Load Balancers
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Load Balancers

##### [List account or zone Load Balancers](https://developers.cloudflare.com/api/go/resources/load_balancers/methods/list)

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

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/load\_balancers

##### [account or zone Load Balancer Details](https://developers.cloudflare.com/api/go/resources/load_balancers/methods/get)

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

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/load\_balancers/{load\_balancer\_id}

##### [Create account or zone Load Balancer](https://developers.cloudflare.com/api/go/resources/load_balancers/methods/create)

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

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/load\_balancers

##### [Update account or zone Load Balancer](https://developers.cloudflare.com/api/go/resources/load_balancers/methods/update)

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

PUT/{accounts\_or\_zones}/{account\_or\_zone\_id}/load\_balancers/{load\_balancer\_id}

##### [Patch account or zone Load Balancer](https://developers.cloudflare.com/api/go/resources/load_balancers/methods/edit)

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

PATCH/{accounts\_or\_zones}/{account\_or\_zone\_id}/load\_balancers/{load\_balancer\_id}

##### [Delete account or zone Load Balancer](https://developers.cloudflare.com/api/go/resources/load_balancers/methods/delete)

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

DELETE/{accounts\_or\_zones}/{account\_or\_zone\_id}/load\_balancers/{load\_balancer\_id}

##### ModelsExpand Collapse

<details>

<summary>

type AdaptiveRouting struct{…}

Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.

</summary>

FailoverAcrossPools boolOptional

Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See <code>session_affinity_attributes</code> for control over when sessions are broken or reassigned.

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

</details>

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

<details>

<summary>

type CheckRegion string

WNAM: Western North America, ENAM: Eastern North America, WEU: Western Europe, EEU: Eastern Europe, NSAM: Northern South America, SSAM: Southern South America, OC: Oceania, ME: Middle East, NAF: North Africa, SAF: South Africa, SAS: Southern Asia, SEAS: South East Asia, NEAS: North East Asia, CHINA: China (ENTERPRISE customers only), ALL\_REGIONS: all regions (ENTERPRISE customers only).

</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>

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

type DefaultPools string

A pool ID.

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

<details>

<summary>

type FilterOptions struct{…}

Filter options for a particular resource type (pool or origin). Use null to reset.

</summary>

Disable boolOptional

If set true, disable notifications for this type of resource (pool or origin).

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

Healthy boolOptional

If present, send notifications only for this health status (e.g. false for only DOWN events). Use null to reset (all events).

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

</details>

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

<details>

<summary>

type Header struct{…}

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

</summary>

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

The ‘Host’ header allows to override the hostname set in the HTTP request. Current support is 1 ‘Host’ header override per origin.

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

</details>

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

type Host string

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

<details>

<summary>

type LoadBalancer struct{…}

</summary>

ID stringOptional

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

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

Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.

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

CountryPools map\[string, \[]string]Optional

A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding region\_pool mapping if it exists else to default\_pools.

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

CreatedOn stringOptional

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

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

A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region\_pools are not configured for a given region.

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

Description stringOptional

Object description.

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

Enabled boolOptional

Whether to enable (the default) this load balancer.

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

FallbackPool stringOptional

The pool ID to use when all other pools are detected as unhealthy.

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

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

Controls location-based steering for non-proxied requests. See <code>steering_policy</code> to learn how steering is affected.

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

ModifiedOn stringOptional

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

Name stringOptional

The DNS hostname to associate with your Load Balancer. If this hostname already exists as a DNS record in Cloudflare’s DNS, the Load Balancer will take precedence and the DNS record will not be used.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%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%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20networks">Link to this property</a>

<details>

<summary>

PoolSets \[]LoadBalancerPoolSetOptional

An optional list of pool sets, evaluated in array order with first match wins. Pool sets are independent from the standard steering fields (<code>region_pools</code> / <code>country_pools</code> / <code>pop_pools</code> / <code>default_pools</code> / <code>steering_policy</code> / <code>random_steering</code> / <code>fallback_pool</code> / <code>rules</code>). On a PATCH, an empty array (<code>pool_sets: []</code>) clears all pool sets, while omitting the field leaves existing pool sets unchanged.

</summary>

Disabled boolOptional

Disable this specific pool set. It will no longer be evaluated.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20disabled">Link to this property</a>

<details>

<summary>

FixedResponse LoadBalancerPoolSetsFixedResponseOptional

A collection of fields used to directly respond to the client instead of routing to a pool. When supplied on a rule, that rule stops further rule evaluation.

</summary>

ContentType stringOptional

The http ‘Content-Type’ header to include in the response.

maxLength32

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20fixed_response%20%3E%20(property)%20content_type">Link to this property</a>

Location stringOptional

The http ‘Location’ header to include in the response.

maxLength2048

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20fixed_response%20%3E%20(property)%20location">Link to this property</a>

MessageBody stringOptional

Text to include as the http body.

maxLength1024

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20fixed_response%20%3E%20(property)%20message_body">Link to this property</a>

StatusCode int64Optional

The http status code to respond with.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20fixed_response%20%3E%20(property)%20status_code">Link to this property</a>

</details>

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20fixed_response">Link to this property</a>

<details>

<summary>

Match LoadBalancerPoolSetsMatchOptional

Determines which requests a pool set applies to. Set <code>topology</code> to match by location or <code>default: true</code> to match all requests; the two are mutually exclusive. A pool set with no <code>match</code> matches all requests.

</summary>

Default boolOptional

When true, matches every request. Cannot be combined with <code>topology</code>.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20match%20%3E%20(property)%20default">Link to this property</a>

<details>

<summary>

Topology LoadBalancerPoolSetsMatchTopologyOptional

Matches requests by location. Set any combination of <code>pops</code>, <code>countries</code>, and <code>regions</code> (at least one is required); a request matches when its value appears in any populated list (e.g. <code>regions: ["WNAM"]</code> with <code>countries: ["US"]</code> matches a request in either WNAM or the US).

</summary>

Countries \[]stringOptional

A list of ISO 3166-1 alpha-2 country codes. Matches when the request’s country is in this list.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20match%20%3E%20(property)%20topology%20%3E%20(property)%20countries">Link to this property</a>

POPs \[]stringOptional

A list of Cloudflare PoP codes. Matches when the request’s PoP is in this list.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20match%20%3E%20(property)%20topology%20%3E%20(property)%20pops">Link to this property</a>

Regions \[]stringOptional

A list of Cloudflare region codes (e.g. <code>WNAM</code>, <code>ENAM</code>, <code>WEU</code>). Matches when the request’s region is in this list.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20match%20%3E%20(property)%20topology%20%3E%20(property)%20regions">Link to this property</a>

</details>

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20match%20%3E%20(property)%20topology">Link to this property</a>

</details>

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20match">Link to this property</a>

Name stringOptional

A human-readable name for this pool set.

maxLength200

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

<details>

<summary>

Overrides LoadBalancerPoolSetsOverridesOptional

The behavior a pool set applies when its <code>match</code> succeeds. A strict subset of a rule’s <code>overrides</code>: a pool set replaces the topology wholesale with a flat pool list (<code>pools</code>), so only the declarative pool-routing fields plus <code>fallback_pool</code> and <code>steering_policy</code> are settable. All fields are optional.

</summary>

FallbackPool stringOptional

The pool ID to use when all other pools are detected as unhealthy.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20overrides%20%3E%20(property)%20fallback_pool">Link to this property</a>

PoolDefaultWeight float64Optional

The default weight for pools not listed in <code>pool_weights</code>. The declarative alternative to <code>random_steering.default_weight</code>; mutually exclusive with <code>random_steering</code>.

maximum1

minimum0

multipleOf0.1

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20overrides%20%3E%20(property)%20pool_default_weight">Link to this property</a>

PoolWeights map\[string, float64]Optional

A mapping of pool IDs to custom weights, relative to the other pools. The declarative alternative to <code>random_steering.pool_weights</code>; mutually exclusive with <code>random_steering</code>.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20overrides%20%3E%20(property)%20pool_weights">Link to this property</a>

Pools \[]stringOptional

A flat, ordered list of pool IDs to route the matched audience to. Replaces the resolved topology with exactly these pools. Mutually exclusive with <code>fixed_response</code>.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20overrides%20%3E%20(property)%20pools">Link to this property</a>

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

Steering Policy for this load balancer.

- <code>"off"</code>: Use <code>default_pools</code>.
- <code>"geo"</code>: Use <code>region_pools</code>/<code>country_pools</code>/<code>pop_pools</code>. For non-proxied requests, the country for <code>country_pools</code> is determined by <code>location_strategy</code>.
- <code>"random"</code>: Select a pool randomly.
- <code>"dynamic_latency"</code>: Use round trip time to select the closest pool in default\_pools (requires pool health checks).
- <code>"proximity"</code>: Use the pools’ latitude and longitude to select the closest pool using the Cloudflare PoP location for proxied requests or the location determined by <code>location_strategy</code> for non-proxied requests.
- <code>"least_outstanding_requests"</code>: Select a pool by taking into consideration <code>random_steering</code> weights, as well as each pool’s number of outstanding requests. Pools with more pending requests are weighted proportionately less relative to others.
- <code>"least_connections"</code>: Select a pool by taking into consideration <code>random_steering</code> weights, as well as each pool’s number of open connections. Pools with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.
- <code>""</code>: Will map to <code>"geo"</code> if you use <code>region_pools</code>/<code>country_pools</code>/<code>pop_pools</code> otherwise <code>"off"</code>.

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20overrides%20%3E%20(property)%20steering_policy">Link to this property</a>

</details>

<a href="#(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets%20%3E%20(items)%20%3E%20(property)%20overrides">Link to this property</a>

</details>

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

POPPools map\[string, \[]string]Optional

Enterprise only: A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding country\_pool, then region\_pool mapping if it exists else to default\_pools.

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

Proxied boolOptional

Whether the hostname should be gray clouded (false) or orange clouded (true).

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

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

Configures pool weights.

- <code>steering_policy="random"</code>: A random pool is selected with probability proportional to pool weights.
- <code>steering_policy="least_outstanding_requests"</code>: Use pool weights to scale each pool’s outstanding requests.
- <code>steering_policy="least_connections"</code>: Use pool weights to scale each pool’s open connections.

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

RegionPools map\[string, \[]string]Optional

A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default\_pools.

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

<details>

<summary>

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

BETA Field Not General Access: A list of rules for this load balancer to execute.

</summary>

Condition stringOptional

The condition expressions to evaluate. If the condition evaluates to true, the overrides or fixed\_response in this rule will be applied. An empty condition is always true. For more details on condition expressions, please see <a href="https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions">https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions</a>.

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

Disabled boolOptional

Disable this specific rule. It will no longer be evaluated by this load balancer.

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

<details>

<summary>

FixedResponse RulesFixedResponseOptional

A collection of fields used to directly respond to the client instead of routing to a pool. When supplied on a rule, that rule stops further rule evaluation.

</summary>

ContentType stringOptional

The http ‘Content-Type’ header to include in the response.

maxLength32

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

Location stringOptional

The http ‘Location’ header to include in the response.

maxLength2048

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

MessageBody stringOptional

Text to include as the http body.

maxLength1024

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

StatusCode int64Optional

The http status code to respond with.

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

</details>

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

Name stringOptional

Name of this rule. Only used for human readability.

maxLength200

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

<details>

<summary>

Overrides RulesOverridesOptional

A collection of overrides to apply when this rule’s condition (or a pool set’s <code>match</code>) is true. All fields are optional.

</summary>

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

Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.

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

CountryPools map\[string, \[]string]Optional

A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding region\_pool mapping if it exists else to default\_pools.

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

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

A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region\_pools are not configured for a given region.

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

FallbackPool stringOptional

The pool ID to use when all other pools are detected as unhealthy.

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

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

Controls location-based steering for non-proxied requests. See <code>steering_policy</code> to learn how steering is affected.

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

PoolDefaultWeight float64Optional

The default weight for pools not listed in <code>pool_weights</code>. The declarative alternative to <code>random_steering.default_weight</code>; mutually exclusive with <code>random_steering</code>.

maximum1

minimum0

multipleOf0.1

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

PoolWeights map\[string, float64]Optional

A mapping of pool IDs to custom weights, relative to the other pools. The declarative alternative to <code>random_steering.pool_weights</code>; mutually exclusive with <code>random_steering</code>.

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

Pools \[]stringOptional

A flat, ordered list of pool IDs to route the matched audience to. Replaces the resolved topology with exactly these pools. Mutually exclusive with <code>fixed_response</code>.

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

POPPools map\[string, \[]string]Optional

Enterprise only: A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding country\_pool, then region\_pool mapping if it exists else to default\_pools.

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

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

Configures pool weights.

- <code>steering_policy="random"</code>: A random pool is selected with probability proportional to pool weights.
- <code>steering_policy="least_outstanding_requests"</code>: Use pool weights to scale each pool’s outstanding requests.
- <code>steering_policy="least_connections"</code>: Use pool weights to scale each pool’s open connections.

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

RegionPools map\[string, \[]string]Optional

A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default\_pools.

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

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

Specifies the type of session affinity the load balancer should use unless specified as <code>"none"</code>. The supported types are: - <code>"cookie"</code>: On the first request to a proxied load balancer, a cookie is generated, encoding information of which origin the request will be forwarded to. Subsequent requests, by the same client to the same load balancer, will be sent to the origin server the cookie encodes, for the duration of the cookie and as long as the origin server remains healthy. If the cookie has expired or the origin server is unhealthy, then a new origin server is calculated and used. - <code>"ip_cookie"</code>: Behaves the same as <code>"cookie"</code> except the initial origin selection is stable and based on the client’s ip address. - <code>"header"</code>: On the first request to a proxied load balancer, a session key based on the configured HTTP headers (see <code>session_affinity_attributes.headers</code>) is generated, encoding the request headers used for storing in the load balancer session state which origin the request will be forwarded to. Subsequent requests to the load balancer with the same headers will be sent to the same origin server, for the duration of the session and as long as the origin server remains healthy. If the session has been idle for the duration of <code>session_affinity_ttl</code> seconds or the origin server is unhealthy, then a new origin server is calculated and used. See <code>headers</code> in <code>session_affinity_attributes</code> for additional required configuration.

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

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

Configures attributes for session affinity.

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

SessionAffinityTTL float64Optional

Time, in seconds, until a client’s session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per <code>session_affinity</code> policy are: - <code>"cookie"</code> / <code>"ip_cookie"</code>: The current default of 23 hours will be used unless explicitly set. The accepted range of values is between \[1800, 604800]. - <code>"header"</code>: The current default of 1800 seconds will be used unless explicitly set. The accepted range of values is between \[30, 3600]. Note: With session affinity by header, sessions only expire after they haven’t been used for the number of seconds specified.

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

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

Steering Policy for this load balancer.

- <code>"off"</code>: Use <code>default_pools</code>.
- <code>"geo"</code>: Use <code>region_pools</code>/<code>country_pools</code>/<code>pop_pools</code>. For non-proxied requests, the country for <code>country_pools</code> is determined by <code>location_strategy</code>.
- <code>"random"</code>: Select a pool randomly.
- <code>"dynamic_latency"</code>: Use round trip time to select the closest pool in default\_pools (requires pool health checks).
- <code>"proximity"</code>: Use the pools’ latitude and longitude to select the closest pool using the Cloudflare PoP location for proxied requests or the location determined by <code>location_strategy</code> for non-proxied requests.
- <code>"least_outstanding_requests"</code>: Select a pool by taking into consideration <code>random_steering</code> weights, as well as each pool’s number of outstanding requests. Pools with more pending requests are weighted proportionately less relative to others.
- <code>"least_connections"</code>: Select a pool by taking into consideration <code>random_steering</code> weights, as well as each pool’s number of open connections. Pools with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.
- <code>""</code>: Will map to <code>"geo"</code> if you use <code>region_pools</code>/<code>country_pools</code>/<code>pop_pools</code> otherwise <code>"off"</code>.

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

TTL float64Optional

Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.

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

</details>

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

Priority int64Optional

The order in which rules should be executed in relation to each other. Lower values are executed first. Values do not need to be sequential. If no value is provided for any rule the array order of the rules field will be used to assign a priority.

minimum0

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

Terminates boolOptional

If this rule’s condition is true, this causes rule evaluation to stop after processing this rule.

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

</details>

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

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

Specifies the type of session affinity the load balancer should use unless specified as <code>"none"</code>. The supported types are: - <code>"cookie"</code>: On the first request to a proxied load balancer, a cookie is generated, encoding information of which origin the request will be forwarded to. Subsequent requests, by the same client to the same load balancer, will be sent to the origin server the cookie encodes, for the duration of the cookie and as long as the origin server remains healthy. If the cookie has expired or the origin server is unhealthy, then a new origin server is calculated and used. - <code>"ip_cookie"</code>: Behaves the same as <code>"cookie"</code> except the initial origin selection is stable and based on the client’s ip address. - <code>"header"</code>: On the first request to a proxied load balancer, a session key based on the configured HTTP headers (see <code>session_affinity_attributes.headers</code>) is generated, encoding the request headers used for storing in the load balancer session state which origin the request will be forwarded to. Subsequent requests to the load balancer with the same headers will be sent to the same origin server, for the duration of the session and as long as the origin server remains healthy. If the session has been idle for the duration of <code>session_affinity_ttl</code> seconds or the origin server is unhealthy, then a new origin server is calculated and used. See <code>headers</code> in <code>session_affinity_attributes</code> for additional required configuration.

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

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

Configures attributes for session affinity.

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

SessionAffinityTTL float64Optional

Time, in seconds, until a client’s session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per <code>session_affinity</code> policy are: - <code>"cookie"</code> / <code>"ip_cookie"</code>: The current default of 23 hours will be used unless explicitly set. The accepted range of values is between \[1800, 604800]. - <code>"header"</code>: The current default of 1800 seconds will be used unless explicitly set. The accepted range of values is between \[30, 3600]. Note: With session affinity by header, sessions only expire after they haven’t been used for the number of seconds specified.

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

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

Steering Policy for this load balancer.

- <code>"off"</code>: Use <code>default_pools</code>.
- <code>"geo"</code>: Use <code>region_pools</code>/<code>country_pools</code>/<code>pop_pools</code>. For non-proxied requests, the country for <code>country_pools</code> is determined by <code>location_strategy</code>.
- <code>"random"</code>: Select a pool randomly.
- <code>"dynamic_latency"</code>: Use round trip time to select the closest pool in default\_pools (requires pool health checks).
- <code>"proximity"</code>: Use the pools’ latitude and longitude to select the closest pool using the Cloudflare PoP location for proxied requests or the location determined by <code>location_strategy</code> for non-proxied requests.
- <code>"least_outstanding_requests"</code>: Select a pool by taking into consideration <code>random_steering</code> weights, as well as each pool’s number of outstanding requests. Pools with more pending requests are weighted proportionately less relative to others.
- <code>"least_connections"</code>: Select a pool by taking into consideration <code>random_steering</code> weights, as well as each pool’s number of open connections. Pools with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.
- <code>""</code>: Will map to <code>"geo"</code> if you use <code>region_pools</code>/<code>country_pools</code>/<code>pop_pools</code> otherwise <code>"off"</code>.

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

TTL float64Optional

Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.

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

ZoneName stringOptional

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

</details>

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

<details>

<summary>

type LoadShedding struct{…}

Configures load shedding policies and percentages for the pool.

</summary>

DefaultPercent float64Optional

The percent of traffic to shed from the pool, according to the default policy. Applies to new sessions and traffic without session affinity.

maximum100

minimum0

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

<details>

<summary>

DefaultPolicy LoadSheddingDefaultPolicyOptional

The default policy to use when load shedding. A random policy randomly sheds a given percent of requests. A hash policy computes a hash over the CF-Connecting-IP address and sheds all requests originating from a percent of IPs.

</summary>

One of the following:

const LoadSheddingDefaultPolicyRandom LoadSheddingDefaultPolicy = "random"

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

const LoadSheddingDefaultPolicyHash LoadSheddingDefaultPolicy = "hash"

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

</details>

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

SessionPercent float64Optional

The percent of existing sessions to shed from the pool, according to the session policy.

maximum100

minimum0

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

SessionPolicy LoadSheddingSessionPolicyOptional

Only the hash policy is supported for existing sessions (to avoid exponential decay).

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

</details>

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

<details>

<summary>

type LocationStrategy struct{…}

Controls location-based steering for non-proxied requests. See <code>steering_policy</code> to learn how steering is affected.

</summary>

<details>

<summary>

Mode LocationStrategyModeOptional

Determines the authoritative location when ECS is not preferred, does not exist in the request, or its GeoIP lookup is unsuccessful.

- <code>"pop"</code>: Use the Cloudflare PoP location.
- <code>"resolver_ip"</code>: Use the DNS resolver GeoIP location. If the GeoIP lookup is unsuccessful, use the Cloudflare PoP location.

</summary>

One of the following:

const LocationStrategyModePOP LocationStrategyMode = "pop"

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

const LocationStrategyModeResolverIP LocationStrategyMode = "resolver\_ip"

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

</details>

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

<details>

<summary>

PreferECS LocationStrategyPreferECSOptional

Whether the EDNS Client Subnet (ECS) GeoIP should be preferred as the authoritative location.

- <code>"always"</code>: Always prefer ECS.
- <code>"never"</code>: Never prefer ECS.
- <code>"proximity"</code>: Prefer ECS only when <code>steering_policy="proximity"</code>.
- <code>"geo"</code>: Prefer ECS only when <code>steering_policy="geo"</code>.

</summary>

One of the following:

const LocationStrategyPreferECSAlways LocationStrategyPreferECS = "always"

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

const LocationStrategyPreferECSNever LocationStrategyPreferECS = "never"

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

const LocationStrategyPreferECSProximity LocationStrategyPreferECS = "proximity"

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

const LocationStrategyPreferECSGeo LocationStrategyPreferECS = "geo"

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

</details>

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

</details>

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

<details>

<summary>

type NotificationFilter struct{…}

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

</summary>

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

Filter options for a particular resource type (pool or origin). Use null to reset.

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

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

Filter options for a particular resource type (pool or origin). Use null to reset.

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

</details>

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

<details>

<summary>

type Origin struct{…}

</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>

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

<details>

<summary>

type OriginSteering struct{…}

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

</summary>

<details>

<summary>

Policy OriginSteeringPolicyOptional

The type of origin steering policy to use.

- <code>"random"</code>: Select an origin randomly.
- <code>"hash"</code>: Select an origin by computing a hash over the CF-Connecting-IP address.
- <code>"least_outstanding_requests"</code>: Select an origin by taking into consideration origin weights, as well as each origin’s number of outstanding requests. Origins with more pending requests are weighted proportionately less relative to others.
- <code>"least_connections"</code>: Select an origin by taking into consideration origin weights, as well as each origin’s number of open connections. Origins with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.

</summary>

One of the following:

const OriginSteeringPolicyRandom OriginSteeringPolicy = "random"

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

const OriginSteeringPolicyHash OriginSteeringPolicy = "hash"

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

const OriginSteeringPolicyLeastOutstandingRequests OriginSteeringPolicy = "least\_outstanding\_requests"

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

const OriginSteeringPolicyLeastConnections OriginSteeringPolicy = "least\_connections"

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

</details>

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

</details>

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

<details>

<summary>

type RandomSteering struct{…}

Configures pool weights.

- <code>steering_policy="random"</code>: A random pool is selected with probability proportional to pool weights.
- <code>steering_policy="least_outstanding_requests"</code>: Use pool weights to scale each pool’s outstanding requests.
- <code>steering_policy="least_connections"</code>: Use pool weights to scale each pool’s open connections.

</summary>

DefaultWeight float64Optional

The default weight for pools in the load balancer that are not specified in the pool\_weights map.

maximum1

minimum0

multipleOf0.1

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

PoolWeights map\[string, float64]Optional

A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer.

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

</details>

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

<details>

<summary>

type Rules struct{…}

A rule object containing conditions and overrides for this load balancer to evaluate.

</summary>

Condition stringOptional

The condition expressions to evaluate. If the condition evaluates to true, the overrides or fixed\_response in this rule will be applied. An empty condition is always true. For more details on condition expressions, please see <a href="https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions">https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions</a>.

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

Disabled boolOptional

Disable this specific rule. It will no longer be evaluated by this load balancer.

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

<details>

<summary>

FixedResponse RulesFixedResponseOptional

A collection of fields used to directly respond to the client instead of routing to a pool. When supplied on a rule, that rule stops further rule evaluation.

</summary>

ContentType stringOptional

The http ‘Content-Type’ header to include in the response.

maxLength32

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

Location stringOptional

The http ‘Location’ header to include in the response.

maxLength2048

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

MessageBody stringOptional

Text to include as the http body.

maxLength1024

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

StatusCode int64Optional

The http status code to respond with.

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

</details>

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

Name stringOptional

Name of this rule. Only used for human readability.

maxLength200

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

<details>

<summary>

Overrides RulesOverridesOptional

A collection of overrides to apply when this rule’s condition (or a pool set’s <code>match</code>) is true. All fields are optional.

</summary>

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

Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin.

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

CountryPools map\[string, \[]string]Optional

A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. Any country not explicitly defined will fall back to using the corresponding region\_pool mapping if it exists else to default\_pools.

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

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

A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region\_pools are not configured for a given region.

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

FallbackPool stringOptional

The pool ID to use when all other pools are detected as unhealthy.

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

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

Controls location-based steering for non-proxied requests. See <code>steering_policy</code> to learn how steering is affected.

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

PoolDefaultWeight float64Optional

The default weight for pools not listed in <code>pool_weights</code>. The declarative alternative to <code>random_steering.default_weight</code>; mutually exclusive with <code>random_steering</code>.

maximum1

minimum0

multipleOf0.1

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

PoolWeights map\[string, float64]Optional

A mapping of pool IDs to custom weights, relative to the other pools. The declarative alternative to <code>random_steering.pool_weights</code>; mutually exclusive with <code>random_steering</code>.

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

Pools \[]stringOptional

A flat, ordered list of pool IDs to route the matched audience to. Replaces the resolved topology with exactly these pools. Mutually exclusive with <code>fixed_response</code>.

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

POPPools map\[string, \[]string]Optional

Enterprise only: A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using the corresponding country\_pool, then region\_pool mapping if it exists else to default\_pools.

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

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

Configures pool weights.

- <code>steering_policy="random"</code>: A random pool is selected with probability proportional to pool weights.
- <code>steering_policy="least_outstanding_requests"</code>: Use pool weights to scale each pool’s outstanding requests.
- <code>steering_policy="least_connections"</code>: Use pool weights to scale each pool’s open connections.

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

RegionPools map\[string, \[]string]Optional

A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default\_pools.

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

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

Specifies the type of session affinity the load balancer should use unless specified as <code>"none"</code>. The supported types are: - <code>"cookie"</code>: On the first request to a proxied load balancer, a cookie is generated, encoding information of which origin the request will be forwarded to. Subsequent requests, by the same client to the same load balancer, will be sent to the origin server the cookie encodes, for the duration of the cookie and as long as the origin server remains healthy. If the cookie has expired or the origin server is unhealthy, then a new origin server is calculated and used. - <code>"ip_cookie"</code>: Behaves the same as <code>"cookie"</code> except the initial origin selection is stable and based on the client’s ip address. - <code>"header"</code>: On the first request to a proxied load balancer, a session key based on the configured HTTP headers (see <code>session_affinity_attributes.headers</code>) is generated, encoding the request headers used for storing in the load balancer session state which origin the request will be forwarded to. Subsequent requests to the load balancer with the same headers will be sent to the same origin server, for the duration of the session and as long as the origin server remains healthy. If the session has been idle for the duration of <code>session_affinity_ttl</code> seconds or the origin server is unhealthy, then a new origin server is calculated and used. See <code>headers</code> in <code>session_affinity_attributes</code> for additional required configuration.

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

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

Configures attributes for session affinity.

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

SessionAffinityTTL float64Optional

Time, in seconds, until a client’s session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per <code>session_affinity</code> policy are: - <code>"cookie"</code> / <code>"ip_cookie"</code>: The current default of 23 hours will be used unless explicitly set. The accepted range of values is between \[1800, 604800]. - <code>"header"</code>: The current default of 1800 seconds will be used unless explicitly set. The accepted range of values is between \[30, 3600]. Note: With session affinity by header, sessions only expire after they haven’t been used for the number of seconds specified.

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

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

Steering Policy for this load balancer.

- <code>"off"</code>: Use <code>default_pools</code>.
- <code>"geo"</code>: Use <code>region_pools</code>/<code>country_pools</code>/<code>pop_pools</code>. For non-proxied requests, the country for <code>country_pools</code> is determined by <code>location_strategy</code>.
- <code>"random"</code>: Select a pool randomly.
- <code>"dynamic_latency"</code>: Use round trip time to select the closest pool in default\_pools (requires pool health checks).
- <code>"proximity"</code>: Use the pools’ latitude and longitude to select the closest pool using the Cloudflare PoP location for proxied requests or the location determined by <code>location_strategy</code> for non-proxied requests.
- <code>"least_outstanding_requests"</code>: Select a pool by taking into consideration <code>random_steering</code> weights, as well as each pool’s number of outstanding requests. Pools with more pending requests are weighted proportionately less relative to others.
- <code>"least_connections"</code>: Select a pool by taking into consideration <code>random_steering</code> weights, as well as each pool’s number of open connections. Pools with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.
- <code>""</code>: Will map to <code>"geo"</code> if you use <code>region_pools</code>/<code>country_pools</code>/<code>pop_pools</code> otherwise <code>"off"</code>.

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

TTL float64Optional

Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.

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

</details>

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

Priority int64Optional

The order in which rules should be executed in relation to each other. Lower values are executed first. Values do not need to be sequential. If no value is provided for any rule the array order of the rules field will be used to assign a priority.

minimum0

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

Terminates boolOptional

If this rule’s condition is true, this causes rule evaluation to stop after processing this rule.

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

</details>

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

<details>

<summary>

type SessionAffinity string

Specifies the type of session affinity the load balancer should use unless specified as <code>"none"</code>. The supported types are: - <code>"cookie"</code>: On the first request to a proxied load balancer, a cookie is generated, encoding information of which origin the request will be forwarded to. Subsequent requests, by the same client to the same load balancer, will be sent to the origin server the cookie encodes, for the duration of the cookie and as long as the origin server remains healthy. If the cookie has expired or the origin server is unhealthy, then a new origin server is calculated and used. - <code>"ip_cookie"</code>: Behaves the same as <code>"cookie"</code> except the initial origin selection is stable and based on the client’s ip address. - <code>"header"</code>: On the first request to a proxied load balancer, a session key based on the configured HTTP headers (see <code>session_affinity_attributes.headers</code>) is generated, encoding the request headers used for storing in the load balancer session state which origin the request will be forwarded to. Subsequent requests to the load balancer with the same headers will be sent to the same origin server, for the duration of the session and as long as the origin server remains healthy. If the session has been idle for the duration of <code>session_affinity_ttl</code> seconds or the origin server is unhealthy, then a new origin server is calculated and used. See <code>headers</code> in <code>session_affinity_attributes</code> for additional required configuration.

</summary>

One of the following:

const SessionAffinityNone <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20session_affinity%20%3E%20(schema)">SessionAffinity</a> = "none"

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

const SessionAffinityCookie <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20session_affinity%20%3E%20(schema)">SessionAffinity</a> = "cookie"

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

const SessionAffinityIPCookie <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20session_affinity%20%3E%20(schema)">SessionAffinity</a> = "ip\_cookie"

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

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

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

</details>

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

<details>

<summary>

type SessionAffinityAttributes struct{…}

Configures attributes for session affinity.

</summary>

DrainDuration float64Optional

Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.

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

Headers \[]stringOptional

Configures the names of HTTP headers to base session affinity on when header <code>session_affinity</code> is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format: <code>"cookie:&lt;cookie-name-1&gt;,&lt;cookie-name-2&gt;"</code> (example) where everything after the colon is a comma-separated list of cookie names. Providing only <code>"cookie"</code> will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans.

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

RequireAllHeaders boolOptional

When header <code>session_affinity</code> is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - <code>"true"</code>: Load balancing requests must contain *all* of the HTTP headers specified by the <code>headers</code> session affinity attribute, otherwise sessions aren’t created. - <code>"false"</code>: Load balancing requests must contain *at least one* of the HTTP headers specified by the <code>headers</code> session affinity attribute, otherwise sessions aren’t created.

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

<details>

<summary>

Samesite SessionAffinityAttributesSamesiteOptional

Configures the SameSite attribute on session affinity cookie. Value “Auto” will be translated to “Lax” or “None” depending if Always Use HTTPS is enabled. Note: when using value “None”, the secure attribute can not be set to “Never”.

</summary>

One of the following:

const SessionAffinityAttributesSamesiteAuto SessionAffinityAttributesSamesite = "Auto"

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

const SessionAffinityAttributesSamesiteLax SessionAffinityAttributesSamesite = "Lax"

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

const SessionAffinityAttributesSamesiteNone SessionAffinityAttributesSamesite = "None"

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

const SessionAffinityAttributesSamesiteStrict SessionAffinityAttributesSamesite = "Strict"

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

</details>

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

<details>

<summary>

Secure SessionAffinityAttributesSecureOptional

Configures the Secure attribute on session affinity cookie. Value “Always” indicates the Secure attribute will be set in the Set-Cookie header, “Never” indicates the Secure attribute will not be set, and “Auto” will set the Secure attribute depending if Always Use HTTPS is enabled.

</summary>

One of the following:

const SessionAffinityAttributesSecureAuto SessionAffinityAttributesSecure = "Auto"

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

const SessionAffinityAttributesSecureAlways SessionAffinityAttributesSecure = "Always"

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

const SessionAffinityAttributesSecureNever SessionAffinityAttributesSecure = "Never"

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

</details>

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

<details>

<summary>

ZeroDowntimeFailover SessionAffinityAttributesZeroDowntimeFailoverOptional

Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are: - <code>"none"</code>: No failover takes place for sessions pinned to the origin (default). - <code>"temporary"</code>: Traffic will be sent to another other healthy origin until the originally pinned origin is available; note that this can potentially result in heavy origin flapping. - <code>"sticky"</code>: The session affinity cookie is updated and subsequent requests are sent to the new origin. Note: Zero-downtime failover with sticky sessions is currently not supported for session affinity by header.

</summary>

One of the following:

const SessionAffinityAttributesZeroDowntimeFailoverNone SessionAffinityAttributesZeroDowntimeFailover = "none"

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

const SessionAffinityAttributesZeroDowntimeFailoverTemporary SessionAffinityAttributesZeroDowntimeFailover = "temporary"

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

const SessionAffinityAttributesZeroDowntimeFailoverSticky SessionAffinityAttributesZeroDowntimeFailover = "sticky"

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

</details>

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

</details>

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

<details>

<summary>

type SteeringPolicy string

Steering Policy for this load balancer.

- <code>"off"</code>: Use <code>default_pools</code>.
- <code>"geo"</code>: Use <code>region_pools</code>/<code>country_pools</code>/<code>pop_pools</code>. For non-proxied requests, the country for <code>country_pools</code> is determined by <code>location_strategy</code>.
- <code>"random"</code>: Select a pool randomly.
- <code>"dynamic_latency"</code>: Use round trip time to select the closest pool in default\_pools (requires pool health checks).
- <code>"proximity"</code>: Use the pools’ latitude and longitude to select the closest pool using the Cloudflare PoP location for proxied requests or the location determined by <code>location_strategy</code> for non-proxied requests.
- <code>"least_outstanding_requests"</code>: Select a pool by taking into consideration <code>random_steering</code> weights, as well as each pool’s number of outstanding requests. Pools with more pending requests are weighted proportionately less relative to others.
- <code>"least_connections"</code>: Select a pool by taking into consideration <code>random_steering</code> weights, as well as each pool’s number of open connections. Pools with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.
- <code>""</code>: Will map to <code>"geo"</code> if you use <code>region_pools</code>/<code>country_pools</code>/<code>pop_pools</code> otherwise <code>"off"</code>.

</summary>

One of the following:

const SteeringPolicyOff <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)">SteeringPolicy</a> = "off"

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

const SteeringPolicyGeo <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)">SteeringPolicy</a> = "geo"

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

const SteeringPolicyRandom <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)">SteeringPolicy</a> = "random"

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

const SteeringPolicyDynamicLatency <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)">SteeringPolicy</a> = "dynamic\_latency"

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

const SteeringPolicyProximity <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)">SteeringPolicy</a> = "proximity"

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

const SteeringPolicyLeastOutstandingRequests <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)">SteeringPolicy</a> = "least\_outstanding\_requests"

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

const SteeringPolicyLeastConnections <a href="https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)">SteeringPolicy</a> = "least\_connections"

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

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

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

</details>

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

#### Load BalancersMonitors

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

client.LoadBalancers.Monitors.List(ctx, query) (\*SinglePage\[[Monitor](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.monitors%20%3E%20(model)%20monitor%20%3E%20(schema)>)], error)

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

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

client.LoadBalancers.Monitors.Get(ctx, monitorID, query) (\*[Monitor](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.monitors%20%3E%20(model)%20monitor%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/load\_balancers/monitors/{monitor\_id}

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

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

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

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

client.LoadBalancers.Monitors.Update(ctx, monitorID, params) (\*[Monitor](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.monitors%20%3E%20(model)%20monitor%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/load\_balancers/monitors/{monitor\_id}

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

client.LoadBalancers.Monitors.Edit(ctx, monitorID, params) (\*[Monitor](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.monitors%20%3E%20(model)%20monitor%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/load\_balancers/monitors/{monitor\_id}

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

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

DELETE/accounts/{account\_id}/load\_balancers/monitors/{monitor\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Monitor struct{…}

</summary>

ID stringOptional

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

AllowInsecure boolOptional

Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors.

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

ConsecutiveDown int64Optional

To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times.

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

ConsecutiveUp int64Optional

To be marked healthy the monitored origin must pass this healthcheck N consecutive times.

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

CreatedOn stringOptional

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

Description stringOptional

Object description.

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

ExpectedBody stringOptional

A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy. This parameter is only valid for HTTP and HTTPS monitors.

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

ExpectedCodes stringOptional

The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors.

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

FollowRedirects boolOptional

Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors.

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

Header map\[string, \[]string]Optional

The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The User-Agent header cannot be overridden. This parameter is only valid for HTTP and HTTPS monitors.

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

Interval int64Optional

The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations.

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

Method stringOptional

The method to use for the health check. This defaults to ‘GET’ for HTTP/HTTPS based checks and ‘connection\_established’ for TCP based health checks.

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

ModifiedOn stringOptional

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

Path stringOptional

The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors.

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

Port int64Optional

The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).

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

ProbeZone stringOptional

Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors.

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

Retries int64Optional

The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.

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

Timeout int64Optional

The timeout (in seconds) before marking the health check as failed.

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

<details>

<summary>

Type MonitorTypeOptional

The protocol to use for the health check. Currently supported protocols are ‘HTTP’,‘HTTPS’, ‘TCP’, ‘ICMP-PING’, ‘UDP-ICMP’, and ‘SMTP’.

</summary>

One of the following:

const MonitorTypeHTTP MonitorType = "http"

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

const MonitorTypeHTTPS MonitorType = "https"

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

const MonitorTypeTCP MonitorType = "tcp"

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

const MonitorTypeUdpIcmp MonitorType = "udp\_icmp"

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

const MonitorTypeIcmpPing MonitorType = "icmp\_ping"

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

const MonitorTypeSmtp MonitorType = "smtp"

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

</details>

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

</details>

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

#### Load BalancersMonitorsPreviews

##### [Preview Monitor](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/monitors/subresources/previews/methods/create)

client.LoadBalancers.Monitors.Previews.New(ctx, monitorID, params) (\*[MonitorPreviewNewResponse](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.monitors.previews%20%3E%20(model)%20MonitorPreviewNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/load\_balancers/monitors/{monitor\_id}/preview

#### Load BalancersMonitorsReferences

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

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

GET/accounts/{account\_id}/load\_balancers/monitors/{monitor\_id}/references

#### Load BalancersMonitor Groups

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

client.LoadBalancers.MonitorGroups.List(ctx, query) (\*SinglePage\[[MonitorGroup](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.monitor_groups%20%3E%20(model)%20monitor_group%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/load\_balancers/monitor\_groups

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

client.LoadBalancers.MonitorGroups.Get(ctx, monitorGroupID, query) (\*[MonitorGroup](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.monitor_groups%20%3E%20(model)%20monitor_group%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/load\_balancers/monitor\_groups/{monitor\_group\_id}

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

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

POST/accounts/{account\_id}/load\_balancers/monitor\_groups

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

client.LoadBalancers.MonitorGroups.Update(ctx, monitorGroupID, params) (\*[MonitorGroup](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.monitor_groups%20%3E%20(model)%20monitor_group%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/load\_balancers/monitor\_groups/{monitor\_group\_id}

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

client.LoadBalancers.MonitorGroups.Edit(ctx, monitorGroupID, params) (\*[MonitorGroup](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.monitor_groups%20%3E%20(model)%20monitor_group%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/load\_balancers/monitor\_groups/{monitor\_group\_id}

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

client.LoadBalancers.MonitorGroups.Delete(ctx, monitorGroupID, body) (\*[MonitorGroup](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.monitor_groups%20%3E%20(model)%20monitor_group%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/load\_balancers/monitor\_groups/{monitor\_group\_id}

##### ModelsExpand Collapse

<details>

<summary>

type MonitorGroup struct{…}

</summary>

ID string

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

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

Description string

A short description of the monitor group

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

<details>

<summary>

Members \[]MonitorGroupMember

List of monitors in this group

</summary>

Enabled bool

Whether this monitor is enabled in the group

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

MonitorID string

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

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

MonitoringOnly bool

Whether this monitor is used for monitoring only (does not affect pool health)

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

MustBeHealthy bool

Whether this monitor must be healthy for the pool to be considered healthy

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

CreatedAt TimeOptional

The timestamp of when the monitor was added to the group

formatdate-time

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

UpdatedAt TimeOptional

The timestamp of when the monitor group member was last updated

formatdate-time

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

</details>

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

CreatedOn TimeOptional

The timestamp of when the monitor group was created

formatdate-time

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

ModifiedOn TimeOptional

The timestamp of when the monitor group was last updated

formatdate-time

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

</details>

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

#### Load BalancersMonitor GroupsReferences

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

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

GET/accounts/{account\_id}/load\_balancers/monitor\_groups/{monitor\_group\_id}/references

#### Load BalancersPools

##### [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)>)

#### Load BalancersPoolsHealth

##### [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

#### Load BalancersPoolsReferences

##### [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

#### Load BalancersPreviews

##### [Preview Result](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/previews/methods/get)

client.LoadBalancers.Previews.Get(ctx, previewID, query) (\*[PreviewGetResponse](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.previews%20%3E%20(model)%20PreviewGetResponse%20%3E%20(schema)>), error)

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

#### Load BalancersRegions

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

client.LoadBalancers.Regions.List(ctx, params) (\*unknown, error)

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

##### [Get Region](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/regions/methods/get)

client.LoadBalancers.Regions.Get(ctx, regionID, query) (\*unknown, error)

GET/accounts/{account\_id}/load\_balancers/regions/{region\_id}

#### Load BalancersSearches

##### [Search Resources](https://developers.cloudflare.com/api/go/resources/load_balancers/subresources/searches/methods/list)

client.LoadBalancers.Searches.List(ctx, params) (\*V4PagePagination\[[SearchListResponse](<https://developers.cloudflare.com/api/go/resources/load_balancers#(resource)%20load_balancers.searches%20%3E%20(model)%20SearchListResponse%20%3E%20(schema)>)], error)

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