Skip to main content

openstack_networking_floatingip_v2

Last update:
For your information

This instruction is a copy of the official OpenStack Terraform provider documentation at Terraform Registry.

Use this data source to retrieve the ID of an available OpenStack floating IP.

Example Usage

data "openstack_networking_floatingip_v2" "floatingip_1" {
address = "192.168.0.4"
}

Argument Reference

  • region - (Optional) The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve floating IP IDs. If omitted, the region argument of the provider is used.

  • description - (Optional) Human-readable description of the floating IP.

  • address - (Optional) The IP address of the floating IP.

  • pool - (Optional) The name of the pool the floating IP belongs to.

  • port_id - (Optional) The ID of the port the floating IP is attached to.

  • status - Status of the floating IP (ACTIVE/DOWN).

  • fixed_ip - (Optional) The specific IP address of the internal port to be associated with the floating IP.

  • tags - (Optional) The list of floating IP tags to filter by.

  • tenant_id - (Optional) The owner of the floating IP.

Attributes Reference

id is set to the ID of the found floating IP. In addition, the following attributes are exported:

  • all_tags - A set of string tags applied to the floating IP.
  • dns_name - The floating IP DNS name. Available when the Neutron DNS extension is enabled.
  • dns_domain - The floating IP DNS domain. Available when the Neutron DNS extension is enabled.