github.com/andresvia/terraform@v0.6.15-0.20160412045437-d51c75946785/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 = "server-1" 18 } 19 ``` 20 21 ## Argument Reference 22 23 The following arguments are supported: 24 25 * `ip_address` - (Optional) The IP address to attach 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 * `ipaddress` - (Optional, Deprecated) The IP address to attach the to NIC. If 30 not supplied an IP address will be selected randomly. Changing this forces 31 a new resource to be created. 32 33 * `nicid` - (Optional) The ID of the NIC to which you want to attach the 34 secondary IP address. Changing this forces a new resource to be 35 created (defaults to the ID of the primary NIC) 36 37 * `virtual_machine` - (Required) The name or ID of the virtual machine to which 38 you want to attach the secondary IP address. Changing this forces a new 39 resource to be created. 40 41 ## Attributes Reference 42 43 The following attributes are exported: 44 45 * `id` - The secondary IP address ID.