| --- |
| subcategory: "Compute Engine" |
| description: |- |
| Get a HA VPN Gateway within GCE. |
| --- |
| |
| # google\_compute\_forwarding\_rule |
| |
| Get a HA VPN Gateway within GCE from its name. |
| |
| ## Example Usage |
| |
| ```tf |
| data "google_compute_ha_vpn_gateway" "gateway" { |
| name = "foobar" |
| } |
| ``` |
| |
| ## Argument Reference |
| |
| The following arguments are supported: |
| |
| * `name` - (Required) The name of the forwarding rule. |
| |
| |
| - - - |
| |
| * `project` - (Optional) The project in which the resource belongs. If it |
| is not provided, the provider project is used. |
| |
| * `region` - (Optional) The region in which the resource belongs. If it |
| is not provided, the project region is used. |
| |
| ## Attributes Reference |
| See [google_compute_ha_vpn_gateway](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_ha_vpn_gateway) resource for details of the available attributes. |