FloatingIpAssociate

Associates a floating IP to a port. This is useful for situations where you have a pre-allocated floating IP or are unable to use the openstack.networking.FloatingIp resource to create a floating IP.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var port1 = new OpenStack.Networking.Port("port1", new OpenStack.Networking.PortArgs
        {
            NetworkId = "a5bbd213-e1d3-49b6-aed1-9df60ea94b9a",
        });
        var fip1 = new OpenStack.Networking.FloatingIpAssociate("fip1", new OpenStack.Networking.FloatingIpAssociateArgs
        {
            FloatingIp = "1.2.3.4",
            PortId = port1.Id,
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

port1 = openstack.networking.Port("port1", network_id="a5bbd213-e1d3-49b6-aed1-9df60ea94b9a")
fip1 = openstack.networking.FloatingIpAssociate("fip1",
    floating_ip="1.2.3.4",
    port_id=port1.id)
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const port1 = new openstack.networking.Port("port_1", {
    networkId: "a5bbd213-e1d3-49b6-aed1-9df60ea94b9a",
});
const fip1 = new openstack.networking.FloatingIpAssociate("fip_1", {
    floatingIp: "1.2.3.4",
    portId: port1.id,
});

Create a FloatingIpAssociate Resource

def FloatingIpAssociate(resource_name, opts=None, fixed_ip=None, floating_ip=None, port_id=None, region=None, __props__=None);
name string
The unique name of the resource.
args FloatingIpAssociateArgs
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 FloatingIpAssociateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FloatingIpAssociateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

FloatingIpAssociate Resource Properties

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

Inputs

The FloatingIpAssociate resource accepts the following input properties:

FloatingIp string

IP Address of an existing floating IP.

PortId string

ID of an existing port with at least one IP address to associate with this floating IP.

FixedIp string
Region string

The region in which to obtain the V2 Networking client. A Networking client is needed to create a floating IP that can be used with another networking resource, such as a load balancer. 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).

FloatingIp string

IP Address of an existing floating IP.

PortId string

ID of an existing port with at least one IP address to associate with this floating IP.

FixedIp string
Region string

The region in which to obtain the V2 Networking client. A Networking client is needed to create a floating IP that can be used with another networking resource, such as a load balancer. 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).

floatingIp string

IP Address of an existing floating IP.

portId string

ID of an existing port with at least one IP address to associate with this floating IP.

fixedIp string
region string

The region in which to obtain the V2 Networking client. A Networking client is needed to create a floating IP that can be used with another networking resource, such as a load balancer. 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).

floating_ip str

IP Address of an existing floating IP.

port_id str

ID of an existing port with at least one IP address to associate with this floating IP.

fixed_ip str
region str

The region in which to obtain the V2 Networking client. A Networking client is needed to create a floating IP that can be used with another networking resource, such as a load balancer. 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 FloatingIpAssociate resource produces the following output properties:

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

Look up an Existing FloatingIpAssociate Resource

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

static get(resource_name, id, opts=None, fixed_ip=None, floating_ip=None, port_id=None, region=None, __props__=None);
func GetFloatingIpAssociate(ctx *Context, name string, id IDInput, state *FloatingIpAssociateState, opts ...ResourceOption) (*FloatingIpAssociate, error)
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:

FixedIp string
FloatingIp string

IP Address of an existing floating IP.

PortId string

ID of an existing port with at least one IP address to associate with this floating IP.

Region string

The region in which to obtain the V2 Networking client. A Networking client is needed to create a floating IP that can be used with another networking resource, such as a load balancer. 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).

FixedIp string
FloatingIp string

IP Address of an existing floating IP.

PortId string

ID of an existing port with at least one IP address to associate with this floating IP.

Region string

The region in which to obtain the V2 Networking client. A Networking client is needed to create a floating IP that can be used with another networking resource, such as a load balancer. 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).

fixedIp string
floatingIp string

IP Address of an existing floating IP.

portId string

ID of an existing port with at least one IP address to associate with this floating IP.

region string

The region in which to obtain the V2 Networking client. A Networking client is needed to create a floating IP that can be used with another networking resource, such as a load balancer. 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).

fixed_ip str
floating_ip str

IP Address of an existing floating IP.

port_id str

ID of an existing port with at least one IP address to associate with this floating IP.

region str

The region in which to obtain the V2 Networking client. A Networking client is needed to create a floating IP that can be used with another networking resource, such as a load balancer. 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.