opentelekomcloud.NetworkingFloatingipV2
Explore with Pulumi AI
Up-to-date reference of API arguments for VPC floating ip you can get at documentation portal
Manages a V2 floating IP resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const floatip1 = new opentelekomcloud.NetworkingFloatingipV2("floatip1", {});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
floatip1 = opentelekomcloud.NetworkingFloatingipV2("floatip1")
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.NewNetworkingFloatingipV2(ctx, "floatip1", nil)
		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 floatip1 = new Opentelekomcloud.NetworkingFloatingipV2("floatip1");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.NetworkingFloatingipV2;
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 NetworkingFloatingipV2("floatip1");
    }
}
resources:
  floatip1:
    type: opentelekomcloud:NetworkingFloatingipV2
Create NetworkingFloatingipV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkingFloatingipV2(name: string, args?: NetworkingFloatingipV2Args, opts?: CustomResourceOptions);@overload
def NetworkingFloatingipV2(resource_name: str,
                           args: Optional[NetworkingFloatingipV2Args] = None,
                           opts: Optional[ResourceOptions] = None)
@overload
def NetworkingFloatingipV2(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           fixed_ip: Optional[str] = None,
                           networking_floatingip_v2_id: Optional[str] = None,
                           pool: Optional[str] = None,
                           port_id: Optional[str] = None,
                           region: Optional[str] = None,
                           tenant_id: Optional[str] = None,
                           timeouts: Optional[NetworkingFloatingipV2TimeoutsArgs] = None,
                           value_specs: Optional[Mapping[str, str]] = None)func NewNetworkingFloatingipV2(ctx *Context, name string, args *NetworkingFloatingipV2Args, opts ...ResourceOption) (*NetworkingFloatingipV2, error)public NetworkingFloatingipV2(string name, NetworkingFloatingipV2Args? args = null, CustomResourceOptions? opts = null)
public NetworkingFloatingipV2(String name, NetworkingFloatingipV2Args args)
public NetworkingFloatingipV2(String name, NetworkingFloatingipV2Args args, CustomResourceOptions options)
type: opentelekomcloud:NetworkingFloatingipV2
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 NetworkingFloatingipV2Args
- 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 NetworkingFloatingipV2Args
- 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 NetworkingFloatingipV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkingFloatingipV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkingFloatingipV2Args
- 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 networkingFloatingipV2Resource = new Opentelekomcloud.NetworkingFloatingipV2("networkingFloatingipV2Resource", new()
{
    FixedIp = "string",
    NetworkingFloatingipV2Id = "string",
    Pool = "string",
    PortId = "string",
    Region = "string",
    TenantId = "string",
    Timeouts = new Opentelekomcloud.Inputs.NetworkingFloatingipV2TimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    ValueSpecs = 
    {
        { "string", "string" },
    },
});
example, err := opentelekomcloud.NewNetworkingFloatingipV2(ctx, "networkingFloatingipV2Resource", &opentelekomcloud.NetworkingFloatingipV2Args{
FixedIp: pulumi.String("string"),
NetworkingFloatingipV2Id: pulumi.String("string"),
Pool: pulumi.String("string"),
PortId: pulumi.String("string"),
Region: pulumi.String("string"),
TenantId: pulumi.String("string"),
Timeouts: &.NetworkingFloatingipV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
ValueSpecs: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var networkingFloatingipV2Resource = new NetworkingFloatingipV2("networkingFloatingipV2Resource", NetworkingFloatingipV2Args.builder()
    .fixedIp("string")
    .networkingFloatingipV2Id("string")
    .pool("string")
    .portId("string")
    .region("string")
    .tenantId("string")
    .timeouts(NetworkingFloatingipV2TimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .valueSpecs(Map.of("string", "string"))
    .build());
networking_floatingip_v2_resource = opentelekomcloud.NetworkingFloatingipV2("networkingFloatingipV2Resource",
    fixed_ip="string",
    networking_floatingip_v2_id="string",
    pool="string",
    port_id="string",
    region="string",
    tenant_id="string",
    timeouts={
        "create": "string",
        "delete": "string",
    },
    value_specs={
        "string": "string",
    })
const networkingFloatingipV2Resource = new opentelekomcloud.NetworkingFloatingipV2("networkingFloatingipV2Resource", {
    fixedIp: "string",
    networkingFloatingipV2Id: "string",
    pool: "string",
    portId: "string",
    region: "string",
    tenantId: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
    valueSpecs: {
        string: "string",
    },
});
type: opentelekomcloud:NetworkingFloatingipV2
properties:
    fixedIp: string
    networkingFloatingipV2Id: string
    pool: string
    portId: string
    region: string
    tenantId: string
    timeouts:
        create: string
        delete: string
    valueSpecs:
        string: string
NetworkingFloatingipV2 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 NetworkingFloatingipV2 resource accepts the following input properties:
- FixedIp string
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- NetworkingFloatingip stringV2Id 
- The floating IP id.
- 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.
- PortId string
- ID of an existing port with at least one IP address to associate with this floating IP.
- Region string
- TenantId string
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- Timeouts
NetworkingFloatingip V2Timeouts 
- ValueSpecs Dictionary<string, string>
- Map of additional options.
- FixedIp string
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- NetworkingFloatingip stringV2Id 
- The floating IP id.
- 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.
- PortId string
- ID of an existing port with at least one IP address to associate with this floating IP.
- Region string
- TenantId string
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- Timeouts
NetworkingFloatingip V2Timeouts Args 
- ValueSpecs map[string]string
- Map of additional options.
- fixedIp String
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- networkingFloatingip StringV2Id 
- The floating IP id.
- 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.
- portId String
- ID of an existing port with at least one IP address to associate with this floating IP.
- region String
- tenantId String
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- timeouts
NetworkingFloatingip V2Timeouts 
- valueSpecs Map<String,String>
- Map of additional options.
- fixedIp string
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- networkingFloatingip stringV2Id 
- The floating IP id.
- 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.
- portId string
- ID of an existing port with at least one IP address to associate with this floating IP.
- region string
- tenantId string
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- timeouts
NetworkingFloatingip V2Timeouts 
- valueSpecs {[key: string]: string}
- Map of additional options.
- fixed_ip str
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- networking_floatingip_ strv2_ id 
- The floating IP id.
- 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.
- port_id str
- ID of an existing port with at least one IP address to associate with this floating IP.
- region str
- tenant_id str
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- timeouts
NetworkingFloatingip V2Timeouts Args 
- value_specs Mapping[str, str]
- Map of additional options.
- fixedIp String
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- networkingFloatingip StringV2Id 
- The floating IP id.
- 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.
- portId String
- ID of an existing port with at least one IP address to associate with this floating IP.
- region String
- tenantId String
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- timeouts Property Map
- valueSpecs Map<String>
- Map of additional options.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkingFloatingipV2 resource produces the following output properties:
Look up Existing NetworkingFloatingipV2 Resource
Get an existing NetworkingFloatingipV2 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?: NetworkingFloatingipV2State, opts?: CustomResourceOptions): NetworkingFloatingipV2@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address: Optional[str] = None,
        fixed_ip: Optional[str] = None,
        networking_floatingip_v2_id: Optional[str] = None,
        pool: Optional[str] = None,
        port_id: Optional[str] = None,
        region: Optional[str] = None,
        tenant_id: Optional[str] = None,
        timeouts: Optional[NetworkingFloatingipV2TimeoutsArgs] = None,
        value_specs: Optional[Mapping[str, str]] = None) -> NetworkingFloatingipV2func GetNetworkingFloatingipV2(ctx *Context, name string, id IDInput, state *NetworkingFloatingipV2State, opts ...ResourceOption) (*NetworkingFloatingipV2, error)public static NetworkingFloatingipV2 Get(string name, Input<string> id, NetworkingFloatingipV2State? state, CustomResourceOptions? opts = null)public static NetworkingFloatingipV2 get(String name, Output<String> id, NetworkingFloatingipV2State state, CustomResourceOptions options)resources:  _:    type: opentelekomcloud:NetworkingFloatingipV2    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.
- Address string
- The actual floating IP address itself.
- FixedIp string
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- NetworkingFloatingip stringV2Id 
- The floating IP id.
- 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.
- PortId string
- ID of an existing port with at least one IP address to associate with this floating IP.
- Region string
- TenantId string
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- Timeouts
NetworkingFloatingip V2Timeouts 
- ValueSpecs Dictionary<string, string>
- Map of additional options.
- Address string
- The actual floating IP address itself.
- FixedIp string
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- NetworkingFloatingip stringV2Id 
- The floating IP id.
- 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.
- PortId string
- ID of an existing port with at least one IP address to associate with this floating IP.
- Region string
- TenantId string
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- Timeouts
NetworkingFloatingip V2Timeouts Args 
- ValueSpecs map[string]string
- Map of additional options.
- address String
- The actual floating IP address itself.
- fixedIp String
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- networkingFloatingip StringV2Id 
- The floating IP id.
- 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.
- portId String
- ID of an existing port with at least one IP address to associate with this floating IP.
- region String
- tenantId String
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- timeouts
NetworkingFloatingip V2Timeouts 
- valueSpecs Map<String,String>
- Map of additional options.
- address string
- The actual floating IP address itself.
- fixedIp string
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- networkingFloatingip stringV2Id 
- The floating IP id.
- 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.
- portId string
- ID of an existing port with at least one IP address to associate with this floating IP.
- region string
- tenantId string
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- timeouts
NetworkingFloatingip V2Timeouts 
- valueSpecs {[key: string]: string}
- Map of additional options.
- address str
- The actual floating IP address itself.
- fixed_ip str
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- networking_floatingip_ strv2_ id 
- The floating IP id.
- 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.
- port_id str
- ID of an existing port with at least one IP address to associate with this floating IP.
- region str
- tenant_id str
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- timeouts
NetworkingFloatingip V2Timeouts Args 
- value_specs Mapping[str, str]
- Map of additional options.
- address String
- The actual floating IP address itself.
- fixedIp String
- Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.
- networkingFloatingip StringV2Id 
- The floating IP id.
- 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.
- portId String
- ID of an existing port with at least one IP address to associate with this floating IP.
- region String
- tenantId String
- The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address).
- timeouts Property Map
- valueSpecs Map<String>
- Map of additional options.
Supporting Types
NetworkingFloatingipV2Timeouts, NetworkingFloatingipV2TimeoutsArgs      
Import
Floating IPs can be imported using the id, e.g.
$ pulumi import opentelekomcloud:index/networkingFloatingipV2:NetworkingFloatingipV2 floatip_1 2c7f39f3-702b-48d1-940c-b50384177ee1
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 opentelekomcloudTerraform Provider.