github.com/armen/terraform@v0.5.2-0.20150529052519-caa8117a08f1/website/source/docs/providers/cloudstack/r/ipaddress.html.markdown (about)

     1  ---
     2  layout: "cloudstack"
     3  page_title: "CloudStack: cloudstack_ipaddress"
     4  sidebar_current: "docs-cloudstack-resource-ipaddress"
     5  description: |-
     6    Acquires and associates a public IP.
     7  ---
     8  
     9  # cloudstack\_ipaddress
    10  
    11  Acquires and associates a public IP.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "cloudstack_ipaddress" "default" {
    17    network = "test-network"
    18  }
    19  ```
    20  
    21  ## Argument Reference
    22  
    23  The following arguments are supported:
    24  
    25  * `network` - (Optional) The name of the network for which an IP address should
    26      be acquired and associated. Changing this forces a new resource to be created.
    27  
    28  * `vpc` - (Optional) The name of the VPC for which an IP address should
    29      be acquired and associated. Changing this forces a new resource to be created.
    30  
    31  *NOTE: Either `network` or `vpc` should have a value!*
    32  
    33  ## Attributes Reference
    34  
    35  The following attributes are exported:
    36  
    37  * `id` - The ID of the acquired and associated IP address.
    38  * `ipaddress` - The IP address that was acquired and associated.