1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. ComputeFloatingipV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.ComputeFloatingipV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a V2 floating IP resource within FlexibleEngine Nova (compute) that can be used for compute instances.

    !> Warning: It will be deprecated, using flexibleengine.VpcEip instead.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const floatip1 = new flexibleengine.ComputeFloatingipV2("floatip1", {});
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    floatip1 = flexibleengine.ComputeFloatingipV2("floatip1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewComputeFloatingipV2(ctx, "floatip1", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var floatip1 = new Flexibleengine.ComputeFloatingipV2("floatip1");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.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");
    
        }
    }
    
    resources:
      floatip1:
        type: flexibleengine:ComputeFloatingipV2
    

    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: flexibleengine:ComputeFloatingipV2
    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 ComputeFloatingipV2Args
    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 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 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 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 String
    The unique name of the resource.
    args 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 Flexibleengine.ComputeFloatingipV2("computeFloatingipV2Resource", new()
    {
        ComputeFloatingipV2Id = "string",
        Pool = "string",
        Region = "string",
    });
    
    example, err := flexibleengine.NewComputeFloatingipV2(ctx, "computeFloatingipV2Resource", &flexibleengine.ComputeFloatingipV2Args{
    	ComputeFloatingipV2Id: pulumi.String("string"),
    	Pool:                  pulumi.String("string"),
    	Region:                pulumi.String("string"),
    })
    
    var computeFloatingipV2Resource = new ComputeFloatingipV2("computeFloatingipV2Resource", ComputeFloatingipV2Args.builder()
        .computeFloatingipV2Id("string")
        .pool("string")
        .region("string")
        .build());
    
    compute_floatingip_v2_resource = flexibleengine.ComputeFloatingipV2("computeFloatingipV2Resource",
        compute_floatingip_v2_id="string",
        pool="string",
        region="string")
    
    const computeFloatingipV2Resource = new flexibleengine.ComputeFloatingipV2("computeFloatingipV2Resource", {
        computeFloatingipV2Id: "string",
        pool: "string",
        region: "string",
    });
    
    type: flexibleengine:ComputeFloatingipV2
    properties:
        computeFloatingipV2Id: string
        pool: string
        region: string
    

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

    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: flexibleengine:ComputeFloatingipV2    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:
    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
    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).
    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
    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).
    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
    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).
    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
    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).
    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
    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).
    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
    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).

    Import

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

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

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud