github.com/xsb/terraform@v0.6.13-0.20160314145438-fe415c2f09d7/website/source/docs/providers/google/r/compute_subnetwork.html.markdown (about)

     1  ---
     2  layout: "google"
     3  page_title: "Google: google_compute_subnetwork"
     4  sidebar_current: "docs-google-compute-subnetwork"
     5  description: |-
     6    Manages a subnetwork within GCE.
     7  ---
     8  
     9  # google\_compute\_subnetwork
    10  
    11  Manages a subnetwork within GCE.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "google_compute_subnetwork" "default-us-east1" {
    17  	name = "default-us-east1"
    18  	ip_cidr_range = "10.0.0.0/16"
    19  	network = "${google_compute_network.default.self_link}"
    20  	region = "us-east1"
    21  }
    22  ```
    23  
    24  ## Argument Reference
    25  
    26  The following arguments are supported:
    27  
    28  * `name` - (Required) A unique name for the resource, required by GCE.
    29      Changing this forces a new resource to be created.
    30  
    31  * `network` - (Required) A link to the parent network of this subnetwork.
    32       The parent network must have been created in custom subnet mode.
    33  
    34  * `ip_cidr_range` - (Required) The IP address range that machines in this
    35       network are assigned to, represented as a CIDR block.
    36       
    37  * `region` - (Required) The region this subnetwork will be created in. 
    38  
    39  * `description` - (Optional) Description of this subnetwork.
    40  
    41  ## Attributes Reference
    42  
    43  The following attributes are exported:
    44  
    45  * `name` - The name of the resource.
    46  * `ip_cidr_range` - The CIDR block of this network.
    47  * `gateway_address` - The IP address of the gateway.