github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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  ```hcl
    18  resource "cloudstack_nic" "test" {
    19    network_id         = "6eb22f91-7454-4107-89f4-36afcdf33021"
    20    ip_address         = "192.168.1.1"
    21    virtual_machine_id = "f8141e2f-4e7e-4c63-9362-986c908b7ea7"
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `network_id` - (Required) The ID of the network to plug the NIC into. Changing
    30      this forces a new resource to be created.
    31  
    32  * `ip_address` - (Optional) The IP address to assign to the NIC. Changing this
    33      forces a new resource to be created.
    34  
    35  * `virtual_machine_id` - (Required) The ID of the virtual machine to which to
    36      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  * `ip_address` - The assigned IP address.