1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. ComputeFloatingipAssociateV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.ComputeFloatingipAssociateV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

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

    Associate a floating IP to an instance. This can be used instead of the floating_ip options in opentelekomcloud.ComputeInstanceV2.

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

    Example Usage

    Automatically detect the correct network

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const instance1 = new opentelekomcloud.ComputeInstanceV2("instance1", {
        imageId: "ad091b52-742f-469e-8f3c-fd81cadf0743",
        flavorId: "3",
        keyPair: "my_key_pair_name",
        securityGroups: ["default"],
    });
    const fip1NetworkingFloatingipV2 = new opentelekomcloud.NetworkingFloatingipV2("fip1NetworkingFloatingipV2", {pool: "admin_external_net"});
    const fip1ComputeFloatingipAssociateV2 = new opentelekomcloud.ComputeFloatingipAssociateV2("fip1ComputeFloatingipAssociateV2", {
        floatingIp: fip1NetworkingFloatingipV2.address,
        instanceId: instance1.computeInstanceV2Id,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    instance1 = opentelekomcloud.ComputeInstanceV2("instance1",
        image_id="ad091b52-742f-469e-8f3c-fd81cadf0743",
        flavor_id="3",
        key_pair="my_key_pair_name",
        security_groups=["default"])
    fip1_networking_floatingip_v2 = opentelekomcloud.NetworkingFloatingipV2("fip1NetworkingFloatingipV2", pool="admin_external_net")
    fip1_compute_floatingip_associate_v2 = opentelekomcloud.ComputeFloatingipAssociateV2("fip1ComputeFloatingipAssociateV2",
        floating_ip=fip1_networking_floatingip_v2.address,
        instance_id=instance1.compute_instance_v2_id)
    
    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 {
    		instance1, err := opentelekomcloud.NewComputeInstanceV2(ctx, "instance1", &opentelekomcloud.ComputeInstanceV2Args{
    			ImageId:  pulumi.String("ad091b52-742f-469e-8f3c-fd81cadf0743"),
    			FlavorId: pulumi.String("3"),
    			KeyPair:  pulumi.String("my_key_pair_name"),
    			SecurityGroups: pulumi.StringArray{
    				pulumi.String("default"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		fip1NetworkingFloatingipV2, err := opentelekomcloud.NewNetworkingFloatingipV2(ctx, "fip1NetworkingFloatingipV2", &opentelekomcloud.NetworkingFloatingipV2Args{
    			Pool: pulumi.String("admin_external_net"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewComputeFloatingipAssociateV2(ctx, "fip1ComputeFloatingipAssociateV2", &opentelekomcloud.ComputeFloatingipAssociateV2Args{
    			FloatingIp: fip1NetworkingFloatingipV2.Address,
    			InstanceId: instance1.ComputeInstanceV2Id,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var instance1 = new Opentelekomcloud.ComputeInstanceV2("instance1", new()
        {
            ImageId = "ad091b52-742f-469e-8f3c-fd81cadf0743",
            FlavorId = "3",
            KeyPair = "my_key_pair_name",
            SecurityGroups = new[]
            {
                "default",
            },
        });
    
        var fip1NetworkingFloatingipV2 = new Opentelekomcloud.NetworkingFloatingipV2("fip1NetworkingFloatingipV2", new()
        {
            Pool = "admin_external_net",
        });
    
        var fip1ComputeFloatingipAssociateV2 = new Opentelekomcloud.ComputeFloatingipAssociateV2("fip1ComputeFloatingipAssociateV2", new()
        {
            FloatingIp = fip1NetworkingFloatingipV2.Address,
            InstanceId = instance1.ComputeInstanceV2Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.ComputeInstanceV2;
    import com.pulumi.opentelekomcloud.ComputeInstanceV2Args;
    import com.pulumi.opentelekomcloud.NetworkingFloatingipV2;
    import com.pulumi.opentelekomcloud.NetworkingFloatingipV2Args;
    import com.pulumi.opentelekomcloud.ComputeFloatingipAssociateV2;
    import com.pulumi.opentelekomcloud.ComputeFloatingipAssociateV2Args;
    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 instance1 = new ComputeInstanceV2("instance1", ComputeInstanceV2Args.builder()
                .imageId("ad091b52-742f-469e-8f3c-fd81cadf0743")
                .flavorId(3)
                .keyPair("my_key_pair_name")
                .securityGroups("default")
                .build());
    
            var fip1NetworkingFloatingipV2 = new NetworkingFloatingipV2("fip1NetworkingFloatingipV2", NetworkingFloatingipV2Args.builder()
                .pool("admin_external_net")
                .build());
    
            var fip1ComputeFloatingipAssociateV2 = new ComputeFloatingipAssociateV2("fip1ComputeFloatingipAssociateV2", ComputeFloatingipAssociateV2Args.builder()
                .floatingIp(fip1NetworkingFloatingipV2.address())
                .instanceId(instance1.computeInstanceV2Id())
                .build());
    
        }
    }
    
    resources:
      instance1:
        type: opentelekomcloud:ComputeInstanceV2
        properties:
          imageId: ad091b52-742f-469e-8f3c-fd81cadf0743
          flavorId: 3
          keyPair: my_key_pair_name
          securityGroups:
            - default
      fip1NetworkingFloatingipV2:
        type: opentelekomcloud:NetworkingFloatingipV2
        properties:
          pool: admin_external_net
      fip1ComputeFloatingipAssociateV2:
        type: opentelekomcloud:ComputeFloatingipAssociateV2
        properties:
          floatingIp: ${fip1NetworkingFloatingipV2.address}
          instanceId: ${instance1.computeInstanceV2Id}
    

    Explicitly set the network to attach to

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const instance1 = new opentelekomcloud.ComputeInstanceV2("instance1", {
        imageId: "ad091b52-742f-469e-8f3c-fd81cadf0743",
        flavorId: "3",
        keyPair: "my_key_pair_name",
        securityGroups: ["default"],
        networks: [
            {
                name: "my_network",
            },
            {
                name: "default",
            },
        ],
    });
    const fip1NetworkingFloatingipV2 = new opentelekomcloud.NetworkingFloatingipV2("fip1NetworkingFloatingipV2", {pool: "admin_external_net"});
    const fip1ComputeFloatingipAssociateV2 = new opentelekomcloud.ComputeFloatingipAssociateV2("fip1ComputeFloatingipAssociateV2", {
        floatingIp: fip1NetworkingFloatingipV2.address,
        instanceId: instance1.computeInstanceV2Id,
        fixedIp: instance1.networks.apply(networks => networks?.[1]?.fixedIpV4),
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    instance1 = opentelekomcloud.ComputeInstanceV2("instance1",
        image_id="ad091b52-742f-469e-8f3c-fd81cadf0743",
        flavor_id="3",
        key_pair="my_key_pair_name",
        security_groups=["default"],
        networks=[
            {
                "name": "my_network",
            },
            {
                "name": "default",
            },
        ])
    fip1_networking_floatingip_v2 = opentelekomcloud.NetworkingFloatingipV2("fip1NetworkingFloatingipV2", pool="admin_external_net")
    fip1_compute_floatingip_associate_v2 = opentelekomcloud.ComputeFloatingipAssociateV2("fip1ComputeFloatingipAssociateV2",
        floating_ip=fip1_networking_floatingip_v2.address,
        instance_id=instance1.compute_instance_v2_id,
        fixed_ip=instance1.networks[1].fixed_ip_v4)
    
    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 {
    		instance1, err := opentelekomcloud.NewComputeInstanceV2(ctx, "instance1", &opentelekomcloud.ComputeInstanceV2Args{
    			ImageId:  pulumi.String("ad091b52-742f-469e-8f3c-fd81cadf0743"),
    			FlavorId: pulumi.String("3"),
    			KeyPair:  pulumi.String("my_key_pair_name"),
    			SecurityGroups: pulumi.StringArray{
    				pulumi.String("default"),
    			},
    			Networks: opentelekomcloud.ComputeInstanceV2NetworkArray{
    				&opentelekomcloud.ComputeInstanceV2NetworkArgs{
    					Name: pulumi.String("my_network"),
    				},
    				&opentelekomcloud.ComputeInstanceV2NetworkArgs{
    					Name: pulumi.String("default"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		fip1NetworkingFloatingipV2, err := opentelekomcloud.NewNetworkingFloatingipV2(ctx, "fip1NetworkingFloatingipV2", &opentelekomcloud.NetworkingFloatingipV2Args{
    			Pool: pulumi.String("admin_external_net"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewComputeFloatingipAssociateV2(ctx, "fip1ComputeFloatingipAssociateV2", &opentelekomcloud.ComputeFloatingipAssociateV2Args{
    			FloatingIp: fip1NetworkingFloatingipV2.Address,
    			InstanceId: instance1.ComputeInstanceV2Id,
    			FixedIp: pulumi.String(instance1.Networks.ApplyT(func(networks []opentelekomcloud.ComputeInstanceV2Network) (*string, error) {
    				return &networks[1].FixedIpV4, nil
    			}).(pulumi.StringPtrOutput)),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var instance1 = new Opentelekomcloud.ComputeInstanceV2("instance1", new()
        {
            ImageId = "ad091b52-742f-469e-8f3c-fd81cadf0743",
            FlavorId = "3",
            KeyPair = "my_key_pair_name",
            SecurityGroups = new[]
            {
                "default",
            },
            Networks = new[]
            {
                new Opentelekomcloud.Inputs.ComputeInstanceV2NetworkArgs
                {
                    Name = "my_network",
                },
                new Opentelekomcloud.Inputs.ComputeInstanceV2NetworkArgs
                {
                    Name = "default",
                },
            },
        });
    
        var fip1NetworkingFloatingipV2 = new Opentelekomcloud.NetworkingFloatingipV2("fip1NetworkingFloatingipV2", new()
        {
            Pool = "admin_external_net",
        });
    
        var fip1ComputeFloatingipAssociateV2 = new Opentelekomcloud.ComputeFloatingipAssociateV2("fip1ComputeFloatingipAssociateV2", new()
        {
            FloatingIp = fip1NetworkingFloatingipV2.Address,
            InstanceId = instance1.ComputeInstanceV2Id,
            FixedIp = instance1.Networks.Apply(networks => networks[1]?.FixedIpV4),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.ComputeInstanceV2;
    import com.pulumi.opentelekomcloud.ComputeInstanceV2Args;
    import com.pulumi.opentelekomcloud.inputs.ComputeInstanceV2NetworkArgs;
    import com.pulumi.opentelekomcloud.NetworkingFloatingipV2;
    import com.pulumi.opentelekomcloud.NetworkingFloatingipV2Args;
    import com.pulumi.opentelekomcloud.ComputeFloatingipAssociateV2;
    import com.pulumi.opentelekomcloud.ComputeFloatingipAssociateV2Args;
    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 instance1 = new ComputeInstanceV2("instance1", ComputeInstanceV2Args.builder()
                .imageId("ad091b52-742f-469e-8f3c-fd81cadf0743")
                .flavorId(3)
                .keyPair("my_key_pair_name")
                .securityGroups("default")
                .networks(            
                    ComputeInstanceV2NetworkArgs.builder()
                        .name("my_network")
                        .build(),
                    ComputeInstanceV2NetworkArgs.builder()
                        .name("default")
                        .build())
                .build());
    
            var fip1NetworkingFloatingipV2 = new NetworkingFloatingipV2("fip1NetworkingFloatingipV2", NetworkingFloatingipV2Args.builder()
                .pool("admin_external_net")
                .build());
    
            var fip1ComputeFloatingipAssociateV2 = new ComputeFloatingipAssociateV2("fip1ComputeFloatingipAssociateV2", ComputeFloatingipAssociateV2Args.builder()
                .floatingIp(fip1NetworkingFloatingipV2.address())
                .instanceId(instance1.computeInstanceV2Id())
                .fixedIp(instance1.networks().applyValue(networks -> networks[1].fixedIpV4()))
                .build());
    
        }
    }
    
    resources:
      instance1:
        type: opentelekomcloud:ComputeInstanceV2
        properties:
          imageId: ad091b52-742f-469e-8f3c-fd81cadf0743
          flavorId: 3
          keyPair: my_key_pair_name
          securityGroups:
            - default
          networks:
            - name: my_network
            - name: default
      fip1NetworkingFloatingipV2:
        type: opentelekomcloud:NetworkingFloatingipV2
        properties:
          pool: admin_external_net
      fip1ComputeFloatingipAssociateV2:
        type: opentelekomcloud:ComputeFloatingipAssociateV2
        properties:
          floatingIp: ${fip1NetworkingFloatingipV2.address}
          instanceId: ${instance1.computeInstanceV2Id}
          fixedIp: ${instance1.networks[1].fixedIpV4}
    

    Create ComputeFloatingipAssociateV2 Resource

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

    Constructor syntax

    new ComputeFloatingipAssociateV2(name: string, args: ComputeFloatingipAssociateV2Args, opts?: CustomResourceOptions);
    @overload
    def ComputeFloatingipAssociateV2(resource_name: str,
                                     args: ComputeFloatingipAssociateV2Args,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ComputeFloatingipAssociateV2(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     floating_ip: Optional[str] = None,
                                     instance_id: Optional[str] = None,
                                     compute_floatingip_associate_v2_id: Optional[str] = None,
                                     fixed_ip: Optional[str] = None,
                                     region: Optional[str] = None)
    func NewComputeFloatingipAssociateV2(ctx *Context, name string, args ComputeFloatingipAssociateV2Args, opts ...ResourceOption) (*ComputeFloatingipAssociateV2, error)
    public ComputeFloatingipAssociateV2(string name, ComputeFloatingipAssociateV2Args args, CustomResourceOptions? opts = null)
    public ComputeFloatingipAssociateV2(String name, ComputeFloatingipAssociateV2Args args)
    public ComputeFloatingipAssociateV2(String name, ComputeFloatingipAssociateV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:ComputeFloatingipAssociateV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ComputeFloatingipAssociateV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ComputeFloatingipAssociateV2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ComputeFloatingipAssociateV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ComputeFloatingipAssociateV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ComputeFloatingipAssociateV2Args
    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 computeFloatingipAssociateV2Resource = new Opentelekomcloud.ComputeFloatingipAssociateV2("computeFloatingipAssociateV2Resource", new()
    {
        FloatingIp = "string",
        InstanceId = "string",
        ComputeFloatingipAssociateV2Id = "string",
        FixedIp = "string",
        Region = "string",
    });
    
    example, err := opentelekomcloud.NewComputeFloatingipAssociateV2(ctx, "computeFloatingipAssociateV2Resource", &opentelekomcloud.ComputeFloatingipAssociateV2Args{
    	FloatingIp:                     pulumi.String("string"),
    	InstanceId:                     pulumi.String("string"),
    	ComputeFloatingipAssociateV2Id: pulumi.String("string"),
    	FixedIp:                        pulumi.String("string"),
    	Region:                         pulumi.String("string"),
    })
    
    var computeFloatingipAssociateV2Resource = new ComputeFloatingipAssociateV2("computeFloatingipAssociateV2Resource", ComputeFloatingipAssociateV2Args.builder()
        .floatingIp("string")
        .instanceId("string")
        .computeFloatingipAssociateV2Id("string")
        .fixedIp("string")
        .region("string")
        .build());
    
    compute_floatingip_associate_v2_resource = opentelekomcloud.ComputeFloatingipAssociateV2("computeFloatingipAssociateV2Resource",
        floating_ip="string",
        instance_id="string",
        compute_floatingip_associate_v2_id="string",
        fixed_ip="string",
        region="string")
    
    const computeFloatingipAssociateV2Resource = new opentelekomcloud.ComputeFloatingipAssociateV2("computeFloatingipAssociateV2Resource", {
        floatingIp: "string",
        instanceId: "string",
        computeFloatingipAssociateV2Id: "string",
        fixedIp: "string",
        region: "string",
    });
    
    type: opentelekomcloud:ComputeFloatingipAssociateV2
    properties:
        computeFloatingipAssociateV2Id: string
        fixedIp: string
        floatingIp: string
        instanceId: string
        region: string
    

    ComputeFloatingipAssociateV2 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 ComputeFloatingipAssociateV2 resource accepts the following input properties:

    FloatingIp string
    The floating IP to associate.
    InstanceId string
    The instance to associte the floating IP with.
    ComputeFloatingipAssociateV2Id string
    FixedIp string
    The specific IP address to direct traffic to.
    Region string
    FloatingIp string
    The floating IP to associate.
    InstanceId string
    The instance to associte the floating IP with.
    ComputeFloatingipAssociateV2Id string
    FixedIp string
    The specific IP address to direct traffic to.
    Region string
    floatingIp String
    The floating IP to associate.
    instanceId String
    The instance to associte the floating IP with.
    computeFloatingipAssociateV2Id String
    fixedIp String
    The specific IP address to direct traffic to.
    region String
    floatingIp string
    The floating IP to associate.
    instanceId string
    The instance to associte the floating IP with.
    computeFloatingipAssociateV2Id string
    fixedIp string
    The specific IP address to direct traffic to.
    region string
    floating_ip str
    The floating IP to associate.
    instance_id str
    The instance to associte the floating IP with.
    compute_floatingip_associate_v2_id str
    fixed_ip str
    The specific IP address to direct traffic to.
    region str
    floatingIp String
    The floating IP to associate.
    instanceId String
    The instance to associte the floating IP with.
    computeFloatingipAssociateV2Id String
    fixedIp String
    The specific IP address to direct traffic to.
    region String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ComputeFloatingipAssociateV2 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 string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ComputeFloatingipAssociateV2 Resource

    Get an existing ComputeFloatingipAssociateV2 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?: ComputeFloatingipAssociateV2State, opts?: CustomResourceOptions): ComputeFloatingipAssociateV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compute_floatingip_associate_v2_id: Optional[str] = None,
            fixed_ip: Optional[str] = None,
            floating_ip: Optional[str] = None,
            instance_id: Optional[str] = None,
            region: Optional[str] = None) -> ComputeFloatingipAssociateV2
    func GetComputeFloatingipAssociateV2(ctx *Context, name string, id IDInput, state *ComputeFloatingipAssociateV2State, opts ...ResourceOption) (*ComputeFloatingipAssociateV2, error)
    public static ComputeFloatingipAssociateV2 Get(string name, Input<string> id, ComputeFloatingipAssociateV2State? state, CustomResourceOptions? opts = null)
    public static ComputeFloatingipAssociateV2 get(String name, Output<String> id, ComputeFloatingipAssociateV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:ComputeFloatingipAssociateV2    get:      id: ${id}
    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.
    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:
    ComputeFloatingipAssociateV2Id string
    FixedIp string
    The specific IP address to direct traffic to.
    FloatingIp string
    The floating IP to associate.
    InstanceId string
    The instance to associte the floating IP with.
    Region string
    ComputeFloatingipAssociateV2Id string
    FixedIp string
    The specific IP address to direct traffic to.
    FloatingIp string
    The floating IP to associate.
    InstanceId string
    The instance to associte the floating IP with.
    Region string
    computeFloatingipAssociateV2Id String
    fixedIp String
    The specific IP address to direct traffic to.
    floatingIp String
    The floating IP to associate.
    instanceId String
    The instance to associte the floating IP with.
    region String
    computeFloatingipAssociateV2Id string
    fixedIp string
    The specific IP address to direct traffic to.
    floatingIp string
    The floating IP to associate.
    instanceId string
    The instance to associte the floating IP with.
    region string
    compute_floatingip_associate_v2_id str
    fixed_ip str
    The specific IP address to direct traffic to.
    floating_ip str
    The floating IP to associate.
    instance_id str
    The instance to associte the floating IP with.
    region str
    computeFloatingipAssociateV2Id String
    fixedIp String
    The specific IP address to direct traffic to.
    floatingIp String
    The floating IP to associate.
    instanceId String
    The instance to associte the floating IP with.
    region String

    Import

    This resource can be imported by specifying all three arguments, separated

    by a forward slash:

    $ pulumi import opentelekomcloud:index/computeFloatingipAssociateV2:ComputeFloatingipAssociateV2 fip_1 <floating_ip>/<instance_id>/<fixed_ip>
    

    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud