Skip to main content

configurations

Creates, updates, deletes, gets or lists a configurations resource.

Overview

Nameconfigurations
TypeResource
Idlinode.nodebalancers.configurations

Fields

The following fields are returned by SELECT queries:

The requested NodeBalancer config.

NameDatatypeDescription

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_node_balancer_configselectReturns configuration information for a single port of this NodeBalancer.

Learn more...

Learn more...
get_node_balancer_configsselectpage, page_sizeReturns a paginated list of NodeBalancer Configs associated with this NodeBalancer. NodeBalancer Configs represent individual ports that this NodeBalancer will accept traffic on, one Config per port.

For example, if you wanted to accept standard HTTP traffic, you would need a Config listening on port 80.

Learn more...

Learn more...
post_node_balancer_configinsertdata__nodesCreates a NodeBalancer configuration, which allows the NodeBalancer to accept traffic on a new port. You will need to add NodeBalancer nodes to the new configuration before it can actually serve requests.

> 🚧
>
> You can configure UDP on the same NodeBalancer that also uses TCP, HTTP, or HTTPS, but only when managing it through the API. If UDP is configured and you make changes to the TCP, HTTP or HTTPS settings in Cloud Manager, the existing UDP configuration will be overwritten. This is because Cloud Manager doesn't currently support UDP. CLI: HTTPS.

<br /> linode-cli nodebalancers config-create 12345 \<br /> --port 443 \<br /> --protocol https \<br /> --algorithm roundrobin \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --check_passive true \<br /> --proxy_protocol "none" \<br /> --ssl_cert "-----BEGIN CERTIFICATE-----<br /> CERTIFICATE_INFORMATION<br /> -----END CERTIFICATE-----" \<br /> --ssl_key "-----BEGIN PRIVATE KEY-----<br /> PRIVATE_KEY_INFORMATION<br /> -----END PRIVATE KEY-----" \<br /> --cipher_suite recommended<br />

Learn more...

- CLI: UDP.

<br /> linode-cli nodebalancers config-create 12345 \<br /> --port 80 \<br /> --protocol udp \<br /> --algorithm ring_hash \<br /> --stickiness session \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --udp_check_port 80<br />

Learn more...

- CLI: TCP.

<br /> linode-cli nodebalancers config-create 12345 \<br /> --port 80 \<br /> --protocol tcp \<br /> --algorithm roundrobin \<br /> --stickiness none \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --proxy_protocol "v2"<br />

Learn more...

- CLI: HTTP.

<br /> linode-cli nodebalancers config-create 12345 \<br /> --port 440 \<br /> --protocol http \<br /> --algorithm roundrobin \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works"<br />

Learn more...

Learn more...
put_node_balancer_configreplaceUpdates the configuration for a single port on a NodeBalancer.

> 🚧
>
> You can configure UDP on the same NodeBalancer that also uses TCP, HTTP, or HTTPS, but only when managing it through the API. If UDP is configured and you make changes to the TCP, HTTP or HTTPS settings in Cloud Manager, the existing UDP configuration will be overwritten. This is because Cloud Manager doesn't currently support UDP. CLI: HTTPS.

<br /> linode-cli nodebalancers config-update \<br /> 12345 4567 \<br /> --port 443 \<br /> --protocol https \<br /> --algorithm roundrobin \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --check_passive true \<br /> --proxy_protocol "none" \<br /> --ssl_cert "-----BEGIN CERTIFICATE-----<br /> CERTIFICATE_INFORMATION<br /> -----END CERTIFICATE-----" \<br /> --ssl_key "-----BEGIN PRIVATE KEY-----<br /> PRIVATE_KEY_INFORMATION<br /> -----END PRIVATE KEY-----" \<br /> --cipher_suite recommended<br />

Learn more...

- CLI: UDP.

<br /> linode-cli nodebalancers config-update \<br /> 12345 4567 \<br /> --port 80 \<br /> --protocol udp \<br /> --algorithm ring_hash \<br /> --stickiness session \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --udp_check_port 80<br />

Learn more...

- CLI: TCP.

<br /> linode-cli nodebalancers config-update \<br /> 12345 4567 \<br /> --port 80 \<br /> --protocol tcp \<br /> --algorithm roundrobin \<br /> --stickiness none \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --proxy_protocol "v2"<br />

Learn more...

- CLI: HTTP.

<br /> linode-cli nodebalancers config-update \<br /> 12345 4567 \<br /> --port 440 \<br /> --protocol http \<br /> --algorithm roundrobin \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works"<br />

Learn more...

Learn more...
delete_node_balancer_configdeleteDeletes the Config for a port of this NodeBalancer.

This cannot be undone.

Once completed, this NodeBalancer will no longer respond to requests on the given port. This also deletes all associated NodeBalancerNodes, but the Linodes they were routing traffic to will be unchanged and will not be removed.

Learn more...

Learn more...
post_rebuild_node_balancer_configexecnodesRebuilds a NodeBalancer config and its nodes that you have permission to modify.

Use this operation to update a NodeBalancer's config and nodes with a single request.

> 🚧
>
> You can configure UDP on the same NodeBalancer that also uses TCP, HTTP, or HTTPS, but only when managing it through the API. If UDP is configured and you make changes to the TCP, HTTP or HTTPS settings in Cloud Manager, the existing UDP configuration will be overwritten. This is because Cloud Manager doesn't currently support UDP. CLI: HTTPS.

<br /> linode-cli nodebalancers config-rebuild \<br /> 12345 4567 \<br /> --port 443 \<br /> --protocol https \<br /> --algorithm roundrobin \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --check_passive true \<br /> --proxy_protocol "none" \<br /> --ssl_cert "-----BEGIN CERTIFICATE-----<br /> CERTIFICATE_INFORMATION<br /> -----END CERTIFICATE-----" \<br /> --ssl_key "-----BEGIN PRIVATE KEY-----<br /> PRIVATE_KEY_INFORMATION<br /> -----END PRIVATE KEY-----" \<br /> --cipher_suite recommended \<br /> --nodes.label "node1" --nodes.address "192.168.210.120:80" --nodes.mode "accept" --nodes.weight 50 \<br /> --nodes '[&#123;"address":"192.168.210.122:80","label":"node2","weight":50,"mode":"accept"&#125;]' \<br /> --nodes '[&#123;"address":"10.0.0.45:80","label":"vpc-node","weight":10,"mode":"accept","subnet_id:1"&#125;]'<br />

Learn more...

- CLI: UDP.

<br /> linode-cli nodebalancers config-rebuild \<br /> 12345 4567 \<br /> --port 80 \<br /> --protocol udp \<br /> --algorithm ring_hash \<br /> --udp_check_port 80 \<br /> --nodes.label "node1" --nodes.address "192.168.210.120:80" --nodes.mode "accept" --nodes.weight 50 \<br /> --nodes '[&#123;"address":"192.168.210.122:80","label":"node2","weight":50&#125;]' \<br /> --nodes '[&#123;"address":"10.0.0.45:80","label":"vpc-node","weight":10,"mode":"accept","subnet_id:1"&#125;]'<br />

Learn more...

- CLI: TCP.

<br /> linode-cli nodebalancers config-rebuild \<br /> 12345 4567 \<br /> --port 80 \<br /> --protocol tcp \<br /> --algorithm roundrobin \<br /> --stickiness none \<br /> --proxy_protocol "v2"<br /> --nodes.label "node1" --nodes.address "192.168.210.120:80" --nodes.mode "accept" --nodes.weight 50 \<br /> --nodes '[&#123;"address":"192.168.210.122:80","label":"node2","weight":50,"mode":"accept"&#125;]' \<br /> --nodes '[&#123;"address":"10.0.0.45:80","label":"vpc-node","weight":10,"mode":"accept","subnet_id:1"&#125;]'<br />

Learn more...

- CLI: HTTP.

<br /> linode-cli nodebalancers config-rebuild \<br /> 12345 4567 \<br /> --port 440 \<br /> --protocol http \<br /> --algorithm roundrobin \<br /> --stickiness none \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --nodes.label "node1" --nodes.address "192.168.210.120:80" --nodes.mode "accept" --nodes.weight 50 \<br /> --nodes '[&#123;"address":"192.168.210.122:80","label":"node2","weight":50,"mode":"accept"&#125;]' \<br /> --nodes '[&#123;"address":"10.0.0.45:80","label":"vpc-node","weight":10,"mode":"accept","subnet_id:1"&#125;]'<br />

Learn more...

Learn more...

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples

Returns configuration information for a single port of this NodeBalancer.

Learn more...

Learn more...

SELECT
*
FROM linode.nodebalancers.configurations;

INSERT examples

Creates a NodeBalancer configuration, which allows the NodeBalancer to accept traffic on a new port. You will need to add NodeBalancer nodes to the new configuration before it can actually serve requests.

> 🚧
>
> You can configure UDP on the same NodeBalancer that also uses TCP, HTTP, or HTTPS, but only when managing it through the API. If UDP is configured and you make changes to the TCP, HTTP or HTTPS settings in Cloud Manager, the existing UDP configuration will be overwritten. This is because Cloud Manager doesn't currently support UDP. CLI: HTTPS.

<br /> linode-cli nodebalancers config-create 12345 \<br /> --port 443 \<br /> --protocol https \<br /> --algorithm roundrobin \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --check_passive true \<br /> --proxy_protocol "none" \<br /> --ssl_cert "-----BEGIN CERTIFICATE-----<br /> CERTIFICATE_INFORMATION<br /> -----END CERTIFICATE-----" \<br /> --ssl_key "-----BEGIN PRIVATE KEY-----<br /> PRIVATE_KEY_INFORMATION<br /> -----END PRIVATE KEY-----" \<br /> --cipher_suite recommended<br />

Learn more...

- CLI: UDP.

<br /> linode-cli nodebalancers config-create 12345 \<br /> --port 80 \<br /> --protocol udp \<br /> --algorithm ring_hash \<br /> --stickiness session \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --udp_check_port 80<br />

Learn more...

- CLI: TCP.

<br /> linode-cli nodebalancers config-create 12345 \<br /> --port 80 \<br /> --protocol tcp \<br /> --algorithm roundrobin \<br /> --stickiness none \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --proxy_protocol "v2"<br />

Learn more...

- CLI: HTTP.

<br /> linode-cli nodebalancers config-create 12345 \<br /> --port 440 \<br /> --protocol http \<br /> --algorithm roundrobin \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works"<br />

Learn more...

Learn more...

INSERT INTO linode.nodebalancers.configurations (
data__nodes
)
SELECT
'{{ nodes }}' --required
;

REPLACE examples

Updates the configuration for a single port on a NodeBalancer.

> 🚧
>
> You can configure UDP on the same NodeBalancer that also uses TCP, HTTP, or HTTPS, but only when managing it through the API. If UDP is configured and you make changes to the TCP, HTTP or HTTPS settings in Cloud Manager, the existing UDP configuration will be overwritten. This is because Cloud Manager doesn't currently support UDP. CLI: HTTPS.

<br /> linode-cli nodebalancers config-update \<br /> 12345 4567 \<br /> --port 443 \<br /> --protocol https \<br /> --algorithm roundrobin \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --check_passive true \<br /> --proxy_protocol "none" \<br /> --ssl_cert "-----BEGIN CERTIFICATE-----<br /> CERTIFICATE_INFORMATION<br /> -----END CERTIFICATE-----" \<br /> --ssl_key "-----BEGIN PRIVATE KEY-----<br /> PRIVATE_KEY_INFORMATION<br /> -----END PRIVATE KEY-----" \<br /> --cipher_suite recommended<br />

Learn more...

- CLI: UDP.

<br /> linode-cli nodebalancers config-update \<br /> 12345 4567 \<br /> --port 80 \<br /> --protocol udp \<br /> --algorithm ring_hash \<br /> --stickiness session \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --udp_check_port 80<br />

Learn more...

- CLI: TCP.

<br /> linode-cli nodebalancers config-update \<br /> 12345 4567 \<br /> --port 80 \<br /> --protocol tcp \<br /> --algorithm roundrobin \<br /> --stickiness none \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --proxy_protocol "v2"<br />

Learn more...

- CLI: HTTP.

<br /> linode-cli nodebalancers config-update \<br /> 12345 4567 \<br /> --port 440 \<br /> --protocol http \<br /> --algorithm roundrobin \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works"<br />

Learn more...

Learn more...

REPLACE linode.nodebalancers.configurations
SET
-- No updatable properties
WHERE
;

DELETE examples

Deletes the Config for a port of this NodeBalancer.

This cannot be undone.

Once completed, this NodeBalancer will no longer respond to requests on the given port. This also deletes all associated NodeBalancerNodes, but the Linodes they were routing traffic to will be unchanged and will not be removed.

Learn more...

Learn more...

DELETE FROM linode.nodebalancers.configurations;

Lifecycle Methods

Rebuilds a NodeBalancer config and its nodes that you have permission to modify.

Use this operation to update a NodeBalancer's config and nodes with a single request.

> 🚧
>
> You can configure UDP on the same NodeBalancer that also uses TCP, HTTP, or HTTPS, but only when managing it through the API. If UDP is configured and you make changes to the TCP, HTTP or HTTPS settings in Cloud Manager, the existing UDP configuration will be overwritten. This is because Cloud Manager doesn't currently support UDP. CLI: HTTPS.

<br /> linode-cli nodebalancers config-rebuild \<br /> 12345 4567 \<br /> --port 443 \<br /> --protocol https \<br /> --algorithm roundrobin \<br /> --stickiness http_cookie \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --check_passive true \<br /> --proxy_protocol "none" \<br /> --ssl_cert "-----BEGIN CERTIFICATE-----<br /> CERTIFICATE_INFORMATION<br /> -----END CERTIFICATE-----" \<br /> --ssl_key "-----BEGIN PRIVATE KEY-----<br /> PRIVATE_KEY_INFORMATION<br /> -----END PRIVATE KEY-----" \<br /> --cipher_suite recommended \<br /> --nodes.label "node1" --nodes.address "192.168.210.120:80" --nodes.mode "accept" --nodes.weight 50 \<br /> --nodes '[&#123;"address":"192.168.210.122:80","label":"node2","weight":50,"mode":"accept"&#125;]' \<br /> --nodes '[&#123;"address":"10.0.0.45:80","label":"vpc-node","weight":10,"mode":"accept","subnet_id:1"&#125;]'<br />

Learn more...

- CLI: UDP.

<br /> linode-cli nodebalancers config-rebuild \<br /> 12345 4567 \<br /> --port 80 \<br /> --protocol udp \<br /> --algorithm ring_hash \<br /> --udp_check_port 80 \<br /> --nodes.label "node1" --nodes.address "192.168.210.120:80" --nodes.mode "accept" --nodes.weight 50 \<br /> --nodes '[&#123;"address":"192.168.210.122:80","label":"node2","weight":50&#125;]' \<br /> --nodes '[&#123;"address":"10.0.0.45:80","label":"vpc-node","weight":10,"mode":"accept","subnet_id:1"&#125;]'<br />

Learn more...

- CLI: TCP.

<br /> linode-cli nodebalancers config-rebuild \<br /> 12345 4567 \<br /> --port 80 \<br /> --protocol tcp \<br /> --algorithm roundrobin \<br /> --stickiness none \<br /> --proxy_protocol "v2"<br /> --nodes.label "node1" --nodes.address "192.168.210.120:80" --nodes.mode "accept" --nodes.weight 50 \<br /> --nodes '[&#123;"address":"192.168.210.122:80","label":"node2","weight":50,"mode":"accept"&#125;]' \<br /> --nodes '[&#123;"address":"10.0.0.45:80","label":"vpc-node","weight":10,"mode":"accept","subnet_id:1"&#125;]'<br />

Learn more...

- CLI: HTTP.

<br /> linode-cli nodebalancers config-rebuild \<br /> 12345 4567 \<br /> --port 440 \<br /> --protocol http \<br /> --algorithm roundrobin \<br /> --stickiness none \<br /> --check http_body \<br /> --check_interval 90 \<br /> --check_timeout 10 \<br /> --check_attempts 3 \<br /> --check_path "/test" \<br /> --check_body "it works" \<br /> --nodes.label "node1" --nodes.address "192.168.210.120:80" --nodes.mode "accept" --nodes.weight 50 \<br /> --nodes '[&#123;"address":"192.168.210.122:80","label":"node2","weight":50,"mode":"accept"&#125;]' \<br /> --nodes '[&#123;"address":"10.0.0.45:80","label":"vpc-node","weight":10,"mode":"accept","subnet_id:1"&#125;]'<br />

Learn more...

Learn more...

EXEC linode.nodebalancers.configurations.post_rebuild_node_balancer_config 
@@json=
'{
"nodes": "{{ nodes }}"
}';