github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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  ```hcl
    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) The network name or resource link to the parent
    35      network of this subnetwork. The parent network must have been created
    36      in custom subnet mode.
    37  
    38  - - -
    39  
    40  * `description` - (Optional) Description of this subnetwork.
    41  
    42  * `project` - (Optional) The project in which the resource belongs. If it
    43      is not provided, the provider project is used.
    44  
    45  * `region` - (Optional) The region this subnetwork will be created in. If
    46      unspecified, this defaults to the region configured in the provider.
    47  
    48  ## Attributes Reference
    49  
    50  In addition to the arguments listed above, the following computed attributes are
    51  exported:
    52  
    53  * `gateway_address` - The IP address of the gateway.
    54  
    55  * `self_link` - The URI of the created resource.