1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. VpcSecgroupV3
opentelekomcloud 1.36.49 published on Thursday, Oct 2, 2025 by opentelekomcloud

opentelekomcloud.VpcSecgroupV3

Deploy with Pulumi
opentelekomcloud logo
opentelekomcloud 1.36.49 published on Thursday, Oct 2, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for VPC security group v3 you can get at documentation portal

    Manages a V3 VPC security group resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const secgroup1 = new opentelekomcloud.VpcSecgroupV3("secgroup1", {description: "My VPC security group"});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    secgroup1 = opentelekomcloud.VpcSecgroupV3("secgroup1", description="My VPC security group")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewVpcSecgroupV3(ctx, "secgroup1", &opentelekomcloud.VpcSecgroupV3Args{
    			Description: pulumi.String("My VPC security group"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var secgroup1 = new Opentelekomcloud.VpcSecgroupV3("secgroup1", new()
        {
            Description = "My VPC security group",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.VpcSecgroupV3;
    import com.pulumi.opentelekomcloud.VpcSecgroupV3Args;
    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 VpcSecgroupV3("secgroup1", VpcSecgroupV3Args.builder()
                .description("My VPC security group")
                .build());
    
        }
    }
    
    resources:
      secgroup1:
        type: opentelekomcloud:VpcSecgroupV3
        properties:
          description: My VPC security group
    

    Create VpcSecgroupV3 Resource

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

    Constructor syntax

    new VpcSecgroupV3(name: string, args?: VpcSecgroupV3Args, opts?: CustomResourceOptions);
    @overload
    def VpcSecgroupV3(resource_name: str,
                      args: Optional[VpcSecgroupV3Args] = None,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcSecgroupV3(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      description: Optional[str] = None,
                      enterprise_project_id: Optional[str] = None,
                      name: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      timeouts: Optional[VpcSecgroupV3TimeoutsArgs] = None,
                      vpc_secgroup_v3_id: Optional[str] = None)
    func NewVpcSecgroupV3(ctx *Context, name string, args *VpcSecgroupV3Args, opts ...ResourceOption) (*VpcSecgroupV3, error)
    public VpcSecgroupV3(string name, VpcSecgroupV3Args? args = null, CustomResourceOptions? opts = null)
    public VpcSecgroupV3(String name, VpcSecgroupV3Args args)
    public VpcSecgroupV3(String name, VpcSecgroupV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:VpcSecgroupV3
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VpcSecgroupV3Args
    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 VpcSecgroupV3Args
    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 VpcSecgroupV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcSecgroupV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcSecgroupV3Args
    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 vpcSecgroupV3Resource = new Opentelekomcloud.VpcSecgroupV3("vpcSecgroupV3Resource", new()
    {
        Description = "string",
        EnterpriseProjectId = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Opentelekomcloud.Inputs.VpcSecgroupV3TimeoutsArgs
        {
            Delete = "string",
        },
        VpcSecgroupV3Id = "string",
    });
    
    example, err := opentelekomcloud.NewVpcSecgroupV3(ctx, "vpcSecgroupV3Resource", &opentelekomcloud.VpcSecgroupV3Args{
    	Description:         pulumi.String("string"),
    	EnterpriseProjectId: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &opentelekomcloud.VpcSecgroupV3TimeoutsArgs{
    		Delete: pulumi.String("string"),
    	},
    	VpcSecgroupV3Id: pulumi.String("string"),
    })
    
    var vpcSecgroupV3Resource = new VpcSecgroupV3("vpcSecgroupV3Resource", VpcSecgroupV3Args.builder()
        .description("string")
        .enterpriseProjectId("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .timeouts(VpcSecgroupV3TimeoutsArgs.builder()
            .delete("string")
            .build())
        .vpcSecgroupV3Id("string")
        .build());
    
    vpc_secgroup_v3_resource = opentelekomcloud.VpcSecgroupV3("vpcSecgroupV3Resource",
        description="string",
        enterprise_project_id="string",
        name="string",
        tags={
            "string": "string",
        },
        timeouts={
            "delete": "string",
        },
        vpc_secgroup_v3_id="string")
    
    const vpcSecgroupV3Resource = new opentelekomcloud.VpcSecgroupV3("vpcSecgroupV3Resource", {
        description: "string",
        enterpriseProjectId: "string",
        name: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            "delete": "string",
        },
        vpcSecgroupV3Id: "string",
    });
    
    type: opentelekomcloud:VpcSecgroupV3
    properties:
        description: string
        enterpriseProjectId: string
        name: string
        tags:
            string: string
        timeouts:
            delete: string
        vpcSecgroupV3Id: string
    

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

    Description string
    Security group description.
    EnterpriseProjectId string
    ID of the enterprise project to which the security group belongs. Default: 0.
    Name string
    A unique name for the security group.
    Tags Dictionary<string, string>
    Specifies the tags.
    Timeouts VpcSecgroupV3Timeouts
    VpcSecgroupV3Id string
    Security Group ID.
    Description string
    Security group description.
    EnterpriseProjectId string
    ID of the enterprise project to which the security group belongs. Default: 0.
    Name string
    A unique name for the security group.
    Tags map[string]string
    Specifies the tags.
    Timeouts VpcSecgroupV3TimeoutsArgs
    VpcSecgroupV3Id string
    Security Group ID.
    description String
    Security group description.
    enterpriseProjectId String
    ID of the enterprise project to which the security group belongs. Default: 0.
    name String
    A unique name for the security group.
    tags Map<String,String>
    Specifies the tags.
    timeouts VpcSecgroupV3Timeouts
    vpcSecgroupV3Id String
    Security Group ID.
    description string
    Security group description.
    enterpriseProjectId string
    ID of the enterprise project to which the security group belongs. Default: 0.
    name string
    A unique name for the security group.
    tags {[key: string]: string}
    Specifies the tags.
    timeouts VpcSecgroupV3Timeouts
    vpcSecgroupV3Id string
    Security Group ID.
    description str
    Security group description.
    enterprise_project_id str
    ID of the enterprise project to which the security group belongs. Default: 0.
    name str
    A unique name for the security group.
    tags Mapping[str, str]
    Specifies the tags.
    timeouts VpcSecgroupV3TimeoutsArgs
    vpc_secgroup_v3_id str
    Security Group ID.
    description String
    Security group description.
    enterpriseProjectId String
    ID of the enterprise project to which the security group belongs. Default: 0.
    name String
    A unique name for the security group.
    tags Map<String>
    Specifies the tags.
    timeouts Property Map
    vpcSecgroupV3Id String
    Security Group ID.

    Outputs

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

    CreatedAt string
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Indicates the project ID.
    UpdatedAt string
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    CreatedAt string
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Indicates the project ID.
    UpdatedAt string
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    createdAt String
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    Indicates the project ID.
    updatedAt String
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    createdAt string
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    id string
    The provider-assigned unique ID for this managed resource.
    projectId string
    Indicates the project ID.
    updatedAt string
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    created_at str
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    id str
    The provider-assigned unique ID for this managed resource.
    project_id str
    Indicates the project ID.
    updated_at str
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    createdAt String
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    Indicates the project ID.
    updatedAt String
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.

    Look up Existing VpcSecgroupV3 Resource

    Get an existing VpcSecgroupV3 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?: VpcSecgroupV3State, opts?: CustomResourceOptions): VpcSecgroupV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            enterprise_project_id: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[VpcSecgroupV3TimeoutsArgs] = None,
            updated_at: Optional[str] = None,
            vpc_secgroup_v3_id: Optional[str] = None) -> VpcSecgroupV3
    func GetVpcSecgroupV3(ctx *Context, name string, id IDInput, state *VpcSecgroupV3State, opts ...ResourceOption) (*VpcSecgroupV3, error)
    public static VpcSecgroupV3 Get(string name, Input<string> id, VpcSecgroupV3State? state, CustomResourceOptions? opts = null)
    public static VpcSecgroupV3 get(String name, Output<String> id, VpcSecgroupV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:VpcSecgroupV3    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedAt string
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    Description string
    Security group description.
    EnterpriseProjectId string
    ID of the enterprise project to which the security group belongs. Default: 0.
    Name string
    A unique name for the security group.
    ProjectId string
    Indicates the project ID.
    Tags Dictionary<string, string>
    Specifies the tags.
    Timeouts VpcSecgroupV3Timeouts
    UpdatedAt string
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    VpcSecgroupV3Id string
    Security Group ID.
    CreatedAt string
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    Description string
    Security group description.
    EnterpriseProjectId string
    ID of the enterprise project to which the security group belongs. Default: 0.
    Name string
    A unique name for the security group.
    ProjectId string
    Indicates the project ID.
    Tags map[string]string
    Specifies the tags.
    Timeouts VpcSecgroupV3TimeoutsArgs
    UpdatedAt string
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    VpcSecgroupV3Id string
    Security Group ID.
    createdAt String
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    description String
    Security group description.
    enterpriseProjectId String
    ID of the enterprise project to which the security group belongs. Default: 0.
    name String
    A unique name for the security group.
    projectId String
    Indicates the project ID.
    tags Map<String,String>
    Specifies the tags.
    timeouts VpcSecgroupV3Timeouts
    updatedAt String
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    vpcSecgroupV3Id String
    Security Group ID.
    createdAt string
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    description string
    Security group description.
    enterpriseProjectId string
    ID of the enterprise project to which the security group belongs. Default: 0.
    name string
    A unique name for the security group.
    projectId string
    Indicates the project ID.
    tags {[key: string]: string}
    Specifies the tags.
    timeouts VpcSecgroupV3Timeouts
    updatedAt string
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    vpcSecgroupV3Id string
    Security Group ID.
    created_at str
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    description str
    Security group description.
    enterprise_project_id str
    ID of the enterprise project to which the security group belongs. Default: 0.
    name str
    A unique name for the security group.
    project_id str
    Indicates the project ID.
    tags Mapping[str, str]
    Specifies the tags.
    timeouts VpcSecgroupV3TimeoutsArgs
    updated_at str
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    vpc_secgroup_v3_id str
    Security Group ID.
    createdAt String
    Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    description String
    Security group description.
    enterpriseProjectId String
    ID of the enterprise project to which the security group belongs. Default: 0.
    name String
    A unique name for the security group.
    projectId String
    Indicates the project ID.
    tags Map<String>
    Specifies the tags.
    timeouts Property Map
    updatedAt String
    Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    vpcSecgroupV3Id String
    Security Group ID.

    Supporting Types

    VpcSecgroupV3Timeouts, VpcSecgroupV3TimeoutsArgs

    Delete string
    Delete string
    delete String
    delete string
    delete str
    delete String

    Import

    VPC Security Group V3 can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/vpcSecgroupV3:VpcSecgroupV3 secgroup_1 <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.49 published on Thursday, Oct 2, 2025 by opentelekomcloud
      Meet Neo: Your AI Platform Teammate