1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. ComputeFloatingipV2
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.ComputeFloatingipV2

Explore with Pulumi AI

Up-to-date reference of API arguments for EIP you can get at documentation portal

Manages a V2 floating IP resource within OpenTelekomCloud Nova (compute) that can be used for compute instances. These are similar to Neutron (networking) floating IP resources, but only networking floating IPs can be used with load balancers.

Floating IPs created with this module will have a bandwidth of 1000Mbit/s, for manually specifying the bandwidth please use the opentelekomcloud.VpcEipV1 module.

~> Floating IP compute APIs are marked as discarded in help center. Please use resource/opentelekomcloud_networking_floatingip_v2 or resource/opentelekomcloud_vpc_eip_v1.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const floatip1 = new opentelekomcloud.ComputeFloatingipV2("floatip1", {});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

floatip1 = opentelekomcloud.ComputeFloatingipV2("floatip1")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.NewComputeFloatingipV2(ctx, "floatip1", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var floatip1 = new Opentelekomcloud.ComputeFloatingipV2("floatip1");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ComputeFloatingipV2;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var floatip1 = new ComputeFloatingipV2("floatip1");

    }
}
Copy
resources:
  floatip1:
    type: opentelekomcloud:ComputeFloatingipV2
Copy

Create ComputeFloatingipV2 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ComputeFloatingipV2(name: string, args?: ComputeFloatingipV2Args, opts?: CustomResourceOptions);
@overload
def ComputeFloatingipV2(resource_name: str,
                        args: Optional[ComputeFloatingipV2Args] = None,
                        opts: Optional[ResourceOptions] = None)

@overload
def ComputeFloatingipV2(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        compute_floatingip_v2_id: Optional[str] = None,
                        pool: Optional[str] = None,
                        region: Optional[str] = None)
func NewComputeFloatingipV2(ctx *Context, name string, args *ComputeFloatingipV2Args, opts ...ResourceOption) (*ComputeFloatingipV2, error)
public ComputeFloatingipV2(string name, ComputeFloatingipV2Args? args = null, CustomResourceOptions? opts = null)
public ComputeFloatingipV2(String name, ComputeFloatingipV2Args args)
public ComputeFloatingipV2(String name, ComputeFloatingipV2Args args, CustomResourceOptions options)
type: opentelekomcloud:ComputeFloatingipV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ComputeFloatingipV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ComputeFloatingipV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ComputeFloatingipV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ComputeFloatingipV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ComputeFloatingipV2Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var computeFloatingipV2Resource = new Opentelekomcloud.ComputeFloatingipV2("computeFloatingipV2Resource", new()
{
    ComputeFloatingipV2Id = "string",
    Pool = "string",
    Region = "string",
});
Copy
example, err := opentelekomcloud.NewComputeFloatingipV2(ctx, "computeFloatingipV2Resource", &opentelekomcloud.ComputeFloatingipV2Args{
ComputeFloatingipV2Id: pulumi.String("string"),
Pool: pulumi.String("string"),
Region: pulumi.String("string"),
})
Copy
var computeFloatingipV2Resource = new ComputeFloatingipV2("computeFloatingipV2Resource", ComputeFloatingipV2Args.builder()
    .computeFloatingipV2Id("string")
    .pool("string")
    .region("string")
    .build());
Copy
compute_floatingip_v2_resource = opentelekomcloud.ComputeFloatingipV2("computeFloatingipV2Resource",
    compute_floatingip_v2_id="string",
    pool="string",
    region="string")
Copy
const computeFloatingipV2Resource = new opentelekomcloud.ComputeFloatingipV2("computeFloatingipV2Resource", {
    computeFloatingipV2Id: "string",
    pool: "string",
    region: "string",
});
Copy
type: opentelekomcloud:ComputeFloatingipV2
properties:
    computeFloatingipV2Id: string
    pool: string
    region: string
Copy

ComputeFloatingipV2 Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ComputeFloatingipV2 resource accepts the following input properties:

ComputeFloatingipV2Id string
Pool string
The name of the pool from which to obtain the floating IP. Default value is admin_external_net. Changing this creates a new floating IP.
Region string
ComputeFloatingipV2Id string
Pool string
The name of the pool from which to obtain the floating IP. Default value is admin_external_net. Changing this creates a new floating IP.
Region string
computeFloatingipV2Id String
pool String
The name of the pool from which to obtain the floating IP. Default value is admin_external_net. Changing this creates a new floating IP.
region String
computeFloatingipV2Id string
pool string
The name of the pool from which to obtain the floating IP. Default value is admin_external_net. Changing this creates a new floating IP.
region string
compute_floatingip_v2_id str
pool str
The name of the pool from which to obtain the floating IP. Default value is admin_external_net. Changing this creates a new floating IP.
region str
computeFloatingipV2Id String
pool String
The name of the pool from which to obtain the floating IP. Default value is admin_external_net. Changing this creates a new floating IP.
region String

Outputs

All input properties are implicitly available as output properties. Additionally, the ComputeFloatingipV2 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 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.
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.

Look up Existing ComputeFloatingipV2 Resource

Get an existing ComputeFloatingipV2 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?: ComputeFloatingipV2State, opts?: CustomResourceOptions): ComputeFloatingipV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address: Optional[str] = None,
        compute_floatingip_v2_id: Optional[str] = None,
        fixed_ip: Optional[str] = None,
        instance_id: Optional[str] = None,
        pool: Optional[str] = None,
        region: Optional[str] = None) -> ComputeFloatingipV2
func GetComputeFloatingipV2(ctx *Context, name string, id IDInput, state *ComputeFloatingipV2State, opts ...ResourceOption) (*ComputeFloatingipV2, error)
public static ComputeFloatingipV2 Get(string name, Input<string> id, ComputeFloatingipV2State? state, CustomResourceOptions? opts = null)
public static ComputeFloatingipV2 get(String name, Output<String> id, ComputeFloatingipV2State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:ComputeFloatingipV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
ComputeFloatingipV2Id string
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. Default value is admin_external_net. Changing this creates a new floating IP.
Region string
Address string
The actual floating IP address itself.
ComputeFloatingipV2Id string
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. Default value is admin_external_net. Changing this creates a new floating IP.
Region string
address String
The actual floating IP address itself.
computeFloatingipV2Id String
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. Default value is admin_external_net. Changing this creates a new floating IP.
region String
address string
The actual floating IP address itself.
computeFloatingipV2Id string
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. Default value is admin_external_net. Changing this creates a new floating IP.
region string
address str
The actual floating IP address itself.
compute_floatingip_v2_id str
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. Default value is admin_external_net. Changing this creates a new floating IP.
region str
address String
The actual floating IP address itself.
computeFloatingipV2Id String
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. Default value is admin_external_net. Changing this creates a new floating IP.
region String

Import

Floating IPs can be imported using the id, e.g.

$ pulumi import opentelekomcloud:index/computeFloatingipV2:ComputeFloatingipV2 floatip_1 89c60255-9bd6-460c-822a-e2b959ede9d2
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.