mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-07 03:01:06 +00:00
2e6c5779d4
* first version of this datasource * add network and subnetwork datasource and documentation * modify sidebar reference in documentation * fix elements after review on network and subnetwork datasources * fix fmt on Google provider.go * modify code with the review * modify documentation layout order * fix alphabetic order in provider.go * fix rebase issue and documentation datasource => data
1018 B
1018 B
layout | page_title | sidebar_current | description |
---|---|---|---|
Google: google_compute_network | docs-google-datasource-compute-network | Get a network within GCE. |
google_compute_network
Get a network within GCE from its name.
Example Usage
data "google_compute_network" "my-network" {
name = "default-us-east1"
}
Argument Reference
The following arguments are supported:
name
- (Required) The name of the network.
project
- (Optional) The project in which the resource belongs. If it is not provided, the provider project is used.
Attributes Reference
In addition to the arguments listed above, the following attributes are exported:
-
network
- The network name or resource link to the parent network of this network. -
description
- Description of this network. -
gateway_ipv4
- The IP address of the gateway. -
subnetworks_self_links
- the list of subnetworks which belong to the network -
self_link
- The URI of the resource.