Skip to content

Commit 79d2636

Browse files
author
josemanuelt
committed
Added docs for google_netblock_ip_ranges (hashicorp#1416)
1 parent 53ebfc9 commit 79d2636

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_ip4" {
25+
value = "${data.google_netblock_ip_ranges.netblock.cidr_blocks_ip4}"
26+
}
27+
28+
output "cidr_blocks_ip6" {
29+
value = "${data.google_netblock_ip_ranges.netblock.cidr_blocks_ip6}"
30+
}
31+
```
32+
33+
## Attributes Reference
34+
35+
* `cidr_blocks` - Retrieve list of all CIDR blocks.
36+
37+
* `cidr_blocks_ip4` - Retrieve list of the IP4 CIDR blocks
38+
39+
* `cidr_blocks_ip6` - Retrieve list of the IP6 CIDR blocks.

website/google.erb

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

0 commit comments

Comments
 (0)