github.com/adrian-bl/terraform@v0.7.0-rc2.0.20160705220747-de0a34fc3517/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  ```js
    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  * `ip_cidr_range` - (Required) The IP address range that machines in this
    29      network are assigned to, represented as a CIDR block.
    30  
    31  * `name` - (Required) A unique name for the resource, required by GCE.
    32      Changing this forces a new resource to be created.
    33  
    34  * `network` - (Required) A link to the parent network of this subnetwork.
    35      The parent network must have been created in custom subnet mode.
    36  
    37  - - -
    38  
    39  * `description` - (Optional) Description of this subnetwork.
    40  
    41  * `project` - (Optional) The project in which the resource belongs. If it
    42      is not provided, the provider project is used.
    43  
    44  * `region` - (Optional) The region this subnetwork will be created in. If
    45      unspecified, this defaults to the region configured in the provider.
    46  
    47  ## Attributes Reference
    48  
    49  In addition to the arguments listed above, the following computed attributes are
    50  exported:
    51  
    52  * `gateway_address` - The IP address of the gateway.
    53  
    54  * `self_link` - The URI of the created resource.