github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/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 * `ipaddress` - (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 * `nicid` - (Optional) The ID of the NIC to which you want to attach the 30 secondary IP address. Changing this forces a new resource to be 31 created (defaults to the ID of the primary NIC) 32 33 * `virtual_machine` - (Required) The name or ID of the virtual machine to which 34 you want to attach the secondary IP address. Changing this forces a new 35 resource to be created. 36 37 ## Attributes Reference 38 39 The following attributes are exported: 40 41 * `id` - The secondary IP address ID.