mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-14 23:17:15 +00:00
47 lines
1.0 KiB
Markdown
47 lines
1.0 KiB
Markdown
|
---
|
||
|
layout: "google"
|
||
|
page_title: "Google: google_compute_vpn_gateway"
|
||
|
sidebar_current: "docs-google-datasource-compute-vpn-gateway"
|
||
|
description: |-
|
||
|
Get a VPN gateway within GCE.
|
||
|
---
|
||
|
|
||
|
# google\_compute\_vpn\_gateway
|
||
|
|
||
|
Get a VPN gateway within GCE from its name.
|
||
|
|
||
|
## Example Usage
|
||
|
|
||
|
```tf
|
||
|
data "google_compute_vpn_gateway" "my-vpn-gateway" {
|
||
|
name = "vpn-gateway-us-east1"
|
||
|
}
|
||
|
```
|
||
|
|
||
|
## Argument Reference
|
||
|
|
||
|
The following arguments are supported:
|
||
|
|
||
|
* `name` - (Required) The name of the VPN gateway.
|
||
|
|
||
|
|
||
|
- - -
|
||
|
|
||
|
* `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
|
||
|
|
||
|
In addition to the arguments listed above, the following attributes are exported:
|
||
|
|
||
|
* `network` - The network of this VPN gateway.
|
||
|
|
||
|
* `description` - Description of this VPN gateway.
|
||
|
|
||
|
* `region` - Region of this VPN gateway.
|
||
|
|
||
|
* `self_link` - The URI of the resource.
|