openstack_networking_floatingip_v2
Эта инструкция — копия официальной документации OpenStack Terraform-провайдера в Terraform Registry.
Use this data source to get 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, theregionargument 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 from which the floating IP belongs to. -
port_id— (Optional) The ID of the port the floating IP is attached. -
status— status of the floating IP (ACTIVE/DOWN). -
fixed_ip— (Optional) The specific IP address of the internal port which should be associated with the floating IP. -
tags— (Optional) The list of floating IP tags to filter. -
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 on the floating IP.dns_name— The floating IP DNS name. Available, when Neutron DNS extension is enabled.dns_domain— The floating IP DNS domain. Available, when Neutron DNS extension is enabled.