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
new FloatingIpAssociate(name: string, args: FloatingIpAssociateArgs, opts?: CustomResourceOptions);def FloatingIpAssociate(resource_name, opts=None, fixed_ip=None, floating_ip=None, port_id=None, region=None, __props__=None);func NewFloatingIpAssociate(ctx *Context, name string, args FloatingIpAssociateArgs, opts ...ResourceOption) (*FloatingIpAssociate, error)public FloatingIpAssociate(string name, FloatingIpAssociateArgs args, CustomResourceOptions? opts = null)- 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:
- Floating
Ip string IP Address of an existing floating IP.
- Port
Id string ID of an existing port with at least one IP address to associate with this floating IP.
- Fixed
Ip 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
regionargument of the provider is used. Changing this creates a new floating IP (which may or may not have a different address).
- Floating
Ip string IP Address of an existing floating IP.
- Port
Id string ID of an existing port with at least one IP address to associate with this floating IP.
- Fixed
Ip 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
regionargument of the provider is used. Changing this creates a new floating IP (which may or may not have a different address).
- floating
Ip string IP Address of an existing floating IP.
- port
Id string ID of an existing port with at least one IP address to associate with this floating IP.
- fixed
Ip 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
regionargument 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
regionargument 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:
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.
public static get(name: string, id: Input<ID>, state?: FloatingIpAssociateState, opts?: CustomResourceOptions): FloatingIpAssociatestatic 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)public static FloatingIpAssociate Get(string name, Input<string> id, FloatingIpAssociateState? 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:
- Fixed
Ip string - Floating
Ip string IP Address of an existing floating IP.
- Port
Id 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
regionargument of the provider is used. Changing this creates a new floating IP (which may or may not have a different address).
- Fixed
Ip string - Floating
Ip string IP Address of an existing floating IP.
- Port
Id 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
regionargument of the provider is used. Changing this creates a new floating IP (which may or may not have a different address).
- fixed
Ip string - floating
Ip string IP Address of an existing floating IP.
- port
Id 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
regionargument 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
regionargument 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
openstackTerraform Provider.