Skip to content

Commit

Permalink
Added GCP Netblock Data Source (hashicorp#1416) (hashicorp#1580)
Browse files Browse the repository at this point in the history
* Added GCP Netblock Data Source (hashicorp#1416)

* Added docs for google_netblock_ip_ranges (hashicorp#1416)

* Code review changes (hashicorp#1416)
  • Loading branch information
ortaman authored and rosbo committed Jun 4, 2018
1 parent feda2fd commit ed0a84f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/d/datasource_google_netblock_ip_ranges.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
layout: "google"
page_title: "Google: google_netblock_ip_ranges"
sidebar_current: "docs-google-datasource-netblock-ip-ranges"
description: |-
Use this data source to get the IP ranges from the sender policy framework (SPF) record of \_cloud-netblocks.googleusercontent.com
---

# google_netblock_ip_ranges

Use this data source to get the IP ranges from the sender policy framework (SPF) record of \_cloud-netblocks.googleusercontent

https://cloud.google.com/compute/docs/faq#where_can_i_find_product_name_short_ip_ranges

## Example Usage

```tf
data "google_netblock_ip_ranges" "netblock" {}
output "cidr_blocks" {
value = "${data.google_netblock_ip_ranges.netblock.cidr_blocks}"
}
output "cidr_blocks_ipv4" {
value = "${data.google_netblock_ip_ranges.netblock.cidr_blocks_ipv4}"
}
output "cidr_blocks_ipv6" {
value = "${data.google_netblock_ip_ranges.netblock.cidr_blocks_ipv6}"
}
```

## Attributes Reference

* `cidr_blocks` - Retrieve list of all CIDR blocks.

* `cidr_blocks_ipv4` - Retrieve list of the IP4 CIDR blocks

* `cidr_blocks_ipv6` - Retrieve list of the IP6 CIDR blocks.
3 changes: 3 additions & 0 deletions google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
<li<%= sidebar_current("docs-google-kms-secret") %>>
<a href="/docs/providers/google/d/google_kms_secret.html">google_kms_secret</a>
</li>
<li<%= sidebar_current("docs-google-datasource-netblock-ip-ranges") %>>
<a href="/docs/providers/google/d/datasource_google_netblock_ip_ranges.html">google_netblock_ip_ranges</a>
</li>
<li<%= sidebar_current("docs-google-datasource-organization") %>>
<a href="/docs/providers/google/d/google_organization.html">google_organization</a>
</li>
Expand Down

0 comments on commit ed0a84f

Please sign in to comment.