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
LookupFloatingIpin 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.
- Fixed
Ip 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.
- Port
Id 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
regionargument of the provider is used.- Status string
status of the floating IP (ACTIVE/DOWN).
- List<string>
The list of floating IP tags to filter.
- Tenant
Id 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.
- Fixed
Ip 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.
- Port
Id 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
regionargument of the provider is used.- Status string
status of the floating IP (ACTIVE/DOWN).
- []string
The list of floating IP tags to filter.
- Tenant
Id 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.
- fixed
Ip 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.
- port
Id 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
regionargument of the provider is used.- status string
status of the floating IP (ACTIVE/DOWN).
- string[]
The list of floating IP tags to filter.
- tenant
Id 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
regionargument of the provider is used.- status str
status of the floating IP (ACTIVE/DOWN).
- 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:
- List<string>
A set of string tags applied on the floating IP.
- Dns
Domain string The floating IP DNS domain. Available, when Neutron DNS extension is enabled.
- Dns
Name 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
- Fixed
Ip string - Pool string
- Port
Id string - Region string
- Status string
- List<string>
- Tenant
Id string
- []string
A set of string tags applied on the floating IP.
- Dns
Domain string The floating IP DNS domain. Available, when Neutron DNS extension is enabled.
- Dns
Name 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
- Fixed
Ip string - Pool string
- Port
Id string - Region string
- Status string
- []string
- Tenant
Id string
- string[]
A set of string tags applied on the floating IP.
- dns
Domain string The floating IP DNS domain. Available, when Neutron DNS extension is enabled.
- dns
Name 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
- fixed
Ip string - pool string
- port
Id string - region string
- status string
- string[]
- tenant
Id string
- 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
- 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
openstackTerraform Provider.