account or zone Load Balancer Details·续1

status_code: optional number

The http status code to respond with.

<a href="#(resource)%20load_balancers%20%3E%20(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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: optional object {default, topology }

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: optional boolean

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

<a href="#(resource)%20load_balancers%20%3E%20(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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: optional object {countries, pops, regions }

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: optional array of string

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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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: optional array of string

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

<a href="#(resource)%20load_balancers%20%3E%20(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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: optional array of string

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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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: optional string

A human-readable name for this pool set.

maxLength200

<a href="#(resource)%20load_balancers%20%3E%20(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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: optional object {fallback_pool, pool_default_weight, pool_weights, 2 more }

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>

fallback_pool: optional string

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

<a href="#(resource)%20load_balancers%20%3E%20(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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>

pool_default_weight: optional number

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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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>

pool_weights: optional map[number]

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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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: optional array of string

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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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>

<details>

<summary>

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

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:

"off"

<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%20%2B%20(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"geo"

<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%20%2B%20(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"random"

<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%20%2B%20(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"dynamic_latency"

<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%20%2B%20(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"proximity"

<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%20%2B%20(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"least_outstanding_requests"

<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%20%2B%20(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

"least_connections"

<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%20%2B%20(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

""

<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%20%2B%20(resource)%20load_balancers%20%3E%20(model)%20steering_policy%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

</details>

<a href="#(resource)%20load_balancers%20%3E%20(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20load_balancers%20%3E%20(model)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20pool_sets">Link to this property</a>

pop_pools: optional map[array of string]

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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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: optional boolean

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

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

<details>

<summary>

random_steering: optional <a href="https://developers.cloudflare.com/api/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20random_steering%20%3E%20(schema)">RandomSteering</a> { default_weight, pool_weights }

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>

default_weight: optional number

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)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20random_steering%20%2B%20(resource)%20load_balancers%20%3E%20(model)%20random_steering%20%3E%20(schema)%20%3E%20(property)%20default_weight">Link to this property</a>

pool_weights: optional map[number]

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)%20load_balancer%20%3E%20(schema)%20%3E%20(property)%20random_steering%20%2B%20(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>

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

region_pools: optional map[array of string]

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(method)%20get%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(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: optional array of <a href="https://developers.cloudflare.com/api/resources/load_balancers#(resource)%20load_balancers%20%3E%20(model)%20rules%20%3E%20(schema)">Rules</a> { condition, disabled, fixed_response, 4 more }

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

</summary>

condition: optional string

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