github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/vcd/r/network.html.markdown (about)

     1  ---
     2  layout: "vcd"
     3  page_title: "vCloudDirector: vcd_network"
     4  sidebar_current: "docs-vcd-resource-network"
     5  description: |-
     6    Provides a vCloud Director VDC Network. This can be used to create, modify, and delete internal networks for vApps to connect.
     7  ---
     8  
     9  # vcd\_network
    10  
    11  Provides a vCloud Director VDC Network. This can be used to create,
    12  modify, and delete internal networks for vApps to connect.
    13  
    14  ## Example Usage
    15  
    16  ```hcl
    17  resource "vcd_network" "net" {
    18    name         = "my-net"
    19    edge_gateway = "Edge Gateway Name"
    20    gateway      = "10.10.0.1"
    21  
    22    dhcp_pool {
    23      start_address = "10.10.0.2"
    24      end_address   = "10.10.0.100"
    25    }
    26  
    27    static_ip_pool {
    28      start_address = "10.10.0.152"
    29      end_address   = "10.10.0.254"
    30    }
    31  }
    32  ```
    33  
    34  ## Argument Reference
    35  
    36  The following arguments are supported:
    37  
    38  * `name` - (Required) A unique name for the network
    39  * `edge_gateway` - (Required) The name of the edge gateway
    40  * `netmask` - (Optional) The netmask for the new network. Defaults to `255.255.255.0`
    41  * `gateway` (Required) The gateway for this network
    42  * `dns1` - (Optional) First DNS server to use. Defaults to `8.8.8.8`
    43  * `dns2` - (Optional) Second DNS server to use. Defaults to `8.8.4.4`
    44  * `dns_suffix` - (Optional) A FQDN for the virtual machines on this network
    45  * `dhcp_pool` - (Optional) A range of IPs to issue to virtual machines that don't
    46    have a static IP; see [IP Pools](#ip-pools) below for details.
    47  * `static_ip_pool` - (Optional) A range of IPs permitted to be used as static IPs for
    48    virtual machines; see [IP Pools](#ip-pools) below for details.
    49  
    50  <a id="ip-pools"></a>
    51  ## IP Pools
    52  
    53  Network interfaces support the following attributes:
    54  
    55  * `start_address` - (Required) The first address in the IP Range
    56  * `end_address` - (Required) The final address in the IP Range