github.com/andresvia/terraform@v0.6.15-0.20160412045437-d51c75946785/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 ip_address = "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 * `ip_address` - (Optional) The IP address to assign to the NIC. Changing this 33 forces a new resource to be created. 34 35 * `ipaddress` - (Optional, Deprecated) The IP address to assign to the NIC. Changing 36 this forces a new resource to be created. 37 38 * `virtual_machine` - (Required) The name or ID of the virtual machine to which 39 to attach the NIC. Changing this forces a new resource to be created. 40 41 ## Attributes Reference 42 43 The following attributes are exported: 44 45 * `id` - The ID of the NIC. 46 * `ip_address` - The assigned IP address.