layout | page_title | sidebar_current | description |
---|---|---|---|
cloudstack |
Cloudstack: cloudstack_vpc |
docs-cloudstack-cloudstack_vpc |
Gets information about cloudstack vpc. |
Use this datasource to get information about a vpc for use in other resources.
data "cloudstack_vpc" "vpc-data-source"{
filter{
name = "name"
value= "test-vpc"
}
filter{
name = "cidr"
value= "10.0.0.0/16"
}
filter
- (Required) One or more name/value pairs to filter off of. You can apply filters on any exported attributes.
The following attributes are exported:
name
- The name of the VPC.display_text
- An alternate display text of the VPC.cidr
- The cidr the VPC.vpc_offering_name
- Vpc offering name the VPC is created from.network_domain
- The network domain of the VPC.project
- The project name of the VPC.zone_name
- The name of the zone the VPC belongs to.