Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
stable-website
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
layout page_title sidebar_current description
telefonicaopencloud
TelefonicaOpenCloud: telefonicaopencloud_compute_floatingip_v2
docs-telefonicaopencloud-resource-compute-floatingip-v2
Manages a V2 floating IP resource within TelefonicaOpenCloud Nova (compute).

telefonicaopencloud_compute_floatingip_v2

Manages a V2 floating IP resource within TelefonicaOpenCloud Nova (compute) that can be used for compute instances.

Please note that managing floating IPs through the TelefonicaOpenCloud Compute API has been deprecated. Unless you are using an older TelefonicaOpenCloud environment, it is recommended to use the telefonicaopencloud_networking_floatingip_v2 resource instead, which uses the TelefonicaOpenCloud Networking API.

Example Usage

resource "telefonicaopencloud_compute_floatingip_v2" "floatip_1" {
  pool = "public"
}

Argument Reference

The following arguments are supported:

  • region - (Optional) The region in which to obtain the V2 Compute client. A Compute client is needed to create a floating IP that can be used with a compute instance. If omitted, the region argument of the provider is used. Changing this creates a new floating IP (which may or may not have a different address).

  • pool - (Required) The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.

Attributes Reference

The following attributes are exported:

  • region - See Argument Reference above.
  • pool - See Argument Reference above.
  • address - The actual floating IP address itself.
  • fixed_ip - The fixed IP address corresponding to the floating IP.
  • instance_id - UUID of the compute instance associated with the floating IP.

Import

Floating IPs can be imported using the id, e.g.

$ terraform import telefonicaopencloud_compute_floatingip_v2.floatip_1 89c60255-9bd6-460c-822a-e2b959ede9d2