| --- | |
| subcategory: "Compute Engine" | |
| description: |- | |
| Get a network within GCE. | |
| --- | |
| # google_compute_network | |
| Get a network within GCE from its name. | |
| ## Example Usage | |
| ```tf | |
| 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: | |
| * `id` - an identifier for the resource with format projects/{{project}}/global/networks/{{name}} | |
| * `description` - Description of this network. | |
| * `gateway_ipv4` - The IP address of the gateway. | |
| * `internal_ipv6_range` - The ula internal ipv6 range assigned to this network. | |
| * `subnetworks_self_links` - the list of subnetworks which belong to the network | |
| * `self_link` - The URI of the resource. |