Skip to content

Commit d9c5fef

Browse files
jphalipnat-henderson
authored andcommitted
Add VPN gateway data source (hashicorp#1071)
1 parent 0926295 commit d9c5fef

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

Diff for: docs/d/datasource_compute_vpn_gateway.html.markdown

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
layout: "google"
3+
page_title: "Google: google_compute_vpn_gateway"
4+
sidebar_current: "docs-google-datasource-compute-vpn-gateway"
5+
description: |-
6+
Get a VPN gateway within GCE.
7+
---
8+
9+
# google\_compute\_vpn\_gateway
10+
11+
Get a VPN gateway within GCE from its name.
12+
13+
## Example Usage
14+
15+
```tf
16+
data "google_compute_vpn_gateway" "my-vpn-gateway" {
17+
name = "vpn-gateway-us-east1"
18+
}
19+
```
20+
21+
## Argument Reference
22+
23+
The following arguments are supported:
24+
25+
* `name` - (Required) The name of the VPN gateway.
26+
27+
28+
- - -
29+
30+
* `project` - (Optional) The project in which the resource belongs. If it
31+
is not provided, the provider project is used.
32+
33+
* `region` - (Optional) The region in which the resource belongs. If it
34+
is not provided, the project region is used.
35+
36+
## Attributes Reference
37+
38+
In addition to the arguments listed above, the following attributes are exported:
39+
40+
* `network` - The network of this VPN gateway.
41+
42+
* `description` - Description of this VPN gateway.
43+
44+
* `region` - Region of this VPN gateway.
45+
46+
* `self_link` - The URI of the resource.

Diff for: google.erb

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
<li<%= sidebar_current("docs-google-datasource-compute-subnetwork") %>>
3838
<a href="/docs/providers/google/d/datasource_compute_subnetwork.html">google_compute_subnetwork</a>
3939
</li>
40+
<li<%= sidebar_current("docs-google-datasource-compute-vpn-gateway") %>>
41+
<a href="/docs/providers/google/d/datasource_compute_vpn_gateway.html">google_compute_vpn_gateway</a>
42+
</li>
4043
<li<%= sidebar_current("docs-google-datasource-compute-zones") %>>
4144
<a href="/docs/providers/google/d/google_compute_zones.html">google_compute_zones</a>
4245
</li>

0 commit comments

Comments
 (0)