vpc_configs
Creates, updates, deletes, gets or lists a vpc_configs
resource.
Overview
Name | vpc_configs |
Type | Resource |
Id | linode.nodebalancers.vpc_configs |
Fields
The following fields are returned by SELECT
queries:
- get_node_balancer_vpc_config
- get_node_balancer_vpcs
The requested NodeBalancer VPC configuration.
Name | Datatype | Description |
---|---|---|
id | integer | Read-only Identifies the VPC configuration for this NodeBalancer. |
nodebalancer_id | integer | Read-only Identifies the NodeBalancer. |
subnet_id | integer | The VPC's subnet. Run the List VPCs operation provides data for your VPCs and their subnets. |
vpc_id | integer | Read-only The id of the VPC configured for this NodeBalancer. |
ipv4_range | string | A 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_assign | boolean | Enables 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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_node_balancer_vpc_config | select | Returns a single VPC configuration for the NodeBalancer ID. Learn more... Learn more... | ||
get_node_balancer_vpcs | select | page , page_size | Returns 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.
Name | Datatype | Description |
---|---|---|
page | integer | The page of a collection to return. |
page_size | integer | The number of items to return per page. |
SELECT
examples
- get_node_balancer_vpc_config
- get_node_balancer_vpcs
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;
Returns a paginated list of VPC configurations for the NodeBalancer.
Learn more...
Learn more...
SELECT
data,
page,
pages,
results
FROM linode.nodebalancers.vpc_configs
WHERE page = '{{ page }}'
AND page_size = '{{ page_size }}';