FloatingIp

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

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

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var floatip1 = new OpenStack.Compute.FloatingIp("floatip1", new OpenStack.Compute.FloatingIpArgs
        {
            Pool = "public",
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

floatip1 = openstack.compute.FloatingIp("floatip1", pool="public")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const floatip1 = new openstack.compute.FloatingIp("floatip_1", {
    pool: "public",
});

Create a FloatingIp Resource

def FloatingIp(resource_name, opts=None, pool=None, region=None, __props__=None);
func NewFloatingIp(ctx *Context, name string, args FloatingIpArgs, opts ...ResourceOption) (*FloatingIp, error)
public FloatingIp(string name, FloatingIpArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args FloatingIpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args FloatingIpArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FloatingIpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

FloatingIp Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The FloatingIp resource accepts the following input properties:

Pool string

The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.

Region string

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 string

The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.

Region string

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 string

The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.

region string

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 str

The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.

region str

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).

Outputs

All input properties are implicitly available as output properties. Additionally, the FloatingIp resource produces the following output properties:

Address string

The actual floating IP address itself.

FixedIp string

The fixed IP address corresponding to the floating IP.

Id string
The provider-assigned unique ID for this managed resource.
InstanceId string

UUID of the compute instance associated with the floating IP.

Address string

The actual floating IP address itself.

FixedIp string

The fixed IP address corresponding to the floating IP.

Id string
The provider-assigned unique ID for this managed resource.
InstanceId string

UUID of the compute instance associated with the floating IP.

address string

The actual floating IP address itself.

fixedIp string

The fixed IP address corresponding to the floating IP.

id string
The provider-assigned unique ID for this managed resource.
instanceId string

UUID of the compute instance associated with the floating IP.

address str

The actual floating IP address itself.

fixed_ip str

The fixed IP address corresponding to the floating IP.

id str
The provider-assigned unique ID for this managed resource.
instance_id str

UUID of the compute instance associated with the floating IP.

Look up an Existing FloatingIp Resource

Get an existing FloatingIp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: FloatingIpState, opts?: CustomResourceOptions): FloatingIp
static get(resource_name, id, opts=None, address=None, fixed_ip=None, instance_id=None, pool=None, region=None, __props__=None);
func GetFloatingIp(ctx *Context, name string, id IDInput, state *FloatingIpState, opts ...ResourceOption) (*FloatingIp, error)
public static FloatingIp Get(string name, Input<string> id, FloatingIpState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Address string

The actual floating IP address itself.

FixedIp string

The fixed IP address corresponding to the floating IP.

InstanceId string

UUID of the compute instance associated with the floating IP.

Pool string

The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.

Region string

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).

Address string

The actual floating IP address itself.

FixedIp string

The fixed IP address corresponding to the floating IP.

InstanceId string

UUID of the compute instance associated with the floating IP.

Pool string

The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.

Region string

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).

address string

The actual floating IP address itself.

fixedIp string

The fixed IP address corresponding to the floating IP.

instanceId string

UUID of the compute instance associated with the floating IP.

pool string

The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.

region string

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).

address str

The actual floating IP address itself.

fixed_ip str

The fixed IP address corresponding to the floating IP.

instance_id str

UUID of the compute instance associated with the floating IP.

pool str

The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.

region str

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).

Package Details

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