published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel
Creates and manages the association between an existing public floating IP address and an existing port using the v2 public API. For more information about public floating IP addresses, see the official Selectel documentation.
The resource manages only the association and never creates or deletes the public floating IP address or the port.
If you are upgrading from a version earlier than 9.1.0, follow the upgrade guide to migrate your resources from the OpenStack provider.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const association1 = new selectel.VpcFloatingipAssociateV2("association_1", {
projectId: project1.id,
region: "ru-6",
floatingIp: floatingip1.floatingIpAddress,
portId: port1.id,
}, {
dependsOn: [interface1],
});
import pulumi
import pulumi_selectel as selectel
association1 = selectel.VpcFloatingipAssociateV2("association_1",
project_id=project1["id"],
region="ru-6",
floating_ip=floatingip1["floatingIpAddress"],
port_id=port1["id"],
opts = pulumi.ResourceOptions(depends_on=[interface1]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v9/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewVpcFloatingipAssociateV2(ctx, "association_1", &selectel.VpcFloatingipAssociateV2Args{
ProjectId: pulumi.Any(project1.Id),
Region: pulumi.String("ru-6"),
FloatingIp: pulumi.Any(floatingip1.FloatingIpAddress),
PortId: pulumi.Any(port1.Id),
}, pulumi.DependsOn([]pulumi.Resource{
interface1,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var association1 = new Selectel.VpcFloatingipAssociateV2("association_1", new()
{
ProjectId = project1.Id,
Region = "ru-6",
FloatingIp = floatingip1.FloatingIpAddress,
PortId = port1.Id,
}, new CustomResourceOptions
{
DependsOn =
{
interface1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.VpcFloatingipAssociateV2;
import com.pulumi.selectel.VpcFloatingipAssociateV2Args;
import com.pulumi.resources.CustomResourceOptions;
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 association1 = new VpcFloatingipAssociateV2("association1", VpcFloatingipAssociateV2Args.builder()
.projectId(project1.id())
.region("ru-6")
.floatingIp(floatingip1.floatingIpAddress())
.portId(port1.id())
.build(), CustomResourceOptions.builder()
.dependsOn(interface1)
.build());
}
}
resources:
association1:
type: selectel:VpcFloatingipAssociateV2
name: association_1
properties:
projectId: ${project1.id}
region: ru-6
floatingIp: ${floatingip1.floatingIpAddress}
portId: ${port1.id}
options:
dependsOn:
- ${interface1}
Example coming soon!
Create VpcFloatingipAssociateV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcFloatingipAssociateV2(name: string, args: VpcFloatingipAssociateV2Args, opts?: CustomResourceOptions);@overload
def VpcFloatingipAssociateV2(resource_name: str,
args: VpcFloatingipAssociateV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def VpcFloatingipAssociateV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
floating_ip: Optional[str] = None,
port_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
fixed_ip: Optional[str] = None,
timeouts: Optional[VpcFloatingipAssociateV2TimeoutsArgs] = None)func NewVpcFloatingipAssociateV2(ctx *Context, name string, args VpcFloatingipAssociateV2Args, opts ...ResourceOption) (*VpcFloatingipAssociateV2, error)public VpcFloatingipAssociateV2(string name, VpcFloatingipAssociateV2Args args, CustomResourceOptions? opts = null)
public VpcFloatingipAssociateV2(String name, VpcFloatingipAssociateV2Args args)
public VpcFloatingipAssociateV2(String name, VpcFloatingipAssociateV2Args args, CustomResourceOptions options)
type: selectel:VpcFloatingipAssociateV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "selectel_vpc_floatingip_associate_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VpcFloatingipAssociateV2Args
- 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 VpcFloatingipAssociateV2Args
- 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 VpcFloatingipAssociateV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcFloatingipAssociateV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcFloatingipAssociateV2Args
- 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 vpcFloatingipAssociateV2Resource = new Selectel.VpcFloatingipAssociateV2("vpcFloatingipAssociateV2Resource", new()
{
FloatingIp = "string",
PortId = "string",
ProjectId = "string",
Region = "string",
FixedIp = "string",
Timeouts = new Selectel.Inputs.VpcFloatingipAssociateV2TimeoutsArgs
{
Create = "string",
Update = "string",
},
});
example, err := selectel.NewVpcFloatingipAssociateV2(ctx, "vpcFloatingipAssociateV2Resource", &selectel.VpcFloatingipAssociateV2Args{
FloatingIp: pulumi.String("string"),
PortId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
FixedIp: pulumi.String("string"),
Timeouts: &selectel.VpcFloatingipAssociateV2TimeoutsArgs{
Create: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "selectel_vpc_floatingip_associate_v2" "vpcFloatingipAssociateV2Resource" {
lifecycle {
create_before_destroy = true
}
floating_ip = "string"
port_id = "string"
project_id = "string"
region = "string"
fixed_ip = "string"
timeouts = {
create = "string"
update = "string"
}
}
var vpcFloatingipAssociateV2Resource = new VpcFloatingipAssociateV2("vpcFloatingipAssociateV2Resource", VpcFloatingipAssociateV2Args.builder()
.floatingIp("string")
.portId("string")
.projectId("string")
.region("string")
.fixedIp("string")
.timeouts(VpcFloatingipAssociateV2TimeoutsArgs.builder()
.create("string")
.update("string")
.build())
.build());
vpc_floatingip_associate_v2_resource = selectel.VpcFloatingipAssociateV2("vpcFloatingipAssociateV2Resource",
floating_ip="string",
port_id="string",
project_id="string",
region="string",
fixed_ip="string",
timeouts={
"create": "string",
"update": "string",
})
const vpcFloatingipAssociateV2Resource = new selectel.VpcFloatingipAssociateV2("vpcFloatingipAssociateV2Resource", {
floatingIp: "string",
portId: "string",
projectId: "string",
region: "string",
fixedIp: "string",
timeouts: {
create: "string",
update: "string",
},
});
type: selectel:VpcFloatingipAssociateV2
properties:
fixedIp: string
floatingIp: string
portId: string
projectId: string
region: string
timeouts:
create: string
update: string
VpcFloatingipAssociateV2 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 VpcFloatingipAssociateV2 resource accepts the following input properties:
- Floating
Ip string - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - Port
Id string - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - Region string
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - Fixed
Ip string - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - Timeouts
Vpc
Floatingip Associate V2Timeouts
- Floating
Ip string - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - Port
Id string - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - Region string
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - Fixed
Ip string - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - Timeouts
Vpc
Floatingip Associate V2Timeouts Args
- floating_
ip string - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - port_
id string - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- project_
id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - region string
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - fixed_
ip string - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - timeouts object
- floating
Ip String - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - port
Id String - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - region String
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - fixed
Ip String - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - timeouts
Vpc
Floatingip Associate V2Timeouts
- floating
Ip string - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - port
Id string - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - region string
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - fixed
Ip string - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - timeouts
Vpc
Floatingip Associate V2Timeouts
- floating_
ip str - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - port_
id str - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- project_
id str - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - region str
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - fixed_
ip str - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - timeouts
Vpc
Floatingip Associate V2Timeouts Args
- floating
Ip String - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - port
Id String - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - region String
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - fixed
Ip String - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcFloatingipAssociateV2 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 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 VpcFloatingipAssociateV2 Resource
Get an existing VpcFloatingipAssociateV2 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?: VpcFloatingipAssociateV2State, opts?: CustomResourceOptions): VpcFloatingipAssociateV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
fixed_ip: Optional[str] = None,
floating_ip: Optional[str] = None,
port_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[VpcFloatingipAssociateV2TimeoutsArgs] = None) -> VpcFloatingipAssociateV2func GetVpcFloatingipAssociateV2(ctx *Context, name string, id IDInput, state *VpcFloatingipAssociateV2State, opts ...ResourceOption) (*VpcFloatingipAssociateV2, error)public static VpcFloatingipAssociateV2 Get(string name, Input<string> id, VpcFloatingipAssociateV2State? state, CustomResourceOptions? opts = null)public static VpcFloatingipAssociateV2 get(String name, Output<String> id, VpcFloatingipAssociateV2State state, CustomResourceOptions options)resources: _: type: selectel:VpcFloatingipAssociateV2 get: id: ${id}import {
to = selectel_vpc_floatingip_associate_v2.example
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.
- Fixed
Ip string - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - Floating
Ip string - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - Port
Id string - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - Region string
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - Timeouts
Vpc
Floatingip Associate V2Timeouts
- Fixed
Ip string - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - Floating
Ip string - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - Port
Id string - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - Region string
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - Timeouts
Vpc
Floatingip Associate V2Timeouts Args
- fixed_
ip string - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - floating_
ip string - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - port_
id string - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- project_
id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - region string
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - timeouts object
- fixed
Ip String - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - floating
Ip String - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - port
Id String - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - region String
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - timeouts
Vpc
Floatingip Associate V2Timeouts
- fixed
Ip string - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - floating
Ip string - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - port
Id string - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - region string
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - timeouts
Vpc
Floatingip Associate V2Timeouts
- fixed_
ip str - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - floating_
ip str - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - port_
id str - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- project_
id str - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - region str
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - timeouts
Vpc
Floatingip Associate V2Timeouts Args
- fixed
Ip String - Fixed IP address of the port to associate, for example,
192.168.1.10. Must be set if the port has multiple fixed IP addresses. If the port has a single fixed IP address, can be omitted. - floating
Ip String - Public floating IP address to associate, for example,
192.168.1.10. Retrieved from the selectelvpcfloatingip_v2 resource. Changing this creates a new association. - port
Id String - Unique identifier of the existing port. Retrieved from the selectelvpcport_v2 resource.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new association. - region String
- Pool where the public floating IP address and port are located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new association. - timeouts Property Map
Supporting Types
VpcFloatingipAssociateV2Timeouts, VpcFloatingipAssociateV2TimeoutsArgs
Import
All versions
Use the pulumi import command:
export OS_DOMAIN_NAME=<domain_name>
export OS_USERNAME=
export OS_PASSWORD=
export INFRA_PROJECT_ID=<project_id>
export INFRA_REGION=
$ pulumi import selectel:index/vpcFloatingipAssociateV2:VpcFloatingipAssociateV2 association_1 <id>
<domain_name>, <username>, and <password> are the arguments of the provider configuration.
Other identity attributes are described above in the import or resource sections.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
published on Friday, Oct 30, 2026 by selectel