github.com/armen/terraform@v0.5.2-0.20150529052519-caa8117a08f1/website/source/docs/providers/cloudstack/r/nic.html.markdown (about)

     1  ---
     2  layout: "cloudstack"
     3  page_title: "CloudStack: cloudstack_nic"
     4  sidebar_current: "docs-cloudstack-resource-nic"
     5  description: |-
     6    Creates an additional NIC to add a VM to the specified network.
     7  ---
     8  
     9  # cloudstack\_nic
    10  
    11  Creates an additional NIC to add a VM to the specified network.
    12  
    13  ## Example Usage
    14  
    15  Basic usage:
    16  
    17  ```
    18  resource "cloudstack_nic" "test" {
    19      network = "network-2"
    20      ipaddress = "192.168.1.1"
    21      virtual_machine = "server-1"
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `network` - (Required) The name or ID of the network to plug the NIC into. Changing
    30      this forces a new resource to be created.
    31  
    32  * `ipaddress` - (Optional) The IP address to assign to the NIC. Changing this
    33      forces a new resource to be created.
    34  
    35  * `virtual_machine` - (Required) The name or ID of the virtual machine to which
    36      to attach the NIC. Changing this forces a new resource to be created.
    37  
    38  ## Attributes Reference
    39  
    40  The following attributes are exported:
    41  
    42  * `id` - The ID of the NIC.
    43  * `ipaddress` - The assigned IP address.