github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/google/d/datasource_compute_network.html.markdown (about)

     1  ---
     2  layout: "google"
     3  page_title: "Google: google_compute_network"
     4  sidebar_current: "docs-google-datasource-compute-network"
     5  description: |-
     6    Get a network within GCE.
     7  ---
     8  
     9  # google\_compute\_network
    10  
    11  Get a network within GCE from its name.
    12  
    13  ## Example Usage
    14  
    15  ```tf
    16  data "google_compute_network" "my-network" {
    17    name = "default-us-east1"
    18  }
    19  ```
    20  
    21  ## Argument Reference
    22  
    23  The following arguments are supported:
    24  
    25  * `name` - (Required) The name of the network.
    26      
    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  ## Attributes Reference
    34  
    35  In addition to the arguments listed above, the following attributes are exported:
    36  
    37  * `network` - The network name or resource link to the parent
    38      network of this network. 
    39  
    40  * `description` - Description of this network.
    41  
    42  * `gateway_ipv4` - The IP address of the gateway.
    43  
    44  * `subnetworks_self_links` - the list of subnetworks which belong to the network
    45  
    46  * `self_link` - The URI of the resource.