Skip to main content

vpc_configs

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

Overview

Namevpc_configs
TypeResource
Idlinode.nodebalancers.vpc_configs

Fields

The following fields are returned by SELECT queries:

The requested NodeBalancer VPC configuration.

NameDatatypeDescription
idintegerRead-only Identifies the VPC configuration for this NodeBalancer.
nodebalancer_idintegerRead-only Identifies the NodeBalancer.
subnet_idintegerThe VPC's subnet. Run the List VPCs operation provides data for your VPCs and their subnets.
vpc_idintegerRead-only The id of the VPC configured for this NodeBalancer.
ipv4_rangestringA CIDR range for the VPC's IPv4 addresses. The NodeBalancer sources IP addresses from this range when routing traffic to the backend VPC nodes. (example: 10.100.5.100/30)
ipv4_range_auto_assignbooleanEnables the use of a larger ipv4_range subnet for multiple NodeBalancers within the same VPC by allocating smaller /30 subnets for each NodeBalancer's backends. - When set to true, the system automatically allocates the smallest possible subnet (/30) from the provided ipv4_range for the NodeBalancer's backend interface. If the specified range doesn't have enough available IPs to allocate a /30 subnet, the creation fails. - When set to false, the NodeBalancer is created using the entire ipv4_range as specified, without attempting to allocate a /30 subnet.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_node_balancer_vpc_configselectReturns a single VPC configuration for the NodeBalancer ID.

Learn more...

Learn more...
get_node_balancer_vpcsselectpage, page_sizeReturns a paginated list of VPC configurations for the NodeBalancer.

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 a single VPC configuration for the NodeBalancer ID.

Learn more...

Learn more...

SELECT
id,
nodebalancer_id,
subnet_id,
vpc_id,
ipv4_range,
ipv4_range_auto_assign
FROM linode.nodebalancers.vpc_configs;