» ucloud_vpcs
This data source provides a list of VPC resources according to their VPC ID, name.
» Example Usage
data "ucloud_vpcs" "example" {
}
output "first" {
value = "${data.ucloud_vpcs.example.vpcs.0.id}"
}
» Argument Reference
The following arguments are supported:
-
ids- (Optional) A list of VPC IDs, all the VPC resources belong to this region will be retrieved if the ID is"". -
name_regex- (Optional) A regex string to filter resulting VPC resources by name. -
output_file- (Optional) File name where to save data source results (after runningterraform plan).
» Attributes Reference
In addition to all arguments above, the following attributes are exported:
-
vpcs- It is a nested type which documented below. -
total_count- Total number of VPC resources that satisfy the condition.
The attribute (vpcs) support the following:
-
id- The ID of VPC. -
name- The name of VPC. -
cidr_blocks- The CIDR blocks of VPC. -
tag- A tag assigned to VPC. -
create_time- The time of creation for VPC, formatted in RFC3339 time string. -
update_time- The time whenever there is a change made to VPC, formatted in RFC3339 time string.