We have a curtesy function in place allowing you to specify both a `name` of `ID`. But in order for the graph to be build correctly when you recreate or taint stuff that other resources depend on, we need to reference the `ID` and *not* the `name`. So in order to enforce this and by that help people to not make this mistake unknowingly, I deprecated all the parameters this allies to and changed the logic, docs and tests accordingly.
1.7 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| cloudstack | CloudStack: cloudstack_secondary_ipaddress | docs-cloudstack-resource-secondary-ipaddress | Assigns a secondary IP to a NIC. |
cloudstack_secondary_ipaddress
Assigns a secondary IP to a NIC.
Example Usage
resource "cloudstack_secondary_ipaddress" "default" {
virtual_machine_id = "server-1"
}
Argument Reference
The following arguments are supported:
-
ip_address- (Optional) The IP address to attach the to NIC. If not supplied an IP address will be selected randomly. Changing this forces a new resource to be created. -
ipaddress- (Optional, Deprecated) The IP address to attach the to NIC. If not supplied an IP address will be selected randomly. Changing this forces a new resource to be created. -
nic_id- (Optional) The NIC ID to which you want to attach the secondary IP address. Changing this forces a new resource to be created (defaults to the ID of the primary NIC) -
nicid- (Optional, Deprecated) The ID of the NIC to which you want to attach the secondary IP address. Changing this forces a new resource to be created (defaults to the ID of the primary NIC) -
virtual_machine_id- (Required) The ID of the virtual machine to which you want to attach the secondary IP address. Changing this forces a new resource to be created. -
virtual_machine- (Required, Deprecated) The name or ID of the virtual machine to which you want to attach the secondary IP address. Changing this forces a new resource to be created.
Attributes Reference
The following attributes are exported:
id- The secondary IP address ID.