Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.Compute
Assembly: Pulumi.OpenStack.dll
Syntax
public class FloatingIp : CustomResource
Constructors
View SourceFloatingIp(String, FloatingIpArgs, CustomResourceOptions)
Create a FloatingIp resource with the given unique name, arguments, and options.
Declaration
public FloatingIp(string name, FloatingIpArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| FloatingIpArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAddress
The actual floating IP address itself.
Declaration
public Output<string> Address { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FixedIp
The fixed IP address corresponding to the floating IP.
Declaration
public Output<string> FixedIp { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
InstanceId
UUID of the compute instance associated with the floating IP.
Declaration
public Output<string> InstanceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Pool
The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.
Declaration
public Output<string> Pool { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
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).
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, FloatingIpState, CustomResourceOptions)
Get an existing FloatingIp resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static FloatingIp Get(string name, Input<string> id, FloatingIpState 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. |
| FloatingIpState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| FloatingIp |