github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/website/source/docs/providers/cloudstack/r/secondary_ipaddress.html.markdown (about) 1 --- 2 layout: "cloudstack" 3 page_title: "CloudStack: cloudstack_secondary_ipaddress" 4 sidebar_current: "docs-cloudstack-resource-secondary-ipaddress" 5 description: |- 6 Assigns a secondary IP to a NIC. 7 --- 8 9 # cloudstack\_secondary\_ipaddress 10 11 Assigns a secondary IP to a NIC. 12 13 ## Example Usage 14 15 ``` 16 resource "cloudstack_secondary_ipaddress" "default" { 17 virtual_machine_id = "server-1" 18 } 19 ``` 20 21 ## Argument Reference 22 23 The following arguments are supported: 24 25 * `ip_address` - (Optional) The IP address to bind the to NIC. If not supplied 26 an IP address will be selected randomly. Changing this forces a new resource 27 to be created. 28 29 * `nic_id` - (Optional) The NIC ID to which you want to attach the secondary IP 30 address. Changing this forces a new resource to be created (defaults to the 31 ID of the primary NIC) 32 33 * `virtual_machine_id` - (Required) The ID of the virtual machine to which you 34 want to attach the secondary IP address. Changing this forces a new resource 35 to be created. 36 37 ## Attributes Reference 38 39 The following attributes are exported: 40 41 * `id` - The secondary IP address ID.