Create, read, and update a Linode VPC.
| Field |
Type |
Required |
Description |
api_token |
str |
Required |
The Linode account personal access token. It is necessary to run the module. It can be exposed by the environment variable LINODE_API_TOKEN instead. See details in Usage. |
- name: Create a VPC
linode.cloud.vpc:
label: my-vpc
region: us-east
description: A description of this VPC.
state: present
# NOTE: IPv6 VPCs may not currently be available to all users.
- name: Create a VPC with an auto-allocated IPv6 range
linode.cloud.vpc:
label: my-vpc
region: us-east
ipv6:
- range: auto
state: present
# NOTE: IPv4 VPCs may not currently be available to all users.
- name: Create a VPC with an IPv4 range
linode.cloud.vpc:
label: my-vpc
region: us-east
ipv4:
- range: 10.1.0.0/16
state: present
- name: Delete a VPC
linode.cloud.vpc:
label: my-vpc
state: absent
| Field |
Type |
Required |
Description |
label |
str |
Required |
This VPC's unique label. |
state |
str |
Required |
The state of this token. (Choices: present, absent) |
description |
str |
Optional |
A description describing this VPC. |
region |
str |
Optional |
The region this VPC is located in. |
ipv6 (sub-options) |
list |
Optional |
A list of IPv6 ranges in CIDR notation. NOTE: IPv6 VPCs may not currently be available to all users. |
ipv4 (sub-options) |
list |
Optional |
A list of IPv4 ranges in CIDR notation. NOTE: IPv4 VPCs may not currently be available to all users. |
| Field |
Type |
Required |
Description |
range |
str |
Optional |
The IPv6 range assigned to this VPC. |
allocation_class |
str |
Optional |
The labeled IPv6 Inventory that the VPC Prefix should be allocated from. |
| Field |
Type |
Required |
Description |
range |
str |
Optional |
The IPv4 range assigned to this VPC. |