Show / Hide Table of Contents

Class 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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
FloatingIpAssociate
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.OpenStack.Networking
Assembly: Pulumi.OpenStack.dll
Syntax
public class FloatingIpAssociate : CustomResource

Constructors

View Source

FloatingIpAssociate(String, FloatingIpAssociateArgs, CustomResourceOptions)

Create a FloatingIpAssociate resource with the given unique name, arguments, and options.

Declaration
public FloatingIpAssociate(string name, FloatingIpAssociateArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

FloatingIpAssociateArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

FixedIp

Declaration
public Output<string> FixedIp { get; }
Property Value
Type Description
Output<System.String>
View Source

FloatingIp

IP Address of an existing floating IP.

Declaration
public Output<string> FloatingIp { get; }
Property Value
Type Description
Output<System.String>
View Source

PortId

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

Declaration
public Output<string> PortId { get; }
Property Value
Type Description
Output<System.String>
View Source

Region

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

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, FloatingIpAssociateState, CustomResourceOptions)

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

Declaration
public static FloatingIpAssociate Get(string name, Input<string> id, FloatingIpAssociateState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

FloatingIpAssociateState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
FloatingIpAssociate
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.