Skip to content

Commit ed0a84f

Browse files
ortamanrosbo
authored andcommitted
Added GCP Netblock Data Source (hashicorp#1416) (hashicorp#1580)
* Added GCP Netblock Data Source (hashicorp#1416) * Added docs for google_netblock_ip_ranges (hashicorp#1416) * Code review changes (hashicorp#1416)
1 parent feda2fd commit ed0a84f

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: "google"
3+
page_title: "Google: google_netblock_ip_ranges"
4+
sidebar_current: "docs-google-datasource-netblock-ip-ranges"
5+
description: |-
6+
Use this data source to get the IP ranges from the sender policy framework (SPF) record of \_cloud-netblocks.googleusercontent.com
7+
---
8+
9+
# google_netblock_ip_ranges
10+
11+
Use this data source to get the IP ranges from the sender policy framework (SPF) record of \_cloud-netblocks.googleusercontent
12+
13+
https://cloud.google.com/compute/docs/faq#where_can_i_find_product_name_short_ip_ranges
14+
15+
## Example Usage
16+
17+
```tf
18+
data "google_netblock_ip_ranges" "netblock" {}
19+
20+
output "cidr_blocks" {
21+
value = "${data.google_netblock_ip_ranges.netblock.cidr_blocks}"
22+
}
23+
24+
output "cidr_blocks_ipv4" {
25+
value = "${data.google_netblock_ip_ranges.netblock.cidr_blocks_ipv4}"
26+
}
27+
28+
output "cidr_blocks_ipv6" {
29+
value = "${data.google_netblock_ip_ranges.netblock.cidr_blocks_ipv6}"
30+
}
31+
```
32+
33+
## Attributes Reference
34+
35+
* `cidr_blocks` - Retrieve list of all CIDR blocks.
36+
37+
* `cidr_blocks_ipv4` - Retrieve list of the IP4 CIDR blocks
38+
39+
* `cidr_blocks_ipv6` - Retrieve list of the IP6 CIDR blocks.

google.erb

+3
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@
9191
<li<%= sidebar_current("docs-google-kms-secret") %>>
9292
<a href="/docs/providers/google/d/google_kms_secret.html">google_kms_secret</a>
9393
</li>
94+
<li<%= sidebar_current("docs-google-datasource-netblock-ip-ranges") %>>
95+
<a href="/docs/providers/google/d/datasource_google_netblock_ip_ranges.html">google_netblock_ip_ranges</a>
96+
</li>
9497
<li<%= sidebar_current("docs-google-datasource-organization") %>>
9598
<a href="/docs/providers/google/d/google_organization.html">google_organization</a>
9699
</li>

0 commit comments

Comments
 (0)