github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/openstack/r/compute_floatingip_v2.html.markdown (about)

     1  ---
     2  layout: "openstack"
     3  page_title: "OpenStack: openstack_compute_floatingip_v2"
     4  sidebar_current: "docs-openstack-resource-compute-floatingip-v2"
     5  description: |-
     6    Manages a V2 floating IP resource within OpenStack Nova (compute).
     7  ---
     8  
     9  # openstack\_compute\_floatingip_v2
    10  
    11  Manages a V2 floating IP resource within OpenStack Nova (compute)
    12  that can be used for compute instances.
    13  These are similar to Neutron (networking) floating IP resources,
    14  but only networking floating IPs can be used with load balancers.
    15  
    16  ## Example Usage
    17  
    18  ```hcl
    19  resource "openstack_compute_floatingip_v2" "floatip_1" {
    20    pool = "public"
    21  }
    22  ```
    23  
    24  ## Argument Reference
    25  
    26  The following arguments are supported:
    27  
    28  * `region` - (Required) The region in which to obtain the V2 Compute client.
    29      A Compute client is needed to create a floating IP that can be used with
    30      a compute instance. If omitted, the `OS_REGION_NAME` environment variable
    31      is used. Changing this creates a new floating IP (which may or may not
    32      have a different address).
    33  
    34  * `pool` - (Required) The name of the pool from which to obtain the floating
    35      IP. Changing this creates a new floating IP.
    36  
    37  ## Attributes Reference
    38  
    39  The following attributes are exported:
    40  
    41  * `region` - See Argument Reference above.
    42  * `pool` - See Argument Reference above.
    43  * `address` - The actual floating IP address itself.
    44  * `fixed_ip` - The fixed IP address corresponding to the floating IP.
    45  * `instance_id` - UUID of the compute instance associated with the floating IP.
    46  
    47  ## Import
    48  
    49  Floating IPs can be imported using the `id`, e.g.
    50  
    51  ```
    52  $ terraform import openstack_compute_floatingip_v2.floatip_1 89c60255-9bd6-460c-822a-e2b959ede9d2
    53  ```