github.com/mikesimons/terraform@v0.6.13-0.20160304043642-f11448c69214/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. This attribute 33 may not be used if `auto_create_subnets` is specified. 34 35 * `auto_create_subnetworks` - (Optional) If set to true, this network 36 will be created in auto subnet mode, and Google will create a 37 subnet for each region automatically. 38 If set to false, and `ipv4_range` is not set, a custom subnetted 39 network will be created that can support `google_compute_subnetwork` 40 resources. This attribute may not be used if `ipv4_range` is specified. 41 42 ## Attributes Reference 43 44 The following attributes are exported: 45 46 * `name` - The name of the resource. 47 * `ipv4_range` - The CIDR block of this network. 48 * `gateway_ipv4` - The IPv4 address of the gateway.