Retrieves information about a Vultr Virtual Private Cloud (VPC) using filters like description.
Get information about a Vultr VPC.
Get the information for a VPC by description
:
data "vultr_vpc" "my_vpc" {
filter {
name = "description"
values = ["my-vpc-description"]
}
}
The following arguments are supported:
filter
- (Required) Query parameters for finding VPCs.The filter
block supports the following:
name
- Attribute name to filter with.values
- One or more values filter with.The following attributes are exported:
region
- The ID of the region that the VPC is in.v4_subnet
- The IPv4 network address. For example: 10.1.1.0.v4_subnet_mask
- The number of bits for the netmask in CIDR notation. Example: 20description
- The VPC's description.date_created
- The date the VPC was added to your Vultr account.
No comments yet.