github.com/joshgarnett/terraform@v0.5.4-0.20160219181435-92dc20bb3594/website/source/docs/providers/google/r/compute_network.html.markdown (about) 1 --- 2 layout: "google" 3 page_title: "Google: google_compute_network" 4 sidebar_current: "docs-google-compute-network" 5 description: |- 6 Manages a network within GCE. 7 --- 8 9 # google\_compute\_network 10 11 Manages a network within GCE. 12 13 ## Example Usage 14 15 ``` 16 resource "google_compute_network" "default" { 17 name = "test" 18 ipv4_range = "10.0.0.0/16" 19 } 20 ``` 21 22 ## Argument Reference 23 24 The following arguments are supported: 25 26 * `name` - (Required) A unique name for the resource, required by GCE. 27 Changing this forces a new resource to be created. 28 29 * `ipv4_range` - (Optional) The IPv4 address range that machines in this 30 network are assigned to, represented as a CIDR block. If not 31 set, an auto or custom subnetted network will be created, depending 32 on the value of `auto_create_subnetworks` attribute. 33 34 * `auto_create_subnetworks` - (Optional) If set to true, this network 35 will be created in auto subnet mode, and Google will create a 36 subnet for each region automatically. 37 If set to false, and `ipv4_range` is not set, a custom subnetted 38 network will be created that can support `google_compute_subnetwork` 39 resources. 40 41 ## Attributes Reference 42 43 The following attributes are exported: 44 45 * `name` - The name of the resource. 46 * `ipv4_range` - The CIDR block of this network. 47 * `gateway_ipv4` - The IPv4 address of the gateway.