1. Packages
  2. Packages
  3. Selectel Provider
  4. API Docs
  5. VpcPublicPortV1
Viewing docs for selectel 8.2.3
published on Friday, Jul 10, 2026 by selectel
Viewing docs for selectel 8.2.3
published on Friday, Jul 10, 2026 by selectel

    Creates and manages a direct public IP address (public port) in VPC using public API v1. For more information about direct public IP address, see the official Selectel documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const port1 = new selectel.VpcPublicPortV1("port_1", {
        projectId: project1.id,
        region: "ru-6",
        description: "my-own-direct-public-ip-port",
        adminStateUp: false,
        securityGroupIds: [sg1.id],
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    port1 = selectel.VpcPublicPortV1("port_1",
        project_id=project1["id"],
        region="ru-6",
        description="my-own-direct-public-ip-port",
        admin_state_up=False,
        security_group_ids=[sg1["id"]])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v8/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewVpcPublicPortV1(ctx, "port_1", &selectel.VpcPublicPortV1Args{
    			ProjectId:    pulumi.Any(project1.Id),
    			Region:       pulumi.String("ru-6"),
    			Description:  pulumi.String("my-own-direct-public-ip-port"),
    			AdminStateUp: pulumi.Bool(false),
    			SecurityGroupIds: pulumi.StringArray{
    				sg1.Id,
    			},
    		})
    		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 port1 = new Selectel.VpcPublicPortV1("port_1", new()
        {
            ProjectId = project1.Id,
            Region = "ru-6",
            Description = "my-own-direct-public-ip-port",
            AdminStateUp = false,
            SecurityGroupIds = new[]
            {
                sg1.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.VpcPublicPortV1;
    import com.pulumi.selectel.VpcPublicPortV1Args;
    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 port1 = new VpcPublicPortV1("port1", VpcPublicPortV1Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .description("my-own-direct-public-ip-port")
                .adminStateUp(false)
                .securityGroupIds(sg1.id())
                .build());
    
        }
    }
    
    resources:
      port1:
        type: selectel:VpcPublicPortV1
        name: port_1
        properties:
          projectId: ${project1.id}
          region: ru-6
          description: my-own-direct-public-ip-port
          adminStateUp: false
          securityGroupIds:
            - ${sg1.id}
    
    Example coming soon!
    

    Create VpcPublicPortV1 Resource

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

    Constructor syntax

    new VpcPublicPortV1(name: string, args: VpcPublicPortV1Args, opts?: CustomResourceOptions);
    @overload
    def VpcPublicPortV1(resource_name: str,
                        args: VpcPublicPortV1Args,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcPublicPortV1(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        project_id: Optional[str] = None,
                        region: Optional[str] = None,
                        admin_state_up: Optional[bool] = None,
                        description: Optional[str] = None,
                        security_group_ids: Optional[Sequence[str]] = None,
                        vpc_public_port_v1_id: Optional[str] = None)
    func NewVpcPublicPortV1(ctx *Context, name string, args VpcPublicPortV1Args, opts ...ResourceOption) (*VpcPublicPortV1, error)
    public VpcPublicPortV1(string name, VpcPublicPortV1Args args, CustomResourceOptions? opts = null)
    public VpcPublicPortV1(String name, VpcPublicPortV1Args args)
    public VpcPublicPortV1(String name, VpcPublicPortV1Args args, CustomResourceOptions options)
    
    type: selectel:VpcPublicPortV1
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "selectel_vpc_public_port_v1" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VpcPublicPortV1Args
    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 VpcPublicPortV1Args
    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 VpcPublicPortV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcPublicPortV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcPublicPortV1Args
    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 vpcPublicPortV1Resource = new Selectel.VpcPublicPortV1("vpcPublicPortV1Resource", new()
    {
        ProjectId = "string",
        Region = "string",
        AdminStateUp = false,
        Description = "string",
        SecurityGroupIds = new[]
        {
            "string",
        },
        VpcPublicPortV1Id = "string",
    });
    
    example, err := selectel.NewVpcPublicPortV1(ctx, "vpcPublicPortV1Resource", &selectel.VpcPublicPortV1Args{
    	ProjectId:    pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	AdminStateUp: pulumi.Bool(false),
    	Description:  pulumi.String("string"),
    	SecurityGroupIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	VpcPublicPortV1Id: pulumi.String("string"),
    })
    
    resource "selectel_vpc_public_port_v1" "vpcPublicPortV1Resource" {
      lifecycle {
        create_before_destroy = true
      }
      project_id            = "string"
      region                = "string"
      admin_state_up        = false
      description           = "string"
      security_group_ids    = ["string"]
      vpc_public_port_v1_id = "string"
    }
    
    var vpcPublicPortV1Resource = new VpcPublicPortV1("vpcPublicPortV1Resource", VpcPublicPortV1Args.builder()
        .projectId("string")
        .region("string")
        .adminStateUp(false)
        .description("string")
        .securityGroupIds("string")
        .vpcPublicPortV1Id("string")
        .build());
    
    vpc_public_port_v1_resource = selectel.VpcPublicPortV1("vpcPublicPortV1Resource",
        project_id="string",
        region="string",
        admin_state_up=False,
        description="string",
        security_group_ids=["string"],
        vpc_public_port_v1_id="string")
    
    const vpcPublicPortV1Resource = new selectel.VpcPublicPortV1("vpcPublicPortV1Resource", {
        projectId: "string",
        region: "string",
        adminStateUp: false,
        description: "string",
        securityGroupIds: ["string"],
        vpcPublicPortV1Id: "string",
    });
    
    type: selectel:VpcPublicPortV1
    properties:
        adminStateUp: false
        description: string
        projectId: string
        region: string
        securityGroupIds:
            - string
        vpcPublicPortV1Id: string
    

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

    ProjectId string
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    AdminStateUp bool
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    Description string
    — (Optional) Public port description. The default value is an empty string.
    SecurityGroupIds List<string>
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    VpcPublicPortV1Id string
    ProjectId string
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    AdminStateUp bool
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    Description string
    — (Optional) Public port description. The default value is an empty string.
    SecurityGroupIds []string
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    VpcPublicPortV1Id string
    project_id string
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    admin_state_up bool
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    description string
    — (Optional) Public port description. The default value is an empty string.
    security_group_ids list(string)
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    vpc_public_port_v1_id string
    projectId String
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    adminStateUp Boolean
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    description String
    — (Optional) Public port description. The default value is an empty string.
    securityGroupIds List<String>
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    vpcPublicPortV1Id String
    projectId string
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    adminStateUp boolean
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    description string
    — (Optional) Public port description. The default value is an empty string.
    securityGroupIds string[]
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    vpcPublicPortV1Id string
    project_id str
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    admin_state_up bool
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    description str
    — (Optional) Public port description. The default value is an empty string.
    security_group_ids Sequence[str]
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    vpc_public_port_v1_id str
    projectId String
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    adminStateUp Boolean
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    description String
    — (Optional) Public port description. The default value is an empty string.
    securityGroupIds List<String>
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    vpcPublicPortV1Id String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcPublicPortV1 resource produces the following output properties:

    Gateway string
    — IP address of the subnet gateway.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddress string
    — Direct public IP address assigned to the public port.
    NetworkId string
    — Identifier of the service network to which the public port is attached.
    Subnet string
    — CIDR of the subnet in which the public port IP address is allocated.
    Gateway string
    — IP address of the subnet gateway.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddress string
    — Direct public IP address assigned to the public port.
    NetworkId string
    — Identifier of the service network to which the public port is attached.
    Subnet string
    — CIDR of the subnet in which the public port IP address is allocated.
    gateway string
    — IP address of the subnet gateway.
    id string
    The provider-assigned unique ID for this managed resource.
    ip_address string
    — Direct public IP address assigned to the public port.
    network_id string
    — Identifier of the service network to which the public port is attached.
    subnet string
    — CIDR of the subnet in which the public port IP address is allocated.
    gateway String
    — IP address of the subnet gateway.
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddress String
    — Direct public IP address assigned to the public port.
    networkId String
    — Identifier of the service network to which the public port is attached.
    subnet String
    — CIDR of the subnet in which the public port IP address is allocated.
    gateway string
    — IP address of the subnet gateway.
    id string
    The provider-assigned unique ID for this managed resource.
    ipAddress string
    — Direct public IP address assigned to the public port.
    networkId string
    — Identifier of the service network to which the public port is attached.
    subnet string
    — CIDR of the subnet in which the public port IP address is allocated.
    gateway str
    — IP address of the subnet gateway.
    id str
    The provider-assigned unique ID for this managed resource.
    ip_address str
    — Direct public IP address assigned to the public port.
    network_id str
    — Identifier of the service network to which the public port is attached.
    subnet str
    — CIDR of the subnet in which the public port IP address is allocated.
    gateway String
    — IP address of the subnet gateway.
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddress String
    — Direct public IP address assigned to the public port.
    networkId String
    — Identifier of the service network to which the public port is attached.
    subnet String
    — CIDR of the subnet in which the public port IP address is allocated.

    Look up Existing VpcPublicPortV1 Resource

    Get an existing VpcPublicPortV1 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?: VpcPublicPortV1State, opts?: CustomResourceOptions): VpcPublicPortV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            description: Optional[str] = None,
            gateway: Optional[str] = None,
            ip_address: Optional[str] = None,
            network_id: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            security_group_ids: Optional[Sequence[str]] = None,
            subnet: Optional[str] = None,
            vpc_public_port_v1_id: Optional[str] = None) -> VpcPublicPortV1
    func GetVpcPublicPortV1(ctx *Context, name string, id IDInput, state *VpcPublicPortV1State, opts ...ResourceOption) (*VpcPublicPortV1, error)
    public static VpcPublicPortV1 Get(string name, Input<string> id, VpcPublicPortV1State? state, CustomResourceOptions? opts = null)
    public static VpcPublicPortV1 get(String name, Output<String> id, VpcPublicPortV1State state, CustomResourceOptions options)
    resources:  _:    type: selectel:VpcPublicPortV1    get:      id: ${id}
    import {
      to = selectel_vpc_public_port_v1.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.
    The following state arguments are supported:
    AdminStateUp bool
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    Description string
    — (Optional) Public port description. The default value is an empty string.
    Gateway string
    — IP address of the subnet gateway.
    IpAddress string
    — Direct public IP address assigned to the public port.
    NetworkId string
    — Identifier of the service network to which the public port is attached.
    ProjectId string
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    SecurityGroupIds List<string>
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    Subnet string
    — CIDR of the subnet in which the public port IP address is allocated.
    VpcPublicPortV1Id string
    AdminStateUp bool
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    Description string
    — (Optional) Public port description. The default value is an empty string.
    Gateway string
    — IP address of the subnet gateway.
    IpAddress string
    — Direct public IP address assigned to the public port.
    NetworkId string
    — Identifier of the service network to which the public port is attached.
    ProjectId string
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    SecurityGroupIds []string
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    Subnet string
    — CIDR of the subnet in which the public port IP address is allocated.
    VpcPublicPortV1Id string
    admin_state_up bool
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    description string
    — (Optional) Public port description. The default value is an empty string.
    gateway string
    — IP address of the subnet gateway.
    ip_address string
    — Direct public IP address assigned to the public port.
    network_id string
    — Identifier of the service network to which the public port is attached.
    project_id string
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    security_group_ids list(string)
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    subnet string
    — CIDR of the subnet in which the public port IP address is allocated.
    vpc_public_port_v1_id string
    adminStateUp Boolean
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    description String
    — (Optional) Public port description. The default value is an empty string.
    gateway String
    — IP address of the subnet gateway.
    ipAddress String
    — Direct public IP address assigned to the public port.
    networkId String
    — Identifier of the service network to which the public port is attached.
    projectId String
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    securityGroupIds List<String>
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    subnet String
    — CIDR of the subnet in which the public port IP address is allocated.
    vpcPublicPortV1Id String
    adminStateUp boolean
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    description string
    — (Optional) Public port description. The default value is an empty string.
    gateway string
    — IP address of the subnet gateway.
    ipAddress string
    — Direct public IP address assigned to the public port.
    networkId string
    — Identifier of the service network to which the public port is attached.
    projectId string
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    securityGroupIds string[]
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    subnet string
    — CIDR of the subnet in which the public port IP address is allocated.
    vpcPublicPortV1Id string
    admin_state_up bool
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    description str
    — (Optional) Public port description. The default value is an empty string.
    gateway str
    — IP address of the subnet gateway.
    ip_address str
    — Direct public IP address assigned to the public port.
    network_id str
    — Identifier of the service network to which the public port is attached.
    project_id str
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    security_group_ids Sequence[str]
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    subnet str
    — CIDR of the subnet in which the public port IP address is allocated.
    vpc_public_port_v1_id str
    adminStateUp Boolean
    — (Optional) Enables (true) or disables (false) the public port administratively. The default value is true.
    description String
    — (Optional) Public port description. The default value is an empty string.
    gateway String
    — IP address of the subnet gateway.
    ipAddress String
    — Direct public IP address assigned to the public port.
    networkId String
    — Identifier of the service network to which the public port is attached.
    projectId String
    — (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    — (Required) Pool where the public port is located, for example, ru-6. Changing this creates a new public port. Learn more about available pools in the Availability matrix.
    securityGroupIds List<String>
    — (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the openstack_networking_secgroup_v2 resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.
    subnet String
    — CIDR of the subnet in which the public port IP address is allocated.
    vpcPublicPortV1Id String

    Import

    You can import a public port:

    export OS_DOMAIN_NAME=<account_id>

    export OS_USERNAME=

    export OS_PASSWORD=

    export SEL_PROJECT_ID=<selectel_project_id>

    export SEL_REGION=<selectel_pool>

    $ pulumi import selectel:index/vpcPublicPortV1:VpcPublicPortV1 port <public_port_id>
    

    where:

    • <account_id> — Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.

    • <username> — Name of the service user. To get the name, in the top right corner of the Control panel, go to the account menu ⟶ Profile and SettingsUser management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.

    • <password> — Password of the service user.

    • <selectel_project_id> — Unique identifier of the associated project. To get the project ID, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.

    • <selectel_pool> — Pool where the public port is located, for example, ru-6. To get information about the pool, in the Control panel, go to Cloud PlatformNetwork ⟶ the Direct public IP addresses tab. The pool is under the IP address.

    • <public_port_id> — Unique identifier of the public port, for example, b311ce58-2658-46b5-b733-7a0f418703f2. To get the public port ID, in the Control panel, go to Cloud PlatformNetwork ⟶ the Direct public IP addresses tab ⟶ copy the ID of the public port on the right side of the public port card.

    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 selectel Terraform Provider.
    Viewing docs for selectel 8.2.3
    published on Friday, Jul 10, 2026 by selectel

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial