Files
opentf/website/source/docs/providers/cloudstack/r/secondary_ipaddress.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.1 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 bind 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)

  • 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.

Attributes Reference

The following attributes are exported:

  • id - The secondary IP address ID.