1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. Securitygroup
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.Securitygroup

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Represent SecurityGroups(Firewall)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const sg = new edgecenter.Securitygroup("sg", {
        projectId: 1,
        regionId: 1,
        securityGroupRules: [
            {
                direction: "egress",
                ethertype: "IPv4",
                portRangeMax: 19990,
                portRangeMin: 19990,
                protocol: "tcp",
            },
            {
                direction: "ingress",
                ethertype: "IPv4",
                portRangeMax: 19990,
                portRangeMin: 19990,
                protocol: "tcp",
            },
            {
                direction: "egress",
                ethertype: "IPv4",
                protocol: "vrrp",
            },
        ],
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    sg = edgecenter.Securitygroup("sg",
        project_id=1,
        region_id=1,
        security_group_rules=[
            {
                "direction": "egress",
                "ethertype": "IPv4",
                "port_range_max": 19990,
                "port_range_min": 19990,
                "protocol": "tcp",
            },
            {
                "direction": "ingress",
                "ethertype": "IPv4",
                "port_range_max": 19990,
                "port_range_min": 19990,
                "protocol": "tcp",
            },
            {
                "direction": "egress",
                "ethertype": "IPv4",
                "protocol": "vrrp",
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := edgecenter.NewSecuritygroup(ctx, "sg", &edgecenter.SecuritygroupArgs{
    			ProjectId: pulumi.Float64(1),
    			RegionId:  pulumi.Float64(1),
    			SecurityGroupRules: edgecenter.SecuritygroupSecurityGroupRuleArray{
    				&edgecenter.SecuritygroupSecurityGroupRuleArgs{
    					Direction:    pulumi.String("egress"),
    					Ethertype:    pulumi.String("IPv4"),
    					PortRangeMax: pulumi.Float64(19990),
    					PortRangeMin: pulumi.Float64(19990),
    					Protocol:     pulumi.String("tcp"),
    				},
    				&edgecenter.SecuritygroupSecurityGroupRuleArgs{
    					Direction:    pulumi.String("ingress"),
    					Ethertype:    pulumi.String("IPv4"),
    					PortRangeMax: pulumi.Float64(19990),
    					PortRangeMin: pulumi.Float64(19990),
    					Protocol:     pulumi.String("tcp"),
    				},
    				&edgecenter.SecuritygroupSecurityGroupRuleArgs{
    					Direction: pulumi.String("egress"),
    					Ethertype: pulumi.String("IPv4"),
    					Protocol:  pulumi.String("vrrp"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var sg = new Edgecenter.Securitygroup("sg", new()
        {
            ProjectId = 1,
            RegionId = 1,
            SecurityGroupRules = new[]
            {
                new Edgecenter.Inputs.SecuritygroupSecurityGroupRuleArgs
                {
                    Direction = "egress",
                    Ethertype = "IPv4",
                    PortRangeMax = 19990,
                    PortRangeMin = 19990,
                    Protocol = "tcp",
                },
                new Edgecenter.Inputs.SecuritygroupSecurityGroupRuleArgs
                {
                    Direction = "ingress",
                    Ethertype = "IPv4",
                    PortRangeMax = 19990,
                    PortRangeMin = 19990,
                    Protocol = "tcp",
                },
                new Edgecenter.Inputs.SecuritygroupSecurityGroupRuleArgs
                {
                    Direction = "egress",
                    Ethertype = "IPv4",
                    Protocol = "vrrp",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.Securitygroup;
    import com.pulumi.edgecenter.SecuritygroupArgs;
    import com.pulumi.edgecenter.inputs.SecuritygroupSecurityGroupRuleArgs;
    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 sg = new Securitygroup("sg", SecuritygroupArgs.builder()
                .projectId(1)
                .regionId(1)
                .securityGroupRules(            
                    SecuritygroupSecurityGroupRuleArgs.builder()
                        .direction("egress")
                        .ethertype("IPv4")
                        .portRangeMax(19990)
                        .portRangeMin(19990)
                        .protocol("tcp")
                        .build(),
                    SecuritygroupSecurityGroupRuleArgs.builder()
                        .direction("ingress")
                        .ethertype("IPv4")
                        .portRangeMax(19990)
                        .portRangeMin(19990)
                        .protocol("tcp")
                        .build(),
                    SecuritygroupSecurityGroupRuleArgs.builder()
                        .direction("egress")
                        .ethertype("IPv4")
                        .protocol("vrrp")
                        .build())
                .build());
    
        }
    }
    
    resources:
      sg:
        type: edgecenter:Securitygroup
        properties:
          projectId: 1
          regionId: 1
          securityGroupRules:
            - direction: egress
              ethertype: IPv4
              portRangeMax: 19990
              portRangeMin: 19990
              protocol: tcp
            - direction: ingress
              ethertype: IPv4
              portRangeMax: 19990
              portRangeMin: 19990
              protocol: tcp
            - direction: egress
              ethertype: IPv4
              protocol: vrrp
    

    Create Securitygroup Resource

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

    Constructor syntax

    new Securitygroup(name: string, args: SecuritygroupArgs, opts?: CustomResourceOptions);
    @overload
    def Securitygroup(resource_name: str,
                      args: SecuritygroupArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def Securitygroup(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      security_group_rules: Optional[Sequence[SecuritygroupSecurityGroupRuleArgs]] = None,
                      description: Optional[str] = None,
                      last_updated: Optional[str] = None,
                      metadata_map: Optional[Mapping[str, str]] = None,
                      name: Optional[str] = None,
                      project_id: Optional[float] = None,
                      project_name: Optional[str] = None,
                      region_id: Optional[float] = None,
                      region_name: Optional[str] = None,
                      securitygroup_id: Optional[str] = None)
    func NewSecuritygroup(ctx *Context, name string, args SecuritygroupArgs, opts ...ResourceOption) (*Securitygroup, error)
    public Securitygroup(string name, SecuritygroupArgs args, CustomResourceOptions? opts = null)
    public Securitygroup(String name, SecuritygroupArgs args)
    public Securitygroup(String name, SecuritygroupArgs args, CustomResourceOptions options)
    
    type: edgecenter:Securitygroup
    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 SecuritygroupArgs
    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 SecuritygroupArgs
    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 SecuritygroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecuritygroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecuritygroupArgs
    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 securitygroupResource = new Edgecenter.Securitygroup("securitygroupResource", new()
    {
        SecurityGroupRules = new[]
        {
            new Edgecenter.Inputs.SecuritygroupSecurityGroupRuleArgs
            {
                Direction = "string",
                Ethertype = "string",
                Protocol = "string",
                CreatedAt = "string",
                Description = "string",
                Id = "string",
                PortRangeMax = 0,
                PortRangeMin = 0,
                RemoteIpPrefix = "string",
                UpdatedAt = "string",
            },
        },
        Description = "string",
        LastUpdated = "string",
        MetadataMap = 
        {
            { "string", "string" },
        },
        Name = "string",
        ProjectId = 0,
        ProjectName = "string",
        RegionId = 0,
        RegionName = "string",
        SecuritygroupId = "string",
    });
    
    example, err := edgecenter.NewSecuritygroup(ctx, "securitygroupResource", &edgecenter.SecuritygroupArgs{
    	SecurityGroupRules: edgecenter.SecuritygroupSecurityGroupRuleArray{
    		&edgecenter.SecuritygroupSecurityGroupRuleArgs{
    			Direction:      pulumi.String("string"),
    			Ethertype:      pulumi.String("string"),
    			Protocol:       pulumi.String("string"),
    			CreatedAt:      pulumi.String("string"),
    			Description:    pulumi.String("string"),
    			Id:             pulumi.String("string"),
    			PortRangeMax:   pulumi.Float64(0),
    			PortRangeMin:   pulumi.Float64(0),
    			RemoteIpPrefix: pulumi.String("string"),
    			UpdatedAt:      pulumi.String("string"),
    		},
    	},
    	Description: pulumi.String("string"),
    	LastUpdated: pulumi.String("string"),
    	MetadataMap: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:            pulumi.String("string"),
    	ProjectId:       pulumi.Float64(0),
    	ProjectName:     pulumi.String("string"),
    	RegionId:        pulumi.Float64(0),
    	RegionName:      pulumi.String("string"),
    	SecuritygroupId: pulumi.String("string"),
    })
    
    var securitygroupResource = new Securitygroup("securitygroupResource", SecuritygroupArgs.builder()
        .securityGroupRules(SecuritygroupSecurityGroupRuleArgs.builder()
            .direction("string")
            .ethertype("string")
            .protocol("string")
            .createdAt("string")
            .description("string")
            .id("string")
            .portRangeMax(0)
            .portRangeMin(0)
            .remoteIpPrefix("string")
            .updatedAt("string")
            .build())
        .description("string")
        .lastUpdated("string")
        .metadataMap(Map.of("string", "string"))
        .name("string")
        .projectId(0)
        .projectName("string")
        .regionId(0)
        .regionName("string")
        .securitygroupId("string")
        .build());
    
    securitygroup_resource = edgecenter.Securitygroup("securitygroupResource",
        security_group_rules=[{
            "direction": "string",
            "ethertype": "string",
            "protocol": "string",
            "created_at": "string",
            "description": "string",
            "id": "string",
            "port_range_max": 0,
            "port_range_min": 0,
            "remote_ip_prefix": "string",
            "updated_at": "string",
        }],
        description="string",
        last_updated="string",
        metadata_map={
            "string": "string",
        },
        name="string",
        project_id=0,
        project_name="string",
        region_id=0,
        region_name="string",
        securitygroup_id="string")
    
    const securitygroupResource = new edgecenter.Securitygroup("securitygroupResource", {
        securityGroupRules: [{
            direction: "string",
            ethertype: "string",
            protocol: "string",
            createdAt: "string",
            description: "string",
            id: "string",
            portRangeMax: 0,
            portRangeMin: 0,
            remoteIpPrefix: "string",
            updatedAt: "string",
        }],
        description: "string",
        lastUpdated: "string",
        metadataMap: {
            string: "string",
        },
        name: "string",
        projectId: 0,
        projectName: "string",
        regionId: 0,
        regionName: "string",
        securitygroupId: "string",
    });
    
    type: edgecenter:Securitygroup
    properties:
        description: string
        lastUpdated: string
        metadataMap:
            string: string
        name: string
        projectId: 0
        projectName: string
        regionId: 0
        regionName: string
        securityGroupRules:
            - createdAt: string
              description: string
              direction: string
              ethertype: string
              id: string
              portRangeMax: 0
              portRangeMin: 0
              protocol: string
              remoteIpPrefix: string
              updatedAt: string
        securitygroupId: string
    

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

    SecurityGroupRules List<SecuritygroupSecurityGroupRule>
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    Description string
    A detailed description of the security group.
    LastUpdated string
    The timestamp of the last update (use with update context).
    MetadataMap Dictionary<string, string>
    A map containing metadata, for example tags.
    Name string
    The name of the security group.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    SecuritygroupId string
    The ID of this resource.
    SecurityGroupRules []SecuritygroupSecurityGroupRuleArgs
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    Description string
    A detailed description of the security group.
    LastUpdated string
    The timestamp of the last update (use with update context).
    MetadataMap map[string]string
    A map containing metadata, for example tags.
    Name string
    The name of the security group.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    SecuritygroupId string
    The ID of this resource.
    securityGroupRules List<SecuritygroupSecurityGroupRule>
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    description String
    A detailed description of the security group.
    lastUpdated String
    The timestamp of the last update (use with update context).
    metadataMap Map<String,String>
    A map containing metadata, for example tags.
    name String
    The name of the security group.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    securitygroupId String
    The ID of this resource.
    securityGroupRules SecuritygroupSecurityGroupRule[]
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    description string
    A detailed description of the security group.
    lastUpdated string
    The timestamp of the last update (use with update context).
    metadataMap {[key: string]: string}
    A map containing metadata, for example tags.
    name string
    The name of the security group.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    securitygroupId string
    The ID of this resource.
    security_group_rules Sequence[SecuritygroupSecurityGroupRuleArgs]
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    description str
    A detailed description of the security group.
    last_updated str
    The timestamp of the last update (use with update context).
    metadata_map Mapping[str, str]
    A map containing metadata, for example tags.
    name str
    The name of the security group.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    securitygroup_id str
    The ID of this resource.
    securityGroupRules List<Property Map>
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    description String
    A detailed description of the security group.
    lastUpdated String
    The timestamp of the last update (use with update context).
    metadataMap Map<String>
    A map containing metadata, for example tags.
    name String
    The name of the security group.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    securitygroupId String
    The ID of this resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    MetadataReadOnlies List<SecuritygroupMetadataReadOnly>
    A list of read-only metadata items, e.g. tags.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetadataReadOnlies []SecuritygroupMetadataReadOnly
    A list of read-only metadata items, e.g. tags.
    id String
    The provider-assigned unique ID for this managed resource.
    metadataReadOnlies List<SecuritygroupMetadataReadOnly>
    A list of read-only metadata items, e.g. tags.
    id string
    The provider-assigned unique ID for this managed resource.
    metadataReadOnlies SecuritygroupMetadataReadOnly[]
    A list of read-only metadata items, e.g. tags.
    id str
    The provider-assigned unique ID for this managed resource.
    metadata_read_onlies Sequence[SecuritygroupMetadataReadOnly]
    A list of read-only metadata items, e.g. tags.
    id String
    The provider-assigned unique ID for this managed resource.
    metadataReadOnlies List<Property Map>
    A list of read-only metadata items, e.g. tags.

    Look up Existing Securitygroup Resource

    Get an existing Securitygroup 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?: SecuritygroupState, opts?: CustomResourceOptions): Securitygroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            last_updated: Optional[str] = None,
            metadata_map: Optional[Mapping[str, str]] = None,
            metadata_read_onlies: Optional[Sequence[SecuritygroupMetadataReadOnlyArgs]] = None,
            name: Optional[str] = None,
            project_id: Optional[float] = None,
            project_name: Optional[str] = None,
            region_id: Optional[float] = None,
            region_name: Optional[str] = None,
            security_group_rules: Optional[Sequence[SecuritygroupSecurityGroupRuleArgs]] = None,
            securitygroup_id: Optional[str] = None) -> Securitygroup
    func GetSecuritygroup(ctx *Context, name string, id IDInput, state *SecuritygroupState, opts ...ResourceOption) (*Securitygroup, error)
    public static Securitygroup Get(string name, Input<string> id, SecuritygroupState? state, CustomResourceOptions? opts = null)
    public static Securitygroup get(String name, Output<String> id, SecuritygroupState state, CustomResourceOptions options)
    resources:  _:    type: edgecenter:Securitygroup    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:
    Description string
    A detailed description of the security group.
    LastUpdated string
    The timestamp of the last update (use with update context).
    MetadataMap Dictionary<string, string>
    A map containing metadata, for example tags.
    MetadataReadOnlies List<SecuritygroupMetadataReadOnly>
    A list of read-only metadata items, e.g. tags.
    Name string
    The name of the security group.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    SecurityGroupRules List<SecuritygroupSecurityGroupRule>
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    SecuritygroupId string
    The ID of this resource.
    Description string
    A detailed description of the security group.
    LastUpdated string
    The timestamp of the last update (use with update context).
    MetadataMap map[string]string
    A map containing metadata, for example tags.
    MetadataReadOnlies []SecuritygroupMetadataReadOnlyArgs
    A list of read-only metadata items, e.g. tags.
    Name string
    The name of the security group.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    SecurityGroupRules []SecuritygroupSecurityGroupRuleArgs
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    SecuritygroupId string
    The ID of this resource.
    description String
    A detailed description of the security group.
    lastUpdated String
    The timestamp of the last update (use with update context).
    metadataMap Map<String,String>
    A map containing metadata, for example tags.
    metadataReadOnlies List<SecuritygroupMetadataReadOnly>
    A list of read-only metadata items, e.g. tags.
    name String
    The name of the security group.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    securityGroupRules List<SecuritygroupSecurityGroupRule>
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    securitygroupId String
    The ID of this resource.
    description string
    A detailed description of the security group.
    lastUpdated string
    The timestamp of the last update (use with update context).
    metadataMap {[key: string]: string}
    A map containing metadata, for example tags.
    metadataReadOnlies SecuritygroupMetadataReadOnly[]
    A list of read-only metadata items, e.g. tags.
    name string
    The name of the security group.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    securityGroupRules SecuritygroupSecurityGroupRule[]
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    securitygroupId string
    The ID of this resource.
    description str
    A detailed description of the security group.
    last_updated str
    The timestamp of the last update (use with update context).
    metadata_map Mapping[str, str]
    A map containing metadata, for example tags.
    metadata_read_onlies Sequence[SecuritygroupMetadataReadOnlyArgs]
    A list of read-only metadata items, e.g. tags.
    name str
    The name of the security group.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    security_group_rules Sequence[SecuritygroupSecurityGroupRuleArgs]
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    securitygroup_id str
    The ID of this resource.
    description String
    A detailed description of the security group.
    lastUpdated String
    The timestamp of the last update (use with update context).
    metadataMap Map<String>
    A map containing metadata, for example tags.
    metadataReadOnlies List<Property Map>
    A list of read-only metadata items, e.g. tags.
    name String
    The name of the security group.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    securityGroupRules List<Property Map>
    Firewall rules control what inbound(ingress) and outbound(egress) traffic is allowed to enter or leave a Instance. At least one 'egress' rule should be set
    securitygroupId String
    The ID of this resource.

    Supporting Types

    SecuritygroupMetadataReadOnly, SecuritygroupMetadataReadOnlyArgs

    Key string
    ReadOnly bool
    Value string
    Key string
    ReadOnly bool
    Value string
    key String
    readOnly Boolean
    value String
    key string
    readOnly boolean
    value string
    key str
    read_only bool
    value str
    key String
    readOnly Boolean
    value String

    SecuritygroupSecurityGroupRule, SecuritygroupSecurityGroupRuleArgs

    Direction string
    Available value is 'ingress', 'egress'
    Ethertype string
    Available value is 'IPv4', 'IPv6'
    Protocol string
    Available value is udp,tcp,any,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,ipip,ipencap
    CreatedAt string
    Description string
    Id string
    PortRangeMax double
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    PortRangeMin double
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    RemoteIpPrefix string
    UpdatedAt string
    Direction string
    Available value is 'ingress', 'egress'
    Ethertype string
    Available value is 'IPv4', 'IPv6'
    Protocol string
    Available value is udp,tcp,any,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,ipip,ipencap
    CreatedAt string
    Description string
    Id string
    PortRangeMax float64
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    PortRangeMin float64
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    RemoteIpPrefix string
    UpdatedAt string
    direction String
    Available value is 'ingress', 'egress'
    ethertype String
    Available value is 'IPv4', 'IPv6'
    protocol String
    Available value is udp,tcp,any,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,ipip,ipencap
    createdAt String
    description String
    id String
    portRangeMax Double
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    portRangeMin Double
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    remoteIpPrefix String
    updatedAt String
    direction string
    Available value is 'ingress', 'egress'
    ethertype string
    Available value is 'IPv4', 'IPv6'
    protocol string
    Available value is udp,tcp,any,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,ipip,ipencap
    createdAt string
    description string
    id string
    portRangeMax number
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    portRangeMin number
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    remoteIpPrefix string
    updatedAt string
    direction str
    Available value is 'ingress', 'egress'
    ethertype str
    Available value is 'IPv4', 'IPv6'
    protocol str
    Available value is udp,tcp,any,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,ipip,ipencap
    created_at str
    description str
    id str
    port_range_max float
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    port_range_min float
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    remote_ip_prefix str
    updated_at str
    direction String
    Available value is 'ingress', 'egress'
    ethertype String
    Available value is 'IPv4', 'IPv6'
    protocol String
    Available value is udp,tcp,any,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,ipip,ipencap
    createdAt String
    description String
    id String
    portRangeMax Number
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    portRangeMin Number
    Must be set for network protocol: tcp, udp, udplite, sctp, dccp
    remoteIpPrefix String
    updatedAt String

    Import

    import using <project_id>:<region_id>:<securitygroup_id> format

    $ pulumi import edgecenter:index/securitygroup:Securitygroup securitygroup1 1:6:447d2959-8ae0-4ca0-8d47-9f050a3637d7
    

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

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center