github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/google/d/datasource_compute_subnetwork.html.markdown (about) 1 --- 2 layout: "google" 3 page_title: "Google: google_compute_subnetwork" 4 sidebar_current: "docs-google-datasource-compute-subnetwork" 5 description: |- 6 Get a subnetwork within GCE. 7 --- 8 9 # google\_compute\_subnetwork 10 11 Get a subnetwork within GCE from its name and region. 12 13 ## Example Usage 14 15 ```tf 16 data "google_compute_subnetwork" "my-subnetwork" { 17 name = "default-us-east1" 18 region = "us-east1" 19 } 20 ``` 21 22 ## Argument Reference 23 24 The following arguments are supported: 25 26 * `name` - The name of the subnetwork. 27 28 - - - 29 30 * `project` - (Optional) The project in which the resource belongs. If it 31 is not provided, the provider project is used. 32 33 * `region` - (Optional) The region this subnetwork has been created in. If 34 unspecified, this defaults to the region configured in the provider. 35 36 ## Attributes Reference 37 38 In addition to the arguments listed above, the following attributes are exported: 39 40 * `network` - The network name or resource link to the parent 41 network of this subnetwork. 42 43 * `description` - Description of this subnetwork. 44 45 * `ip_cidr_range` - The IP address range that machines in this 46 network are assigned to, represented as a CIDR block. 47 48 * `gateway_address` - The IP address of the gateway. 49 50 * `self_link` - The URI of the created resource.