alicloud_vpc_ipv4_gateways

This data source provides the Vpc Ipv4 Gateways of the current Alibaba Cloud user.

Example Usage

Basic Usage

data "alicloud_vpc_ipv4_gateways" "ids" {}
output "vpc_ipv4_gateway_id_1" {
  value = data.alicloud_vpc_ipv4_gateways.ids.gateways.0.id
}

data "alicloud_vpc_ipv4_gateways" "nameRegex" {
  name_regex = "^my-Ipv4Gateway"
}
output "vpc_ipv4_gateway_id_2" {
  value = data.alicloud_vpc_ipv4_gateways.nameRegex.gateways.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

The following attributes are exported in addition to the arguments listed above: