published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel
Creates and manages a security group using the v2 public API. For more information about security groups, 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
Security group with the default egress rules
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const secgroup1 = new selectel.VpcSecgroupV2("secgroup_1", {
projectId: project1.id,
region: "ru-6",
name: "secgroup-1",
});
import pulumi
import pulumi_selectel as selectel
secgroup1 = selectel.VpcSecgroupV2("secgroup_1",
project_id=project1["id"],
region="ru-6",
name="secgroup-1")
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.NewVpcSecgroupV2(ctx, "secgroup_1", &selectel.VpcSecgroupV2Args{
ProjectId: pulumi.Any(project1.Id),
Region: pulumi.String("ru-6"),
Name: pulumi.String("secgroup-1"),
})
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 secgroup1 = new Selectel.VpcSecgroupV2("secgroup_1", new()
{
ProjectId = project1.Id,
Region = "ru-6",
Name = "secgroup-1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.VpcSecgroupV2;
import com.pulumi.selectel.VpcSecgroupV2Args;
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 secgroup1 = new VpcSecgroupV2("secgroup1", VpcSecgroupV2Args.builder()
.projectId(project1.id())
.region("ru-6")
.name("secgroup-1")
.build());
}
}
resources:
secgroup1:
type: selectel:VpcSecgroupV2
name: secgroup_1
properties:
projectId: ${project1.id}
region: ru-6
name: secgroup-1
Example coming soon!
Security group without the default egress rules
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const secgroup2 = new selectel.VpcSecgroupV2("secgroup_2", {
projectId: project1.id,
region: "ru-6",
name: "secgroup-2",
deleteDefaultRules: true,
});
import pulumi
import pulumi_selectel as selectel
secgroup2 = selectel.VpcSecgroupV2("secgroup_2",
project_id=project1["id"],
region="ru-6",
name="secgroup-2",
delete_default_rules=True)
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.NewVpcSecgroupV2(ctx, "secgroup_2", &selectel.VpcSecgroupV2Args{
ProjectId: pulumi.Any(project1.Id),
Region: pulumi.String("ru-6"),
Name: pulumi.String("secgroup-2"),
DeleteDefaultRules: pulumi.Bool(true),
})
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 secgroup2 = new Selectel.VpcSecgroupV2("secgroup_2", new()
{
ProjectId = project1.Id,
Region = "ru-6",
Name = "secgroup-2",
DeleteDefaultRules = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.VpcSecgroupV2;
import com.pulumi.selectel.VpcSecgroupV2Args;
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 secgroup2 = new VpcSecgroupV2("secgroup2", VpcSecgroupV2Args.builder()
.projectId(project1.id())
.region("ru-6")
.name("secgroup-2")
.deleteDefaultRules(true)
.build());
}
}
resources:
secgroup2:
type: selectel:VpcSecgroupV2
name: secgroup_2
properties:
projectId: ${project1.id}
region: ru-6
name: secgroup-2
deleteDefaultRules: true
Example coming soon!
Create VpcSecgroupV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcSecgroupV2(name: string, args: VpcSecgroupV2Args, opts?: CustomResourceOptions);@overload
def VpcSecgroupV2(resource_name: str,
args: VpcSecgroupV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def VpcSecgroupV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
delete_default_rules: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
stateful: Optional[bool] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[VpcSecgroupV2TimeoutsArgs] = None)func NewVpcSecgroupV2(ctx *Context, name string, args VpcSecgroupV2Args, opts ...ResourceOption) (*VpcSecgroupV2, error)public VpcSecgroupV2(string name, VpcSecgroupV2Args args, CustomResourceOptions? opts = null)
public VpcSecgroupV2(String name, VpcSecgroupV2Args args)
public VpcSecgroupV2(String name, VpcSecgroupV2Args args, CustomResourceOptions options)
type: selectel:VpcSecgroupV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "selectel_vpc_secgroup_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VpcSecgroupV2Args
- 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 VpcSecgroupV2Args
- 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 VpcSecgroupV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcSecgroupV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcSecgroupV2Args
- 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 vpcSecgroupV2Resource = new Selectel.VpcSecgroupV2("vpcSecgroupV2Resource", new()
{
ProjectId = "string",
Region = "string",
DeleteDefaultRules = false,
Description = "string",
Name = "string",
Stateful = false,
Tags = new[]
{
"string",
},
Timeouts = new Selectel.Inputs.VpcSecgroupV2TimeoutsArgs
{
Delete = "string",
},
});
example, err := selectel.NewVpcSecgroupV2(ctx, "vpcSecgroupV2Resource", &selectel.VpcSecgroupV2Args{
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
DeleteDefaultRules: pulumi.Bool(false),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Stateful: pulumi.Bool(false),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Timeouts: &selectel.VpcSecgroupV2TimeoutsArgs{
Delete: pulumi.String("string"),
},
})
resource "selectel_vpc_secgroup_v2" "vpcSecgroupV2Resource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
region = "string"
delete_default_rules = false
description = "string"
name = "string"
stateful = false
tags = ["string"]
timeouts = {
delete = "string"
}
}
var vpcSecgroupV2Resource = new VpcSecgroupV2("vpcSecgroupV2Resource", VpcSecgroupV2Args.builder()
.projectId("string")
.region("string")
.deleteDefaultRules(false)
.description("string")
.name("string")
.stateful(false)
.tags("string")
.timeouts(VpcSecgroupV2TimeoutsArgs.builder()
.delete("string")
.build())
.build());
vpc_secgroup_v2_resource = selectel.VpcSecgroupV2("vpcSecgroupV2Resource",
project_id="string",
region="string",
delete_default_rules=False,
description="string",
name="string",
stateful=False,
tags=["string"],
timeouts={
"delete": "string",
})
const vpcSecgroupV2Resource = new selectel.VpcSecgroupV2("vpcSecgroupV2Resource", {
projectId: "string",
region: "string",
deleteDefaultRules: false,
description: "string",
name: "string",
stateful: false,
tags: ["string"],
timeouts: {
"delete": "string",
},
});
type: selectel:VpcSecgroupV2
properties:
deleteDefaultRules: false
description: string
name: string
projectId: string
region: string
stateful: false
tags:
- string
timeouts:
delete: string
VpcSecgroupV2 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 VpcSecgroupV2 resource accepts the following input properties:
- 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 security group. - Region string
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - Delete
Default boolRules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - Description string
- Description of the security group.
- Name string
- Name of the security group.
- Stateful bool
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- List<string>
- Tags of the security group.
- Timeouts
Vpc
Secgroup V2Timeouts
- 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 security group. - Region string
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - Delete
Default boolRules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - Description string
- Description of the security group.
- Name string
- Name of the security group.
- Stateful bool
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- []string
- Tags of the security group.
- Timeouts
Vpc
Secgroup V2Timeouts Args
- 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 security group. - region string
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - delete_
default_ boolrules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - description string
- Description of the security group.
- name string
- Name of the security group.
- stateful bool
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- list(string)
- Tags of the security group.
- timeouts object
- 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 security group. - region String
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - delete
Default BooleanRules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - description String
- Description of the security group.
- name String
- Name of the security group.
- stateful Boolean
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- List<String>
- Tags of the security group.
- timeouts
Vpc
Secgroup V2Timeouts
- 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 security group. - region string
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - delete
Default booleanRules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - description string
- Description of the security group.
- name string
- Name of the security group.
- stateful boolean
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- string[]
- Tags of the security group.
- timeouts
Vpc
Secgroup V2Timeouts
- 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 security group. - region str
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - delete_
default_ boolrules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - description str
- Description of the security group.
- name str
- Name of the security group.
- stateful bool
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- Sequence[str]
- Tags of the security group.
- timeouts
Vpc
Secgroup V2Timeouts Args
- 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 security group. - region String
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - delete
Default BooleanRules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - description String
- Description of the security group.
- name String
- Name of the security group.
- stateful Boolean
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- List<String>
- Tags of the security group.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcSecgroupV2 resource produces the following output properties:
- List<string>
- All tags of the security group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Group List<string>Rules - Unique identifiers of rules contained in the security group.
- bool
- Specifies if another project has been granted access to this group.
- []string
- All tags of the security group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Group []stringRules - Unique identifiers of rules contained in the security group.
- bool
- Specifies if another project has been granted access to this group.
- list(string)
- All tags of the security group.
- id string
- The provider-assigned unique ID for this managed resource.
- security_
group_ list(string)rules - Unique identifiers of rules contained in the security group.
- bool
- Specifies if another project has been granted access to this group.
- List<String>
- All tags of the security group.
- id String
- The provider-assigned unique ID for this managed resource.
- security
Group List<String>Rules - Unique identifiers of rules contained in the security group.
- Boolean
- Specifies if another project has been granted access to this group.
- string[]
- All tags of the security group.
- id string
- The provider-assigned unique ID for this managed resource.
- security
Group string[]Rules - Unique identifiers of rules contained in the security group.
- boolean
- Specifies if another project has been granted access to this group.
- Sequence[str]
- All tags of the security group.
- id str
- The provider-assigned unique ID for this managed resource.
- security_
group_ Sequence[str]rules - Unique identifiers of rules contained in the security group.
- bool
- Specifies if another project has been granted access to this group.
- List<String>
- All tags of the security group.
- id String
- The provider-assigned unique ID for this managed resource.
- security
Group List<String>Rules - Unique identifiers of rules contained in the security group.
- Boolean
- Specifies if another project has been granted access to this group.
Look up Existing VpcSecgroupV2 Resource
Get an existing VpcSecgroupV2 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?: VpcSecgroupV2State, opts?: CustomResourceOptions): VpcSecgroupV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
all_tags: Optional[Sequence[str]] = None,
delete_default_rules: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
security_group_rules: Optional[Sequence[str]] = None,
shared: Optional[bool] = None,
stateful: Optional[bool] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[VpcSecgroupV2TimeoutsArgs] = None) -> VpcSecgroupV2func GetVpcSecgroupV2(ctx *Context, name string, id IDInput, state *VpcSecgroupV2State, opts ...ResourceOption) (*VpcSecgroupV2, error)public static VpcSecgroupV2 Get(string name, Input<string> id, VpcSecgroupV2State? state, CustomResourceOptions? opts = null)public static VpcSecgroupV2 get(String name, Output<String> id, VpcSecgroupV2State state, CustomResourceOptions options)resources: _: type: selectel:VpcSecgroupV2 get: id: ${id}import {
to = selectel_vpc_secgroup_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.
- List<string>
- All tags of the security group.
- Delete
Default boolRules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - Description string
- Description of the security group.
- Name string
- Name of the security group.
- 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 security group. - Region string
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - Security
Group List<string>Rules - Unique identifiers of rules contained in the security group.
- bool
- Specifies if another project has been granted access to this group.
- Stateful bool
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- List<string>
- Tags of the security group.
- Timeouts
Vpc
Secgroup V2Timeouts
- []string
- All tags of the security group.
- Delete
Default boolRules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - Description string
- Description of the security group.
- Name string
- Name of the security group.
- 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 security group. - Region string
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - Security
Group []stringRules - Unique identifiers of rules contained in the security group.
- bool
- Specifies if another project has been granted access to this group.
- Stateful bool
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- []string
- Tags of the security group.
- Timeouts
Vpc
Secgroup V2Timeouts Args
- list(string)
- All tags of the security group.
- delete_
default_ boolrules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - description string
- Description of the security group.
- name string
- Name of the security group.
- 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 security group. - region string
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - security_
group_ list(string)rules - Unique identifiers of rules contained in the security group.
- bool
- Specifies if another project has been granted access to this group.
- stateful bool
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- list(string)
- Tags of the security group.
- timeouts object
- List<String>
- All tags of the security group.
- delete
Default BooleanRules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - description String
- Description of the security group.
- name String
- Name of the security group.
- 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 security group. - region String
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - security
Group List<String>Rules - Unique identifiers of rules contained in the security group.
- Boolean
- Specifies if another project has been granted access to this group.
- stateful Boolean
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- List<String>
- Tags of the security group.
- timeouts
Vpc
Secgroup V2Timeouts
- string[]
- All tags of the security group.
- delete
Default booleanRules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - description string
- Description of the security group.
- name string
- Name of the security group.
- 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 security group. - region string
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - security
Group string[]Rules - Unique identifiers of rules contained in the security group.
- boolean
- Specifies if another project has been granted access to this group.
- stateful boolean
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- string[]
- Tags of the security group.
- timeouts
Vpc
Secgroup V2Timeouts
- Sequence[str]
- All tags of the security group.
- delete_
default_ boolrules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - description str
- Description of the security group.
- name str
- Name of the security group.
- 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 security group. - region str
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - security_
group_ Sequence[str]rules - Unique identifiers of rules contained in the security group.
- bool
- Specifies if another project has been granted access to this group.
- stateful bool
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- Sequence[str]
- Tags of the security group.
- timeouts
Vpc
Secgroup V2Timeouts Args
- List<String>
- All tags of the security group.
- delete
Default BooleanRules - Specifies whether to delete the default egress rules. Changing this creates a new security group. The default value is
false. - description String
- Description of the security group.
- name String
- Name of the security group.
- 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 security group. - region String
- Pool where the security group is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new security group. - security
Group List<String>Rules - Unique identifiers of rules contained in the security group.
- Boolean
- Specifies if another project has been granted access to this group.
- stateful Boolean
- Specifies if the security group is stateful. If not specified, the security group is stateful.
- List<String>
- Tags of the security group.
- timeouts Property Map
Supporting Types
VpcSecgroupV2Timeouts, VpcSecgroupV2TimeoutsArgs
- Delete string
- Delete string
- delete string
- delete String
- delete string
- delete str
- delete String
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/vpcSecgroupV2:VpcSecgroupV2 secgroup_1 <id>
<domain_name>, <username>, and <password> are the arguments of the provider configuration.
Other identity attributes are described above in the import or resource sections.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
published on Friday, Oct 30, 2026 by selectel