GetFloatingIp

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

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var floatingip1 = Output.Create(OpenStack.Networking.GetFloatingIp.InvokeAsync(new OpenStack.Networking.GetFloatingIpArgs
        {
            Address = "192.168.0.4",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

floatingip1 = openstack.networking.get_floating_ip(address="192.168.0.4")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const floatingip1 = pulumi.output(openstack.networking.getFloatingIp({
    address: "192.168.0.4",
}, { async: true }));

Using GetFloatingIp

function getFloatingIp(args: GetFloatingIpArgs, opts?: InvokeOptions): Promise<GetFloatingIpResult>
function  get_floating_ip(address=None, description=None, fixed_ip=None, pool=None, port_id=None, region=None, status=None, tags=None, tenant_id=None, opts=None)
func LookupFloatingIp(ctx *Context, args *LookupFloatingIpArgs, opts ...InvokeOption) (*LookupFloatingIpResult, error)

Note: This function is named LookupFloatingIp in the Go SDK.

public static class GetFloatingIp {
    public static Task<GetFloatingIpResult> InvokeAsync(GetFloatingIpArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Address string

The IP address of the floating IP.

Description string

Human-readable description of the floating IP.

FixedIp string

The specific IP address of the internal port which should be associated with the floating IP.

Pool string

The name of the pool from which the floating IP belongs to.

PortId string

The ID of the port the floating IP is attached.

Region string

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.

Status string

status of the floating IP (ACTIVE/DOWN).

Tags List<string>

The list of floating IP tags to filter.

TenantId string

The owner of the floating IP.

Address string

The IP address of the floating IP.

Description string

Human-readable description of the floating IP.

FixedIp string

The specific IP address of the internal port which should be associated with the floating IP.

Pool string

The name of the pool from which the floating IP belongs to.

PortId string

The ID of the port the floating IP is attached.

Region string

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.

Status string

status of the floating IP (ACTIVE/DOWN).

Tags []string

The list of floating IP tags to filter.

TenantId string

The owner of the floating IP.

address string

The IP address of the floating IP.

description string

Human-readable description of the floating IP.

fixedIp string

The specific IP address of the internal port which should be associated with the floating IP.

pool string

The name of the pool from which the floating IP belongs to.

portId string

The ID of the port the floating IP is attached.

region string

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.

status string

status of the floating IP (ACTIVE/DOWN).

tags string[]

The list of floating IP tags to filter.

tenantId string

The owner of the floating IP.

address str

The IP address of the floating IP.

description str

Human-readable description of the floating IP.

fixed_ip str

The specific IP address of the internal port which should be associated with the floating IP.

pool str

The name of the pool from which the floating IP belongs to.

port_id str

The ID of the port the floating IP is attached.

region str

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.

status str

status of the floating IP (ACTIVE/DOWN).

tags List[str]

The list of floating IP tags to filter.

tenant_id str

The owner of the floating IP.

GetFloatingIp Result

The following output properties are available:

AllTags List<string>

A set of string tags applied on the floating IP.

DnsDomain string

The floating IP DNS domain. Available, when Neutron DNS extension is enabled.

DnsName string

The floating IP DNS name. Available, when Neutron DNS extension is enabled.

Id string

The provider-assigned unique ID for this managed resource.

Address string
Description string
FixedIp string
Pool string
PortId string
Region string
Status string
Tags List<string>
TenantId string
AllTags []string

A set of string tags applied on the floating IP.

DnsDomain string

The floating IP DNS domain. Available, when Neutron DNS extension is enabled.

DnsName string

The floating IP DNS name. Available, when Neutron DNS extension is enabled.

Id string

The provider-assigned unique ID for this managed resource.

Address string
Description string
FixedIp string
Pool string
PortId string
Region string
Status string
Tags []string
TenantId string
allTags string[]

A set of string tags applied on the floating IP.

dnsDomain string

The floating IP DNS domain. Available, when Neutron DNS extension is enabled.

dnsName string

The floating IP DNS name. Available, when Neutron DNS extension is enabled.

id string

The provider-assigned unique ID for this managed resource.

address string
description string
fixedIp string
pool string
portId string
region string
status string
tags string[]
tenantId string
all_tags List[str]

A set of string tags applied on the floating IP.

dns_domain str

The floating IP DNS domain. Available, when Neutron DNS extension is enabled.

dns_name str

The floating IP DNS name. Available, when Neutron DNS extension is enabled.

id str

The provider-assigned unique ID for this managed resource.

address str
description str
fixed_ip str
pool str
port_id str
region str
status str
tags List[str]
tenant_id str

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.