github.com/jrasell/terraform@v0.6.17-0.20160523115548-2652f5232949/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_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 * `network` - (Required, Deprecated) The name or ID of the network to plug the 33 NIC into. Changing this forces a new resource to be created. 34 35 * `ip_address` - (Optional) The IP address to assign to the NIC. Changing this 36 forces a new resource to be created. 37 38 * `ipaddress` - (Optional, Deprecated) The IP address to assign to the NIC. 39 Changing this forces a new resource to be created. 40 41 * `virtual_machine_id` - (Required) The ID of the virtual machine to which to 42 attach the NIC. Changing this forces a new resource to be created. 43 44 * `virtual_machine` - (Required, Deprecated) The name or ID of the virtual 45 machine to which to attach the NIC. Changing this forces a new resource to 46 be created. 47 48 ## Attributes Reference 49 50 The following attributes are exported: 51 52 * `id` - The ID of the NIC. 53 * `ip_address` - The assigned IP address.