1. Registry
  2. Packages
  3. Selectel Provider
  4. API Docs
  5. VpcPortV2
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel
selectel
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel

    Creates and manages a port using the v2 public API. For more information about ports, see the official Selectel documentation.

    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 port1 = new selectel.VpcPortV2("port_1", {
        projectId: project1.id,
        region: "ru-6",
        networkId: network1.id,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    port1 = selectel.VpcPortV2("port_1",
        project_id=project1["id"],
        region="ru-6",
        network_id=network1["id"])
    
    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.NewVpcPortV2(ctx, "port_1", &selectel.VpcPortV2Args{
    			ProjectId: pulumi.Any(project1.Id),
    			Region:    pulumi.String("ru-6"),
    			NetworkId: pulumi.Any(network1.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.VpcPortV2("port_1", new()
        {
            ProjectId = project1.Id,
            Region = "ru-6",
            NetworkId = network1.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.VpcPortV2;
    import com.pulumi.selectel.VpcPortV2Args;
    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 VpcPortV2("port1", VpcPortV2Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .networkId(network1.id())
                .build());
    
        }
    }
    
    resources:
      port1:
        type: selectel:VpcPortV2
        name: port_1
        properties:
          projectId: ${project1.id}
          region: ru-6
          networkId: ${network1.id}
    
    Example coming soon!
    

    Create VpcPortV2 Resource

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

    Constructor syntax

    new VpcPortV2(name: string, args: VpcPortV2Args, opts?: CustomResourceOptions);
    @overload
    def VpcPortV2(resource_name: str,
                  args: VpcPortV2Args,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcPortV2(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  network_id: Optional[str] = None,
                  region: Optional[str] = None,
                  project_id: Optional[str] = None,
                  mac_address: Optional[str] = None,
                  device_id: Optional[str] = None,
                  dns_name: Optional[str] = None,
                  extra_dhcp_options: Optional[Sequence[VpcPortV2ExtraDhcpOptionArgs]] = None,
                  fixed_ips: Optional[Sequence[VpcPortV2FixedIpArgs]] = None,
                  admin_state_up: Optional[bool] = None,
                  name: Optional[str] = None,
                  device_owner: Optional[str] = None,
                  no_fixed_ip: Optional[bool] = None,
                  no_security_groups: Optional[bool] = None,
                  description: Optional[str] = None,
                  allowed_address_pairs: Optional[Sequence[VpcPortV2AllowedAddressPairArgs]] = None,
                  security_group_ids: Optional[Sequence[str]] = None,
                  tags: Optional[Sequence[str]] = None)
    func NewVpcPortV2(ctx *Context, name string, args VpcPortV2Args, opts ...ResourceOption) (*VpcPortV2, error)
    public VpcPortV2(string name, VpcPortV2Args args, CustomResourceOptions? opts = null)
    public VpcPortV2(String name, VpcPortV2Args args)
    public VpcPortV2(String name, VpcPortV2Args args, CustomResourceOptions options)
    
    type: selectel:VpcPortV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "selectel_vpc_port_v2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VpcPortV2Args
    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 VpcPortV2Args
    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 VpcPortV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcPortV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcPortV2Args
    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 vpcPortV2Resource = new Selectel.VpcPortV2("vpcPortV2Resource", new()
    {
        NetworkId = "string",
        Region = "string",
        ProjectId = "string",
        MacAddress = "string",
        DeviceId = "string",
        DnsName = "string",
        ExtraDhcpOptions = new[]
        {
            new Selectel.Inputs.VpcPortV2ExtraDhcpOptionArgs
            {
                Name = "string",
                Value = "string",
                IpVersion = 0.0,
            },
        },
        FixedIps = new[]
        {
            new Selectel.Inputs.VpcPortV2FixedIpArgs
            {
                IpAddress = "string",
                SubnetId = "string",
            },
        },
        AdminStateUp = false,
        Name = "string",
        DeviceOwner = "string",
        NoFixedIp = false,
        NoSecurityGroups = false,
        Description = "string",
        AllowedAddressPairs = new[]
        {
            new Selectel.Inputs.VpcPortV2AllowedAddressPairArgs
            {
                IpAddress = "string",
                MacAddress = "string",
            },
        },
        SecurityGroupIds = new[]
        {
            "string",
        },
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := selectel.NewVpcPortV2(ctx, "vpcPortV2Resource", &selectel.VpcPortV2Args{
    	NetworkId:  pulumi.String("string"),
    	Region:     pulumi.String("string"),
    	ProjectId:  pulumi.String("string"),
    	MacAddress: pulumi.String("string"),
    	DeviceId:   pulumi.String("string"),
    	DnsName:    pulumi.String("string"),
    	ExtraDhcpOptions: selectel.VpcPortV2ExtraDhcpOptionArray{
    		&selectel.VpcPortV2ExtraDhcpOptionArgs{
    			Name:      pulumi.String("string"),
    			Value:     pulumi.String("string"),
    			IpVersion: pulumi.Float64(0),
    		},
    	},
    	FixedIps: selectel.VpcPortV2FixedIpArray{
    		&selectel.VpcPortV2FixedIpArgs{
    			IpAddress: pulumi.String("string"),
    			SubnetId:  pulumi.String("string"),
    		},
    	},
    	AdminStateUp:     pulumi.Bool(false),
    	Name:             pulumi.String("string"),
    	DeviceOwner:      pulumi.String("string"),
    	NoFixedIp:        pulumi.Bool(false),
    	NoSecurityGroups: pulumi.Bool(false),
    	Description:      pulumi.String("string"),
    	AllowedAddressPairs: selectel.VpcPortV2AllowedAddressPairArray{
    		&selectel.VpcPortV2AllowedAddressPairArgs{
    			IpAddress:  pulumi.String("string"),
    			MacAddress: pulumi.String("string"),
    		},
    	},
    	SecurityGroupIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "selectel_vpc_port_v2" "vpcPortV2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      network_id  = "string"
      region      = "string"
      project_id  = "string"
      mac_address = "string"
      device_id   = "string"
      dns_name    = "string"
      extra_dhcp_options {
        name       = "string"
        value      = "string"
        ip_version = 0
      }
      fixed_ips {
        ip_address = "string"
        subnet_id  = "string"
      }
      admin_state_up     = false
      name               = "string"
      device_owner       = "string"
      no_fixed_ip        = false
      no_security_groups = false
      description        = "string"
      allowed_address_pairs {
        ip_address  = "string"
        mac_address = "string"
      }
      security_group_ids = ["string"]
      tags               = ["string"]
    }
    
    var vpcPortV2Resource = new VpcPortV2("vpcPortV2Resource", VpcPortV2Args.builder()
        .networkId("string")
        .region("string")
        .projectId("string")
        .macAddress("string")
        .deviceId("string")
        .dnsName("string")
        .extraDhcpOptions(VpcPortV2ExtraDhcpOptionArgs.builder()
            .name("string")
            .value("string")
            .ipVersion(0.0)
            .build())
        .fixedIps(VpcPortV2FixedIpArgs.builder()
            .ipAddress("string")
            .subnetId("string")
            .build())
        .adminStateUp(false)
        .name("string")
        .deviceOwner("string")
        .noFixedIp(false)
        .noSecurityGroups(false)
        .description("string")
        .allowedAddressPairs(VpcPortV2AllowedAddressPairArgs.builder()
            .ipAddress("string")
            .macAddress("string")
            .build())
        .securityGroupIds("string")
        .tags("string")
        .build());
    
    vpc_port_v2_resource = selectel.VpcPortV2("vpcPortV2Resource",
        network_id="string",
        region="string",
        project_id="string",
        mac_address="string",
        device_id="string",
        dns_name="string",
        extra_dhcp_options=[{
            "name": "string",
            "value": "string",
            "ip_version": float(0),
        }],
        fixed_ips=[{
            "ip_address": "string",
            "subnet_id": "string",
        }],
        admin_state_up=False,
        name="string",
        device_owner="string",
        no_fixed_ip=False,
        no_security_groups=False,
        description="string",
        allowed_address_pairs=[{
            "ip_address": "string",
            "mac_address": "string",
        }],
        security_group_ids=["string"],
        tags=["string"])
    
    const vpcPortV2Resource = new selectel.VpcPortV2("vpcPortV2Resource", {
        networkId: "string",
        region: "string",
        projectId: "string",
        macAddress: "string",
        deviceId: "string",
        dnsName: "string",
        extraDhcpOptions: [{
            name: "string",
            value: "string",
            ipVersion: 0,
        }],
        fixedIps: [{
            ipAddress: "string",
            subnetId: "string",
        }],
        adminStateUp: false,
        name: "string",
        deviceOwner: "string",
        noFixedIp: false,
        noSecurityGroups: false,
        description: "string",
        allowedAddressPairs: [{
            ipAddress: "string",
            macAddress: "string",
        }],
        securityGroupIds: ["string"],
        tags: ["string"],
    });
    
    type: selectel:VpcPortV2
    properties:
        adminStateUp: false
        allowedAddressPairs:
            - ipAddress: string
              macAddress: string
        description: string
        deviceId: string
        deviceOwner: string
        dnsName: string
        extraDhcpOptions:
            - ipVersion: 0
              name: string
              value: string
        fixedIps:
            - ipAddress: string
              subnetId: string
        macAddress: string
        name: string
        networkId: string
        noFixedIp: false
        noSecurityGroups: false
        projectId: string
        region: string
        securityGroupIds:
            - string
        tags:
            - string
    

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

    NetworkId string
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    ProjectId 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 port.
    Region string
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    AdminStateUp bool
    Specifies if the port is administratively up. The default value is true.
    AllowedAddressPairs List<VpcPortV2AllowedAddressPair>
    Additional IP and MAC address pairs allowed on the port.
    Description string
    Description of the port.
    DeviceId string
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    DeviceOwner string
    Owner of the device the port is attached to. Changing this creates a new port.
    DnsName string
    DNS name of the port. Learn more about Private DNS.
    ExtraDhcpOptions List<VpcPortV2ExtraDhcpOption>
    Extra DHCP options configured on the port.
    FixedIps List<VpcPortV2FixedIp>
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    MacAddress string
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    Name string
    Name of the port.
    NoFixedIp bool
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    NoSecurityGroups bool
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    SecurityGroupIds List<string>
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    Tags List<string>
    Tags of the port.
    NetworkId string
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    ProjectId 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 port.
    Region string
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    AdminStateUp bool
    Specifies if the port is administratively up. The default value is true.
    AllowedAddressPairs []VpcPortV2AllowedAddressPairArgs
    Additional IP and MAC address pairs allowed on the port.
    Description string
    Description of the port.
    DeviceId string
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    DeviceOwner string
    Owner of the device the port is attached to. Changing this creates a new port.
    DnsName string
    DNS name of the port. Learn more about Private DNS.
    ExtraDhcpOptions []VpcPortV2ExtraDhcpOptionArgs
    Extra DHCP options configured on the port.
    FixedIps []VpcPortV2FixedIpArgs
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    MacAddress string
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    Name string
    Name of the port.
    NoFixedIp bool
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    NoSecurityGroups bool
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    SecurityGroupIds []string
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    Tags []string
    Tags of the port.
    network_id string
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    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 port.
    region string
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    admin_state_up bool
    Specifies if the port is administratively up. The default value is true.
    allowed_address_pairs list(object)
    Additional IP and MAC address pairs allowed on the port.
    description string
    Description of the port.
    device_id string
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    device_owner string
    Owner of the device the port is attached to. Changing this creates a new port.
    dns_name string
    DNS name of the port. Learn more about Private DNS.
    extra_dhcp_options list(object)
    Extra DHCP options configured on the port.
    fixed_ips list(object)
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    mac_address string
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    name string
    Name of the port.
    no_fixed_ip bool
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    no_security_groups bool
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    security_group_ids list(string)
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    tags list(string)
    Tags of the port.
    networkId String
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    projectId 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 port.
    region String
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    adminStateUp Boolean
    Specifies if the port is administratively up. The default value is true.
    allowedAddressPairs List<VpcPortV2AllowedAddressPair>
    Additional IP and MAC address pairs allowed on the port.
    description String
    Description of the port.
    deviceId String
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    deviceOwner String
    Owner of the device the port is attached to. Changing this creates a new port.
    dnsName String
    DNS name of the port. Learn more about Private DNS.
    extraDhcpOptions List<VpcPortV2ExtraDhcpOption>
    Extra DHCP options configured on the port.
    fixedIps List<VpcPortV2FixedIp>
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    macAddress String
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    name String
    Name of the port.
    noFixedIp Boolean
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    noSecurityGroups Boolean
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    securityGroupIds List<String>
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    tags List<String>
    Tags of the port.
    networkId string
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    projectId 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 port.
    region string
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    adminStateUp boolean
    Specifies if the port is administratively up. The default value is true.
    allowedAddressPairs VpcPortV2AllowedAddressPair[]
    Additional IP and MAC address pairs allowed on the port.
    description string
    Description of the port.
    deviceId string
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    deviceOwner string
    Owner of the device the port is attached to. Changing this creates a new port.
    dnsName string
    DNS name of the port. Learn more about Private DNS.
    extraDhcpOptions VpcPortV2ExtraDhcpOption[]
    Extra DHCP options configured on the port.
    fixedIps VpcPortV2FixedIp[]
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    macAddress string
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    name string
    Name of the port.
    noFixedIp boolean
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    noSecurityGroups boolean
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    securityGroupIds string[]
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    tags string[]
    Tags of the port.
    network_id str
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    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 port.
    region str
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    admin_state_up bool
    Specifies if the port is administratively up. The default value is true.
    allowed_address_pairs Sequence[VpcPortV2AllowedAddressPairArgs]
    Additional IP and MAC address pairs allowed on the port.
    description str
    Description of the port.
    device_id str
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    device_owner str
    Owner of the device the port is attached to. Changing this creates a new port.
    dns_name str
    DNS name of the port. Learn more about Private DNS.
    extra_dhcp_options Sequence[VpcPortV2ExtraDhcpOptionArgs]
    Extra DHCP options configured on the port.
    fixed_ips Sequence[VpcPortV2FixedIpArgs]
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    mac_address str
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    name str
    Name of the port.
    no_fixed_ip bool
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    no_security_groups bool
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    security_group_ids Sequence[str]
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    tags Sequence[str]
    Tags of the port.
    networkId String
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    projectId 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 port.
    region String
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    adminStateUp Boolean
    Specifies if the port is administratively up. The default value is true.
    allowedAddressPairs List<Property Map>
    Additional IP and MAC address pairs allowed on the port.
    description String
    Description of the port.
    deviceId String
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    deviceOwner String
    Owner of the device the port is attached to. Changing this creates a new port.
    dnsName String
    DNS name of the port. Learn more about Private DNS.
    extraDhcpOptions List<Property Map>
    Extra DHCP options configured on the port.
    fixedIps List<Property Map>
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    macAddress String
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    name String
    Name of the port.
    noFixedIp Boolean
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    noSecurityGroups Boolean
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    securityGroupIds List<String>
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    tags List<String>
    Tags of the port.

    Outputs

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

    AllFixedIps List<VpcPortV2AllFixedIp>
    All fixed IPs of the port.
    AllSecurityGroupIds List<string>
    All unique identifiers of security groups assigned to the port.
    AllTags List<string>
    All tags of the port.
    Blocked bool
    Specifies if the port is administratively blocked.
    DhcpBlocked bool
    Specifies if DHCP is administratively blocked on the port.
    Id string
    The provider-assigned unique ID for this managed resource.
    PortSecurityEnabled bool
    Specifies if port security is enabled.
    Status string
    Status of the port.
    AllFixedIps []VpcPortV2AllFixedIp
    All fixed IPs of the port.
    AllSecurityGroupIds []string
    All unique identifiers of security groups assigned to the port.
    AllTags []string
    All tags of the port.
    Blocked bool
    Specifies if the port is administratively blocked.
    DhcpBlocked bool
    Specifies if DHCP is administratively blocked on the port.
    Id string
    The provider-assigned unique ID for this managed resource.
    PortSecurityEnabled bool
    Specifies if port security is enabled.
    Status string
    Status of the port.
    all_fixed_ips list(object)
    All fixed IPs of the port.
    all_security_group_ids list(string)
    All unique identifiers of security groups assigned to the port.
    all_tags list(string)
    All tags of the port.
    blocked bool
    Specifies if the port is administratively blocked.
    dhcp_blocked bool
    Specifies if DHCP is administratively blocked on the port.
    id string
    The provider-assigned unique ID for this managed resource.
    port_security_enabled bool
    Specifies if port security is enabled.
    status string
    Status of the port.
    allFixedIps List<VpcPortV2AllFixedIp>
    All fixed IPs of the port.
    allSecurityGroupIds List<String>
    All unique identifiers of security groups assigned to the port.
    allTags List<String>
    All tags of the port.
    blocked Boolean
    Specifies if the port is administratively blocked.
    dhcpBlocked Boolean
    Specifies if DHCP is administratively blocked on the port.
    id String
    The provider-assigned unique ID for this managed resource.
    portSecurityEnabled Boolean
    Specifies if port security is enabled.
    status String
    Status of the port.
    allFixedIps VpcPortV2AllFixedIp[]
    All fixed IPs of the port.
    allSecurityGroupIds string[]
    All unique identifiers of security groups assigned to the port.
    allTags string[]
    All tags of the port.
    blocked boolean
    Specifies if the port is administratively blocked.
    dhcpBlocked boolean
    Specifies if DHCP is administratively blocked on the port.
    id string
    The provider-assigned unique ID for this managed resource.
    portSecurityEnabled boolean
    Specifies if port security is enabled.
    status string
    Status of the port.
    all_fixed_ips Sequence[VpcPortV2AllFixedIp]
    All fixed IPs of the port.
    all_security_group_ids Sequence[str]
    All unique identifiers of security groups assigned to the port.
    all_tags Sequence[str]
    All tags of the port.
    blocked bool
    Specifies if the port is administratively blocked.
    dhcp_blocked bool
    Specifies if DHCP is administratively blocked on the port.
    id str
    The provider-assigned unique ID for this managed resource.
    port_security_enabled bool
    Specifies if port security is enabled.
    status str
    Status of the port.
    allFixedIps List<Property Map>
    All fixed IPs of the port.
    allSecurityGroupIds List<String>
    All unique identifiers of security groups assigned to the port.
    allTags List<String>
    All tags of the port.
    blocked Boolean
    Specifies if the port is administratively blocked.
    dhcpBlocked Boolean
    Specifies if DHCP is administratively blocked on the port.
    id String
    The provider-assigned unique ID for this managed resource.
    portSecurityEnabled Boolean
    Specifies if port security is enabled.
    status String
    Status of the port.

    Look up Existing VpcPortV2 Resource

    Get an existing VpcPortV2 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?: VpcPortV2State, opts?: CustomResourceOptions): VpcPortV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            all_fixed_ips: Optional[Sequence[VpcPortV2AllFixedIpArgs]] = None,
            all_security_group_ids: Optional[Sequence[str]] = None,
            all_tags: Optional[Sequence[str]] = None,
            allowed_address_pairs: Optional[Sequence[VpcPortV2AllowedAddressPairArgs]] = None,
            blocked: Optional[bool] = None,
            description: Optional[str] = None,
            device_id: Optional[str] = None,
            device_owner: Optional[str] = None,
            dhcp_blocked: Optional[bool] = None,
            dns_name: Optional[str] = None,
            extra_dhcp_options: Optional[Sequence[VpcPortV2ExtraDhcpOptionArgs]] = None,
            fixed_ips: Optional[Sequence[VpcPortV2FixedIpArgs]] = None,
            mac_address: Optional[str] = None,
            name: Optional[str] = None,
            network_id: Optional[str] = None,
            no_fixed_ip: Optional[bool] = None,
            no_security_groups: Optional[bool] = None,
            port_security_enabled: Optional[bool] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            security_group_ids: Optional[Sequence[str]] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> VpcPortV2
    func GetVpcPortV2(ctx *Context, name string, id IDInput, state *VpcPortV2State, opts ...ResourceOption) (*VpcPortV2, error)
    public static VpcPortV2 Get(string name, Input<string> id, VpcPortV2State? state, CustomResourceOptions? opts = null)
    public static VpcPortV2 get(String name, Output<String> id, VpcPortV2State state, CustomResourceOptions options)
    resources:  _:    type: selectel:VpcPortV2    get:      id: ${id}
    import {
      to = selectel_vpc_port_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.
    The following state arguments are supported:
    AdminStateUp bool
    Specifies if the port is administratively up. The default value is true.
    AllFixedIps List<VpcPortV2AllFixedIp>
    All fixed IPs of the port.
    AllSecurityGroupIds List<string>
    All unique identifiers of security groups assigned to the port.
    AllTags List<string>
    All tags of the port.
    AllowedAddressPairs List<VpcPortV2AllowedAddressPair>
    Additional IP and MAC address pairs allowed on the port.
    Blocked bool
    Specifies if the port is administratively blocked.
    Description string
    Description of the port.
    DeviceId string
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    DeviceOwner string
    Owner of the device the port is attached to. Changing this creates a new port.
    DhcpBlocked bool
    Specifies if DHCP is administratively blocked on the port.
    DnsName string
    DNS name of the port. Learn more about Private DNS.
    ExtraDhcpOptions List<VpcPortV2ExtraDhcpOption>
    Extra DHCP options configured on the port.
    FixedIps List<VpcPortV2FixedIp>
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    MacAddress string
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    Name string
    Name of the port.
    NetworkId string
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    NoFixedIp bool
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    NoSecurityGroups bool
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    PortSecurityEnabled bool
    Specifies if port security is enabled.
    ProjectId 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 port.
    Region string
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    SecurityGroupIds List<string>
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    Status string
    Status of the port.
    Tags List<string>
    Tags of the port.
    AdminStateUp bool
    Specifies if the port is administratively up. The default value is true.
    AllFixedIps []VpcPortV2AllFixedIpArgs
    All fixed IPs of the port.
    AllSecurityGroupIds []string
    All unique identifiers of security groups assigned to the port.
    AllTags []string
    All tags of the port.
    AllowedAddressPairs []VpcPortV2AllowedAddressPairArgs
    Additional IP and MAC address pairs allowed on the port.
    Blocked bool
    Specifies if the port is administratively blocked.
    Description string
    Description of the port.
    DeviceId string
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    DeviceOwner string
    Owner of the device the port is attached to. Changing this creates a new port.
    DhcpBlocked bool
    Specifies if DHCP is administratively blocked on the port.
    DnsName string
    DNS name of the port. Learn more about Private DNS.
    ExtraDhcpOptions []VpcPortV2ExtraDhcpOptionArgs
    Extra DHCP options configured on the port.
    FixedIps []VpcPortV2FixedIpArgs
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    MacAddress string
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    Name string
    Name of the port.
    NetworkId string
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    NoFixedIp bool
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    NoSecurityGroups bool
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    PortSecurityEnabled bool
    Specifies if port security is enabled.
    ProjectId 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 port.
    Region string
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    SecurityGroupIds []string
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    Status string
    Status of the port.
    Tags []string
    Tags of the port.
    admin_state_up bool
    Specifies if the port is administratively up. The default value is true.
    all_fixed_ips list(object)
    All fixed IPs of the port.
    all_security_group_ids list(string)
    All unique identifiers of security groups assigned to the port.
    all_tags list(string)
    All tags of the port.
    allowed_address_pairs list(object)
    Additional IP and MAC address pairs allowed on the port.
    blocked bool
    Specifies if the port is administratively blocked.
    description string
    Description of the port.
    device_id string
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    device_owner string
    Owner of the device the port is attached to. Changing this creates a new port.
    dhcp_blocked bool
    Specifies if DHCP is administratively blocked on the port.
    dns_name string
    DNS name of the port. Learn more about Private DNS.
    extra_dhcp_options list(object)
    Extra DHCP options configured on the port.
    fixed_ips list(object)
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    mac_address string
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    name string
    Name of the port.
    network_id string
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    no_fixed_ip bool
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    no_security_groups bool
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    port_security_enabled bool
    Specifies if port security is enabled.
    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 port.
    region string
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    security_group_ids list(string)
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    status string
    Status of the port.
    tags list(string)
    Tags of the port.
    adminStateUp Boolean
    Specifies if the port is administratively up. The default value is true.
    allFixedIps List<VpcPortV2AllFixedIp>
    All fixed IPs of the port.
    allSecurityGroupIds List<String>
    All unique identifiers of security groups assigned to the port.
    allTags List<String>
    All tags of the port.
    allowedAddressPairs List<VpcPortV2AllowedAddressPair>
    Additional IP and MAC address pairs allowed on the port.
    blocked Boolean
    Specifies if the port is administratively blocked.
    description String
    Description of the port.
    deviceId String
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    deviceOwner String
    Owner of the device the port is attached to. Changing this creates a new port.
    dhcpBlocked Boolean
    Specifies if DHCP is administratively blocked on the port.
    dnsName String
    DNS name of the port. Learn more about Private DNS.
    extraDhcpOptions List<VpcPortV2ExtraDhcpOption>
    Extra DHCP options configured on the port.
    fixedIps List<VpcPortV2FixedIp>
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    macAddress String
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    name String
    Name of the port.
    networkId String
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    noFixedIp Boolean
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    noSecurityGroups Boolean
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    portSecurityEnabled Boolean
    Specifies if port security is enabled.
    projectId 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 port.
    region String
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    securityGroupIds List<String>
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    status String
    Status of the port.
    tags List<String>
    Tags of the port.
    adminStateUp boolean
    Specifies if the port is administratively up. The default value is true.
    allFixedIps VpcPortV2AllFixedIp[]
    All fixed IPs of the port.
    allSecurityGroupIds string[]
    All unique identifiers of security groups assigned to the port.
    allTags string[]
    All tags of the port.
    allowedAddressPairs VpcPortV2AllowedAddressPair[]
    Additional IP and MAC address pairs allowed on the port.
    blocked boolean
    Specifies if the port is administratively blocked.
    description string
    Description of the port.
    deviceId string
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    deviceOwner string
    Owner of the device the port is attached to. Changing this creates a new port.
    dhcpBlocked boolean
    Specifies if DHCP is administratively blocked on the port.
    dnsName string
    DNS name of the port. Learn more about Private DNS.
    extraDhcpOptions VpcPortV2ExtraDhcpOption[]
    Extra DHCP options configured on the port.
    fixedIps VpcPortV2FixedIp[]
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    macAddress string
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    name string
    Name of the port.
    networkId string
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    noFixedIp boolean
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    noSecurityGroups boolean
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    portSecurityEnabled boolean
    Specifies if port security is enabled.
    projectId 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 port.
    region string
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    securityGroupIds string[]
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    status string
    Status of the port.
    tags string[]
    Tags of the port.
    admin_state_up bool
    Specifies if the port is administratively up. The default value is true.
    all_fixed_ips Sequence[VpcPortV2AllFixedIpArgs]
    All fixed IPs of the port.
    all_security_group_ids Sequence[str]
    All unique identifiers of security groups assigned to the port.
    all_tags Sequence[str]
    All tags of the port.
    allowed_address_pairs Sequence[VpcPortV2AllowedAddressPairArgs]
    Additional IP and MAC address pairs allowed on the port.
    blocked bool
    Specifies if the port is administratively blocked.
    description str
    Description of the port.
    device_id str
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    device_owner str
    Owner of the device the port is attached to. Changing this creates a new port.
    dhcp_blocked bool
    Specifies if DHCP is administratively blocked on the port.
    dns_name str
    DNS name of the port. Learn more about Private DNS.
    extra_dhcp_options Sequence[VpcPortV2ExtraDhcpOptionArgs]
    Extra DHCP options configured on the port.
    fixed_ips Sequence[VpcPortV2FixedIpArgs]
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    mac_address str
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    name str
    Name of the port.
    network_id str
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    no_fixed_ip bool
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    no_security_groups bool
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    port_security_enabled bool
    Specifies if port security is enabled.
    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 port.
    region str
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    security_group_ids Sequence[str]
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    status str
    Status of the port.
    tags Sequence[str]
    Tags of the port.
    adminStateUp Boolean
    Specifies if the port is administratively up. The default value is true.
    allFixedIps List<Property Map>
    All fixed IPs of the port.
    allSecurityGroupIds List<String>
    All unique identifiers of security groups assigned to the port.
    allTags List<String>
    All tags of the port.
    allowedAddressPairs List<Property Map>
    Additional IP and MAC address pairs allowed on the port.
    blocked Boolean
    Specifies if the port is administratively blocked.
    description String
    Description of the port.
    deviceId String
    Unique identifier of the device the port is attached to. Changing this creates a new port.
    deviceOwner String
    Owner of the device the port is attached to. Changing this creates a new port.
    dhcpBlocked Boolean
    Specifies if DHCP is administratively blocked on the port.
    dnsName String
    DNS name of the port. Learn more about Private DNS.
    extraDhcpOptions List<Property Map>
    Extra DHCP options configured on the port.
    fixedIps List<Property Map>
    Fixed IPs of the port. If neither is specified, allocates an address from one of the subnets of the network. Conflicts with no_fixed_ip.
    macAddress String
    MAC address of the port, for example fa:16:3e:4c:2c:30. If not specified, it allocates one automatically. Changing this creates a new port.
    name String
    Name of the port.
    networkId String
    Unique identifier of the network the port belongs to. Retrieved from the selectelvpcnetwork_v2 resource. Changing this creates a new port.
    noFixedIp Boolean
    Specifies whether to create the port without any fixed IP. Conflicts with fixed_ip. The default value is false.
    noSecurityGroups Boolean
    Specifies whether to create the port without any security group. Conflicts with security_group_ids. The default value is false.
    portSecurityEnabled Boolean
    Specifies if port security is enabled.
    projectId 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 port.
    region String
    Pool where the port is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new port.
    securityGroupIds List<String>
    Unique identifiers of security groups assigned to the port. If not specified, the port gets the default security group of the project. Retrieved from the selectelvpcsecgroup_v2 resource. Conflicts with no_security_groups.
    status String
    Status of the port.
    tags List<String>
    Tags of the port.

    Supporting Types

    VpcPortV2AllFixedIp, VpcPortV2AllFixedIpArgs

    IpAddress string
    SubnetId string
    IpAddress string
    SubnetId string
    ip_address string
    subnet_id string
    ipAddress String
    subnetId String
    ipAddress string
    subnetId string
    ipAddress String
    subnetId String

    VpcPortV2AllowedAddressPair, VpcPortV2AllowedAddressPairArgs

    IpAddress string
    IP address or CIDR of the pair, for example, 192.168.0.10 or 192.168.0.0/24.
    MacAddress string
    MAC address of the pair, for example, 00:11:22:33:44:55. If not specified, the pair gets own port MAC address.
    IpAddress string
    IP address or CIDR of the pair, for example, 192.168.0.10 or 192.168.0.0/24.
    MacAddress string
    MAC address of the pair, for example, 00:11:22:33:44:55. If not specified, the pair gets own port MAC address.
    ip_address string
    IP address or CIDR of the pair, for example, 192.168.0.10 or 192.168.0.0/24.
    mac_address string
    MAC address of the pair, for example, 00:11:22:33:44:55. If not specified, the pair gets own port MAC address.
    ipAddress String
    IP address or CIDR of the pair, for example, 192.168.0.10 or 192.168.0.0/24.
    macAddress String
    MAC address of the pair, for example, 00:11:22:33:44:55. If not specified, the pair gets own port MAC address.
    ipAddress string
    IP address or CIDR of the pair, for example, 192.168.0.10 or 192.168.0.0/24.
    macAddress string
    MAC address of the pair, for example, 00:11:22:33:44:55. If not specified, the pair gets own port MAC address.
    ip_address str
    IP address or CIDR of the pair, for example, 192.168.0.10 or 192.168.0.0/24.
    mac_address str
    MAC address of the pair, for example, 00:11:22:33:44:55. If not specified, the pair gets own port MAC address.
    ipAddress String
    IP address or CIDR of the pair, for example, 192.168.0.10 or 192.168.0.0/24.
    macAddress String
    MAC address of the pair, for example, 00:11:22:33:44:55. If not specified, the pair gets own port MAC address.

    VpcPortV2ExtraDhcpOption, VpcPortV2ExtraDhcpOptionArgs

    Name string
    Name of the option.
    Value string
    Value of the option.
    IpVersion double
    Internet protocol version of the option. Available versions are 4 or 6. The default value is 4.
    Name string
    Name of the option.
    Value string
    Value of the option.
    IpVersion float64
    Internet protocol version of the option. Available versions are 4 or 6. The default value is 4.
    name string
    Name of the option.
    value string
    Value of the option.
    ip_version number
    Internet protocol version of the option. Available versions are 4 or 6. The default value is 4.
    name String
    Name of the option.
    value String
    Value of the option.
    ipVersion Double
    Internet protocol version of the option. Available versions are 4 or 6. The default value is 4.
    name string
    Name of the option.
    value string
    Value of the option.
    ipVersion number
    Internet protocol version of the option. Available versions are 4 or 6. The default value is 4.
    name str
    Name of the option.
    value str
    Value of the option.
    ip_version float
    Internet protocol version of the option. Available versions are 4 or 6. The default value is 4.
    name String
    Name of the option.
    value String
    Value of the option.
    ipVersion Number
    Internet protocol version of the option. Available versions are 4 or 6. The default value is 4.

    VpcPortV2FixedIp, VpcPortV2FixedIpArgs

    IpAddress string
    Specific address to assign, for example 192.168.1.10. If not specified, it allocates one from the subnet.
    SubnetId string
    Unique identifier of the subnet the address is allocated from. If not specified, selects a suitable subnet of the network. Retrieved from the selectelvpcnetworksubnetv2 resource.
    IpAddress string
    Specific address to assign, for example 192.168.1.10. If not specified, it allocates one from the subnet.
    SubnetId string
    Unique identifier of the subnet the address is allocated from. If not specified, selects a suitable subnet of the network. Retrieved from the selectelvpcnetworksubnetv2 resource.
    ip_address string
    Specific address to assign, for example 192.168.1.10. If not specified, it allocates one from the subnet.
    subnet_id string
    Unique identifier of the subnet the address is allocated from. If not specified, selects a suitable subnet of the network. Retrieved from the selectelvpcnetworksubnetv2 resource.
    ipAddress String
    Specific address to assign, for example 192.168.1.10. If not specified, it allocates one from the subnet.
    subnetId String
    Unique identifier of the subnet the address is allocated from. If not specified, selects a suitable subnet of the network. Retrieved from the selectelvpcnetworksubnetv2 resource.
    ipAddress string
    Specific address to assign, for example 192.168.1.10. If not specified, it allocates one from the subnet.
    subnetId string
    Unique identifier of the subnet the address is allocated from. If not specified, selects a suitable subnet of the network. Retrieved from the selectelvpcnetworksubnetv2 resource.
    ip_address str
    Specific address to assign, for example 192.168.1.10. If not specified, it allocates one from the subnet.
    subnet_id str
    Unique identifier of the subnet the address is allocated from. If not specified, selects a suitable subnet of the network. Retrieved from the selectelvpcnetworksubnetv2 resource.
    ipAddress String
    Specific address to assign, for example 192.168.1.10. If not specified, it allocates one from the subnet.
    subnetId String
    Unique identifier of the subnet the address is allocated from. If not specified, selects a suitable subnet of the network. Retrieved from the selectelvpcnetworksubnetv2 resource.

    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/vpcPortV2:VpcPortV2 port_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 selectel Terraform Provider.
    selectel
    Viewing docs for selectel 9.5.0
    published on Friday, Oct 30, 2026 by selectel

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial