alicloud_eflo_subnets
更新时间:
This data source provides Eflo Subnet available to the user.What is Subnet
-> NOTE: Available in 1.204.0+
Example Usage
data "alicloud_eflo_subnets" "default" {
name_regex = alicloud_eflo_subnet.default.name
subnet_name = "SubnetTestForTerraform"
vpd_id = var.vpdId
zone_id = var.zoneId
}
output "alicloud_eflo_subnet_example_id" {
value = data.alicloud_eflo_subnets.default.subnets.0.id
}
Argument Reference
The following arguments are supported:
resource_group_id- (ForceNew,Optional) Resource Group ID.status- (ForceNew,Optional) The status of the resource.subnet_id- (ForceNew,Optional) Primary key ID.subnet_name- (ForceNew,Optional) The Subnet name.type- (ForceNew,Optional) Eflo subnet usage type, optional value:- General type is not filled in
- OOB:OOB type
- LB: LB type
vpd_id- (ForceNew,Optional) The Eflo VPD ID.zone_id- (ForceNew,Optional) The zone ID of the resource.name_regex- (Optional, ForceNew) A regex string to filter results by Group Metric Rule name.output_file- (Optional) File name where to save data source results (after runningterraform plan).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
names- A list of name of Subnets.subnets- A list of Subnet Entries. Each element contains the following attributes:cidr- Network segmentcreate_time- The creation time of the resourcegmt_modified- Modification timemessage- Error messageresource_group_id- Resource Group ID.status- The status of the resource.subnet_id- The Eflo subnet ID.subnet_name- The Subnet name.type- Eflo subnet usage type.vpd_id- Eflo VPD ID.id- The ID of the resource.zone_id- The zone ID of the resource.
该文章对您有帮助吗?