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 ID of 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:

© 2018 HashiCorpLicensed under the MPL 2.0 License.