github.com/jrasell/terraform@v0.6.17-0.20160523115548-2652f5232949/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 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  * `nic_id` - (Optional) The NIC ID to which you want to attach the secondary IP
    34      address. Changing this forces a new resource to be created (defaults to the
    35      ID of the primary NIC)
    36  
    37  * `nicid` - (Optional, Deprecated) The ID of the NIC to which you want to attach
    38      the	secondary IP address. Changing this forces a new resource to be created
    39      (defaults to the ID of the primary NIC)
    40  
    41  * `virtual_machine_id` - (Required) The ID of the virtual machine to which you
    42      want to attach the secondary IP address. Changing this forces a new resource
    43      to be created.
    44  
    45  * `virtual_machine` - (Required, Deprecated) The name or ID of the virtual
    46      machine to which you want to attach the secondary IP address. Changing this
    47      forces a new resource to be created.
    48  
    49  ## Attributes Reference
    50  
    51  The following attributes are exported:
    52  
    53  * `id` - The secondary IP address ID.