This data source provides Cloud Connect Networks available to the user.
data "alicloud_cloud_connect_networks" "default" {
ids = ["${alicloud_cloud_connect_networks.default.id}"]
name_regex = "^tf-testAcc.*"
}
resource "alicloud_cloud_connect_network" "default" {
name = "tf-testAccCloudConnectNetworkName"
description = "tf-testAccCloudConnectNetworkDescription"
cidr_block = "192.168.0.0/24"
is_default = true
}
The following arguments are supported:
ids
- (Optional) A list of CCN instances IDs.name_regex
- (Optional) A regex string to filter CCN instances by name.The following attributes are exported in addition to the arguments listed above:
ids
- A list of CCN instances IDs.names
- A list of CCN instances names. networks
- A list of CCN instances. Each element contains the following attributes:
id
- ID of the CCN instance.name
- Name of the CCN instance.cidr_block
- CidrBlock of the CCN instance.is_default
- IsDefault of the CCN instance.