published on Wednesday, Jul 1, 2026 by g-core
published on Wednesday, Jul 1, 2026 by g-core
Security groups act as virtual firewalls controlling inbound and outbound traffic for instances and other resources.
Example Usage
Web server security group
Creates a security group with HTTP/HTTPS ingress and outbound TCP/VRRP egress rules.
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
// Create a security group and manage rules as separate resources
const example = new gcore.CloudSecurityGroup("example", {
projectId: 1,
regionId: 1,
name: "web-security-group",
description: "Allow HTTP, HTTPS, and outbound traffic",
tags: {
environment: "production",
},
});
const allowHttp = new gcore.CloudSecurityGroupRule("allow_http", {
projectId: 1,
regionId: 1,
groupId: example.id,
direction: "ingress",
ethertype: "IPv4",
protocol: "tcp",
portRangeMin: 80,
portRangeMax: 80,
description: "Allow HTTP",
});
const allowHttps = new gcore.CloudSecurityGroupRule("allow_https", {
projectId: 1,
regionId: 1,
groupId: example.id,
direction: "ingress",
ethertype: "IPv4",
protocol: "tcp",
portRangeMin: 443,
portRangeMax: 443,
description: "Allow HTTPS",
});
const allowEgressTcp = new gcore.CloudSecurityGroupRule("allow_egress_tcp", {
projectId: 1,
regionId: 1,
groupId: example.id,
direction: "egress",
ethertype: "IPv4",
protocol: "tcp",
description: "Allow all outbound TCP",
});
import pulumi
import pulumi_gcore as gcore
# Create a security group and manage rules as separate resources
example = gcore.CloudSecurityGroup("example",
project_id=1,
region_id=1,
name="web-security-group",
description="Allow HTTP, HTTPS, and outbound traffic",
tags={
"environment": "production",
})
allow_http = gcore.CloudSecurityGroupRule("allow_http",
project_id=1,
region_id=1,
group_id=example.id,
direction="ingress",
ethertype="IPv4",
protocol="tcp",
port_range_min=80,
port_range_max=80,
description="Allow HTTP")
allow_https = gcore.CloudSecurityGroupRule("allow_https",
project_id=1,
region_id=1,
group_id=example.id,
direction="ingress",
ethertype="IPv4",
protocol="tcp",
port_range_min=443,
port_range_max=443,
description="Allow HTTPS")
allow_egress_tcp = gcore.CloudSecurityGroupRule("allow_egress_tcp",
project_id=1,
region_id=1,
group_id=example.id,
direction="egress",
ethertype="IPv4",
protocol="tcp",
description="Allow all outbound TCP")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a security group and manage rules as separate resources
example, err := gcore.NewCloudSecurityGroup(ctx, "example", &gcore.CloudSecurityGroupArgs{
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
Name: pulumi.String("web-security-group"),
Description: pulumi.String("Allow HTTP, HTTPS, and outbound traffic"),
Tags: pulumi.StringMap{
"environment": pulumi.String("production"),
},
})
if err != nil {
return err
}
_, err = gcore.NewCloudSecurityGroupRule(ctx, "allow_http", &gcore.CloudSecurityGroupRuleArgs{
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
GroupId: example.ID(),
Direction: pulumi.String("ingress"),
Ethertype: pulumi.String("IPv4"),
Protocol: pulumi.String("tcp"),
PortRangeMin: pulumi.Float64(80),
PortRangeMax: pulumi.Float64(80),
Description: pulumi.String("Allow HTTP"),
})
if err != nil {
return err
}
_, err = gcore.NewCloudSecurityGroupRule(ctx, "allow_https", &gcore.CloudSecurityGroupRuleArgs{
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
GroupId: example.ID(),
Direction: pulumi.String("ingress"),
Ethertype: pulumi.String("IPv4"),
Protocol: pulumi.String("tcp"),
PortRangeMin: pulumi.Float64(443),
PortRangeMax: pulumi.Float64(443),
Description: pulumi.String("Allow HTTPS"),
})
if err != nil {
return err
}
_, err = gcore.NewCloudSecurityGroupRule(ctx, "allow_egress_tcp", &gcore.CloudSecurityGroupRuleArgs{
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
GroupId: example.ID(),
Direction: pulumi.String("egress"),
Ethertype: pulumi.String("IPv4"),
Protocol: pulumi.String("tcp"),
Description: pulumi.String("Allow all outbound TCP"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
// Create a security group and manage rules as separate resources
var example = new Gcore.CloudSecurityGroup("example", new()
{
ProjectId = 1,
RegionId = 1,
Name = "web-security-group",
Description = "Allow HTTP, HTTPS, and outbound traffic",
Tags =
{
{ "environment", "production" },
},
});
var allowHttp = new Gcore.CloudSecurityGroupRule("allow_http", new()
{
ProjectId = 1,
RegionId = 1,
GroupId = example.Id,
Direction = "ingress",
Ethertype = "IPv4",
Protocol = "tcp",
PortRangeMin = 80,
PortRangeMax = 80,
Description = "Allow HTTP",
});
var allowHttps = new Gcore.CloudSecurityGroupRule("allow_https", new()
{
ProjectId = 1,
RegionId = 1,
GroupId = example.Id,
Direction = "ingress",
Ethertype = "IPv4",
Protocol = "tcp",
PortRangeMin = 443,
PortRangeMax = 443,
Description = "Allow HTTPS",
});
var allowEgressTcp = new Gcore.CloudSecurityGroupRule("allow_egress_tcp", new()
{
ProjectId = 1,
RegionId = 1,
GroupId = example.Id,
Direction = "egress",
Ethertype = "IPv4",
Protocol = "tcp",
Description = "Allow all outbound TCP",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CloudSecurityGroup;
import com.pulumi.gcore.CloudSecurityGroupArgs;
import com.pulumi.gcore.CloudSecurityGroupRule;
import com.pulumi.gcore.CloudSecurityGroupRuleArgs;
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) {
// Create a security group and manage rules as separate resources
var example = new CloudSecurityGroup("example", CloudSecurityGroupArgs.builder()
.projectId(1.0)
.regionId(1.0)
.name("web-security-group")
.description("Allow HTTP, HTTPS, and outbound traffic")
.tags(Map.of("environment", "production"))
.build());
var allowHttp = new CloudSecurityGroupRule("allowHttp", CloudSecurityGroupRuleArgs.builder()
.projectId(1.0)
.regionId(1.0)
.groupId(example.id())
.direction("ingress")
.ethertype("IPv4")
.protocol("tcp")
.portRangeMin(80.0)
.portRangeMax(80.0)
.description("Allow HTTP")
.build());
var allowHttps = new CloudSecurityGroupRule("allowHttps", CloudSecurityGroupRuleArgs.builder()
.projectId(1.0)
.regionId(1.0)
.groupId(example.id())
.direction("ingress")
.ethertype("IPv4")
.protocol("tcp")
.portRangeMin(443.0)
.portRangeMax(443.0)
.description("Allow HTTPS")
.build());
var allowEgressTcp = new CloudSecurityGroupRule("allowEgressTcp", CloudSecurityGroupRuleArgs.builder()
.projectId(1.0)
.regionId(1.0)
.groupId(example.id())
.direction("egress")
.ethertype("IPv4")
.protocol("tcp")
.description("Allow all outbound TCP")
.build());
}
}
resources:
# Create a security group and manage rules as separate resources
example:
type: gcore:CloudSecurityGroup
properties:
projectId: 1
regionId: 1
name: web-security-group
description: Allow HTTP, HTTPS, and outbound traffic
tags:
environment: production
allowHttp:
type: gcore:CloudSecurityGroupRule
name: allow_http
properties:
projectId: 1
regionId: 1
groupId: ${example.id}
direction: ingress
ethertype: IPv4
protocol: tcp
portRangeMin: 80
portRangeMax: 80
description: Allow HTTP
allowHttps:
type: gcore:CloudSecurityGroupRule
name: allow_https
properties:
projectId: 1
regionId: 1
groupId: ${example.id}
direction: ingress
ethertype: IPv4
protocol: tcp
portRangeMin: 443
portRangeMax: 443
description: Allow HTTPS
allowEgressTcp:
type: gcore:CloudSecurityGroupRule
name: allow_egress_tcp
properties:
projectId: 1
regionId: 1
groupId: ${example.id}
direction: egress
ethertype: IPv4
protocol: tcp
description: Allow all outbound TCP
Example coming soon!
Create CloudSecurityGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudSecurityGroup(name: string, args?: CloudSecurityGroupArgs, opts?: CustomResourceOptions);@overload
def CloudSecurityGroup(resource_name: str,
args: Optional[CloudSecurityGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CloudSecurityGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
region_id: Optional[float] = None,
rules: Optional[Sequence[CloudSecurityGroupRuleArgs]] = None,
tags: Optional[Mapping[str, str]] = None)func NewCloudSecurityGroup(ctx *Context, name string, args *CloudSecurityGroupArgs, opts ...ResourceOption) (*CloudSecurityGroup, error)public CloudSecurityGroup(string name, CloudSecurityGroupArgs? args = null, CustomResourceOptions? opts = null)
public CloudSecurityGroup(String name, CloudSecurityGroupArgs args)
public CloudSecurityGroup(String name, CloudSecurityGroupArgs args, CustomResourceOptions options)
type: gcore:CloudSecurityGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcore_cloudsecuritygroup" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CloudSecurityGroupArgs
- 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 CloudSecurityGroupArgs
- 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 CloudSecurityGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudSecurityGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudSecurityGroupArgs
- 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 cloudSecurityGroupResource = new Gcore.CloudSecurityGroup("cloudSecurityGroupResource", new()
{
Description = "string",
Name = "string",
ProjectId = 0,
RegionId = 0,
Rules = new[]
{
new Gcore.Inputs.CloudSecurityGroupRuleArgs
{
Direction = "string",
Description = "string",
Ethertype = "string",
PortRangeMax = 0,
PortRangeMin = 0,
Protocol = "string",
RemoteGroupId = "string",
RemoteIpPrefix = "string",
},
},
Tags =
{
{ "string", "string" },
},
});
example, err := gcore.NewCloudSecurityGroup(ctx, "cloudSecurityGroupResource", &gcore.CloudSecurityGroupArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
RegionId: pulumi.Float64(0),
Rules: gcore.CloudSecurityGroupRuleTypeArray{
&gcore.CloudSecurityGroupRuleTypeArgs{
Direction: pulumi.String("string"),
Description: pulumi.String("string"),
Ethertype: pulumi.String("string"),
PortRangeMax: pulumi.Float64(0),
PortRangeMin: pulumi.Float64(0),
Protocol: pulumi.String("string"),
RemoteGroupId: pulumi.String("string"),
RemoteIpPrefix: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "gcore_cloudsecuritygroup" "cloudSecurityGroupResource" {
description = "string"
name = "string"
project_id = 0
region_id = 0
rules {
direction = "string"
description = "string"
ethertype = "string"
port_range_max = 0
port_range_min = 0
protocol = "string"
remote_group_id = "string"
remote_ip_prefix = "string"
}
tags = {
"string" = "string"
}
}
var cloudSecurityGroupResource = new CloudSecurityGroup("cloudSecurityGroupResource", CloudSecurityGroupArgs.builder()
.description("string")
.name("string")
.projectId(0.0)
.regionId(0.0)
.rules(com.pulumi.gcore.inputs.CloudSecurityGroupRuleArgs.builder()
.direction("string")
.description("string")
.ethertype("string")
.portRangeMax(0.0)
.portRangeMin(0.0)
.protocol("string")
.remoteGroupId("string")
.remoteIpPrefix("string")
.build())
.tags(Map.of("string", "string"))
.build());
cloud_security_group_resource = gcore.CloudSecurityGroup("cloudSecurityGroupResource",
description="string",
name="string",
project_id=float(0),
region_id=float(0),
rules=[{
"direction": "string",
"description": "string",
"ethertype": "string",
"port_range_max": float(0),
"port_range_min": float(0),
"protocol": "string",
"remote_group_id": "string",
"remote_ip_prefix": "string",
}],
tags={
"string": "string",
})
const cloudSecurityGroupResource = new gcore.CloudSecurityGroup("cloudSecurityGroupResource", {
description: "string",
name: "string",
projectId: 0,
regionId: 0,
rules: [{
direction: "string",
description: "string",
ethertype: "string",
portRangeMax: 0,
portRangeMin: 0,
protocol: "string",
remoteGroupId: "string",
remoteIpPrefix: "string",
}],
tags: {
string: "string",
},
});
type: gcore:CloudSecurityGroup
properties:
description: string
name: string
projectId: 0
regionId: 0
rules:
- description: string
direction: string
ethertype: string
portRangeMax: 0
portRangeMin: 0
protocol: string
remoteGroupId: string
remoteIpPrefix: string
tags:
string: string
CloudSecurityGroup 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 CloudSecurityGroup resource accepts the following input properties:
- Description string
- Security group description
- Name string
- Security group name
- Project
Id double - Project ID
- Region
Id double - Region ID
- Rules
List<Cloud
Security Group Rule> - Security group rules
- Dictionary<string, string>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- Description string
- Security group description
- Name string
- Security group name
- Project
Id float64 - Project ID
- Region
Id float64 - Region ID
- Rules
[]Cloud
Security Group Rule Type Args - Security group rules
- map[string]string
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- description string
- Security group description
- name string
- Security group name
- project_
id number - Project ID
- region_
id number - Region ID
- rules list(object)
- Security group rules
- map(string)
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- description String
- Security group description
- name String
- Security group name
- project
Id Double - Project ID
- region
Id Double - Region ID
- rules
List<Cloud
Security Group Rule> - Security group rules
- Map<String,String>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- description string
- Security group description
- name string
- Security group name
- project
Id number - Project ID
- region
Id number - Region ID
- rules
Cloud
Security Group Rule[] - Security group rules
- {[key: string]: string}
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- description str
- Security group description
- name str
- Security group name
- project_
id float - Project ID
- region_
id float - Region ID
- rules
Sequence[Cloud
Security Group Rule Args] - Security group rules
- Mapping[str, str]
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- description String
- Security group description
- name String
- Security group name
- project
Id Number - Project ID
- region
Id Number - Region ID
- rules List<Property Map>
- Security group rules
- Map<String>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudSecurityGroup resource produces the following output properties:
- Created
At string - Datetime when the security group was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region name
- Revision
Number double - The number of revisions
- Security
Group List<CloudRules Security Group Security Group Rule> - Security group rules
-
List<Cloud
Security Group Tags V2> - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- Tasks List<string>
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- Updated
At string - Datetime when the security group was last updated
- Created
At string - Datetime when the security group was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region name
- Revision
Number float64 - The number of revisions
- Security
Group []CloudRules Security Group Security Group Rule - Security group rules
-
[]Cloud
Security Group Tags V2 - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- Tasks []string
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- Updated
At string - Datetime when the security group was last updated
- created_
at string - Datetime when the security group was created
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Region name
- revision_
number number - The number of revisions
- security_
group_ list(object)rules - Security group rules
- list(object)
- List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- tasks list(string)
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- updated_
at string - Datetime when the security group was last updated
- created
At String - Datetime when the security group was created
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region name
- revision
Number Double - The number of revisions
- security
Group List<CloudRules Security Group Security Group Rule> - Security group rules
-
List<Cloud
Security Group Tags V2> - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- tasks List<String>
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- updated
At String - Datetime when the security group was last updated
- created
At string - Datetime when the security group was created
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Region name
- revision
Number number - The number of revisions
- security
Group CloudRules Security Group Security Group Rule[] - Security group rules
-
Cloud
Security Group Tags V2[] - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- tasks string[]
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- updated
At string - Datetime when the security group was last updated
- created_
at str - Datetime when the security group was created
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- Region name
- revision_
number float - The number of revisions
- security_
group_ Sequence[Cloudrules Security Group Security Group Rule] - Security group rules
-
Sequence[Cloud
Security Group Tags V2] - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- tasks Sequence[str]
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- updated_
at str - Datetime when the security group was last updated
- created
At String - Datetime when the security group was created
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region name
- revision
Number Number - The number of revisions
- security
Group List<Property Map>Rules - Security group rules
- List<Property Map>
- List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- tasks List<String>
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- updated
At String - Datetime when the security group was last updated
Look up Existing CloudSecurityGroup Resource
Get an existing CloudSecurityGroup 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?: CloudSecurityGroupState, opts?: CustomResourceOptions): CloudSecurityGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
region: Optional[str] = None,
region_id: Optional[float] = None,
revision_number: Optional[float] = None,
rules: Optional[Sequence[CloudSecurityGroupRuleArgs]] = None,
security_group_rules: Optional[Sequence[CloudSecurityGroupSecurityGroupRuleArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_v2s: Optional[Sequence[CloudSecurityGroupTagsV2Args]] = None,
tasks: Optional[Sequence[str]] = None,
updated_at: Optional[str] = None) -> CloudSecurityGroupfunc GetCloudSecurityGroup(ctx *Context, name string, id IDInput, state *CloudSecurityGroupState, opts ...ResourceOption) (*CloudSecurityGroup, error)public static CloudSecurityGroup Get(string name, Input<string> id, CloudSecurityGroupState? state, CustomResourceOptions? opts = null)public static CloudSecurityGroup get(String name, Output<String> id, CloudSecurityGroupState state, CustomResourceOptions options)resources: _: type: gcore:CloudSecurityGroup get: id: ${id}import {
to = gcore_cloudsecuritygroup.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.
- Created
At string - Datetime when the security group was created
- Description string
- Security group description
- Name string
- Security group name
- Project
Id double - Project ID
- Region string
- Region name
- Region
Id double - Region ID
- Revision
Number double - The number of revisions
- Rules
List<Cloud
Security Group Rule> - Security group rules
- Security
Group List<CloudRules Security Group Security Group Rule> - Security group rules
- Dictionary<string, string>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
-
List<Cloud
Security Group Tags V2> - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- Tasks List<string>
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- Updated
At string - Datetime when the security group was last updated
- Created
At string - Datetime when the security group was created
- Description string
- Security group description
- Name string
- Security group name
- Project
Id float64 - Project ID
- Region string
- Region name
- Region
Id float64 - Region ID
- Revision
Number float64 - The number of revisions
- Rules
[]Cloud
Security Group Rule Type Args - Security group rules
- Security
Group []CloudRules Security Group Security Group Rule Args - Security group rules
- map[string]string
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
-
[]Cloud
Security Group Tags V2Args - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- Tasks []string
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- Updated
At string - Datetime when the security group was last updated
- created_
at string - Datetime when the security group was created
- description string
- Security group description
- name string
- Security group name
- project_
id number - Project ID
- region string
- Region name
- region_
id number - Region ID
- revision_
number number - The number of revisions
- rules list(object)
- Security group rules
- security_
group_ list(object)rules - Security group rules
- map(string)
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- list(object)
- List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- tasks list(string)
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- updated_
at string - Datetime when the security group was last updated
- created
At String - Datetime when the security group was created
- description String
- Security group description
- name String
- Security group name
- project
Id Double - Project ID
- region String
- Region name
- region
Id Double - Region ID
- revision
Number Double - The number of revisions
- rules
List<Cloud
Security Group Rule> - Security group rules
- security
Group List<CloudRules Security Group Security Group Rule> - Security group rules
- Map<String,String>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
-
List<Cloud
Security Group Tags V2> - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- tasks List<String>
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- updated
At String - Datetime when the security group was last updated
- created
At string - Datetime when the security group was created
- description string
- Security group description
- name string
- Security group name
- project
Id number - Project ID
- region string
- Region name
- region
Id number - Region ID
- revision
Number number - The number of revisions
- rules
Cloud
Security Group Rule[] - Security group rules
- security
Group CloudRules Security Group Security Group Rule[] - Security group rules
- {[key: string]: string}
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
-
Cloud
Security Group Tags V2[] - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- tasks string[]
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- updated
At string - Datetime when the security group was last updated
- created_
at str - Datetime when the security group was created
- description str
- Security group description
- name str
- Security group name
- project_
id float - Project ID
- region str
- Region name
- region_
id float - Region ID
- revision_
number float - The number of revisions
- rules
Sequence[Cloud
Security Group Rule Args] - Security group rules
- security_
group_ Sequence[Cloudrules Security Group Security Group Rule Args] - Security group rules
- Mapping[str, str]
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
-
Sequence[Cloud
Security Group Tags V2Args] - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- tasks Sequence[str]
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- updated_
at str - Datetime when the security group was last updated
- created
At String - Datetime when the security group was created
- description String
- Security group description
- name String
- Security group name
- project
Id Number - Project ID
- region String
- Region name
- region
Id Number - Region ID
- revision
Number Number - The number of revisions
- rules List<Property Map>
- Security group rules
- security
Group List<Property Map>Rules - Security group rules
- Map<String>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- List<Property Map>
- List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- tasks List<String>
- List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
- updated
At String - Datetime when the security group was last updated
Supporting Types
CloudSecurityGroupRule, CloudSecurityGroupRuleArgs
- Direction string
- Ingress or egress, which is the direction in which the security group is applied Available values: "egress", "ingress".
- Description string
- Rule description
- Ethertype string
- Ether type Available values: "IPv4", "IPv6".
- Port
Range doubleMax - The maximum port number in the range that is matched by the security group rule
- Port
Range doubleMin - The minimum port number in the range that is matched by the security group rule
- Protocol string
- V2 protocol enum without 'any'. Use null for all protocols instead. Available values: "ah", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- Remote
Group stringId - The remote group UUID to associate with this security group
- Remote
Ip stringPrefix - The remote IP prefix that is matched by this security group rule
- Direction string
- Ingress or egress, which is the direction in which the security group is applied Available values: "egress", "ingress".
- Description string
- Rule description
- Ethertype string
- Ether type Available values: "IPv4", "IPv6".
- Port
Range float64Max - The maximum port number in the range that is matched by the security group rule
- Port
Range float64Min - The minimum port number in the range that is matched by the security group rule
- Protocol string
- V2 protocol enum without 'any'. Use null for all protocols instead. Available values: "ah", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- Remote
Group stringId - The remote group UUID to associate with this security group
- Remote
Ip stringPrefix - The remote IP prefix that is matched by this security group rule
- direction string
- Ingress or egress, which is the direction in which the security group is applied Available values: "egress", "ingress".
- description string
- Rule description
- ethertype string
- Ether type Available values: "IPv4", "IPv6".
- port_
range_ numbermax - The maximum port number in the range that is matched by the security group rule
- port_
range_ numbermin - The minimum port number in the range that is matched by the security group rule
- protocol string
- V2 protocol enum without 'any'. Use null for all protocols instead. Available values: "ah", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- remote_
group_ stringid - The remote group UUID to associate with this security group
- remote_
ip_ stringprefix - The remote IP prefix that is matched by this security group rule
- direction String
- Ingress or egress, which is the direction in which the security group is applied Available values: "egress", "ingress".
- description String
- Rule description
- ethertype String
- Ether type Available values: "IPv4", "IPv6".
- port
Range DoubleMax - The maximum port number in the range that is matched by the security group rule
- port
Range DoubleMin - The minimum port number in the range that is matched by the security group rule
- protocol String
- V2 protocol enum without 'any'. Use null for all protocols instead. Available values: "ah", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- remote
Group StringId - The remote group UUID to associate with this security group
- remote
Ip StringPrefix - The remote IP prefix that is matched by this security group rule
- direction string
- Ingress or egress, which is the direction in which the security group is applied Available values: "egress", "ingress".
- description string
- Rule description
- ethertype string
- Ether type Available values: "IPv4", "IPv6".
- port
Range numberMax - The maximum port number in the range that is matched by the security group rule
- port
Range numberMin - The minimum port number in the range that is matched by the security group rule
- protocol string
- V2 protocol enum without 'any'. Use null for all protocols instead. Available values: "ah", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- remote
Group stringId - The remote group UUID to associate with this security group
- remote
Ip stringPrefix - The remote IP prefix that is matched by this security group rule
- direction str
- Ingress or egress, which is the direction in which the security group is applied Available values: "egress", "ingress".
- description str
- Rule description
- ethertype str
- Ether type Available values: "IPv4", "IPv6".
- port_
range_ floatmax - The maximum port number in the range that is matched by the security group rule
- port_
range_ floatmin - The minimum port number in the range that is matched by the security group rule
- protocol str
- V2 protocol enum without 'any'. Use null for all protocols instead. Available values: "ah", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- remote_
group_ strid - The remote group UUID to associate with this security group
- remote_
ip_ strprefix - The remote IP prefix that is matched by this security group rule
- direction String
- Ingress or egress, which is the direction in which the security group is applied Available values: "egress", "ingress".
- description String
- Rule description
- ethertype String
- Ether type Available values: "IPv4", "IPv6".
- port
Range NumberMax - The maximum port number in the range that is matched by the security group rule
- port
Range NumberMin - The minimum port number in the range that is matched by the security group rule
- protocol String
- V2 protocol enum without 'any'. Use null for all protocols instead. Available values: "ah", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- remote
Group StringId - The remote group UUID to associate with this security group
- remote
Ip StringPrefix - The remote IP prefix that is matched by this security group rule
CloudSecurityGroupSecurityGroupRule, CloudSecurityGroupSecurityGroupRuleArgs
- Created
At string - Datetime when the rule was created
- Description string
- Rule description
- Direction string
- Ingress or egress, which is the direction in which the security group rule is applied Available values: "egress", "ingress".
- Ethertype string
- Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules. Available values: "IPv4", "IPv6".
- Id string
- The ID of the security group rule
- Port
Range doubleMax - The maximum port number in the range that is matched by the security group rule
- Port
Range doubleMin - The minimum port number in the range that is matched by the security group rule
- Protocol string
- Protocol Available values: "ah", "any", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- Remote
Group stringId - The remote group UUID to associate with this security group rule
- Remote
Ip stringPrefix - The remote IP prefix that is matched by this security group rule
- Revision
Number double - The revision number of the resource
- Security
Group stringId - The security group ID to associate with this security group rule
- Updated
At string - Datetime when the rule was last updated
- Created
At string - Datetime when the rule was created
- Description string
- Rule description
- Direction string
- Ingress or egress, which is the direction in which the security group rule is applied Available values: "egress", "ingress".
- Ethertype string
- Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules. Available values: "IPv4", "IPv6".
- Id string
- The ID of the security group rule
- Port
Range float64Max - The maximum port number in the range that is matched by the security group rule
- Port
Range float64Min - The minimum port number in the range that is matched by the security group rule
- Protocol string
- Protocol Available values: "ah", "any", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- Remote
Group stringId - The remote group UUID to associate with this security group rule
- Remote
Ip stringPrefix - The remote IP prefix that is matched by this security group rule
- Revision
Number float64 - The revision number of the resource
- Security
Group stringId - The security group ID to associate with this security group rule
- Updated
At string - Datetime when the rule was last updated
- created_
at string - Datetime when the rule was created
- description string
- Rule description
- direction string
- Ingress or egress, which is the direction in which the security group rule is applied Available values: "egress", "ingress".
- ethertype string
- Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules. Available values: "IPv4", "IPv6".
- id string
- The ID of the security group rule
- port_
range_ numbermax - The maximum port number in the range that is matched by the security group rule
- port_
range_ numbermin - The minimum port number in the range that is matched by the security group rule
- protocol string
- Protocol Available values: "ah", "any", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- remote_
group_ stringid - The remote group UUID to associate with this security group rule
- remote_
ip_ stringprefix - The remote IP prefix that is matched by this security group rule
- revision_
number number - The revision number of the resource
- security_
group_ stringid - The security group ID to associate with this security group rule
- updated_
at string - Datetime when the rule was last updated
- created
At String - Datetime when the rule was created
- description String
- Rule description
- direction String
- Ingress or egress, which is the direction in which the security group rule is applied Available values: "egress", "ingress".
- ethertype String
- Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules. Available values: "IPv4", "IPv6".
- id String
- The ID of the security group rule
- port
Range DoubleMax - The maximum port number in the range that is matched by the security group rule
- port
Range DoubleMin - The minimum port number in the range that is matched by the security group rule
- protocol String
- Protocol Available values: "ah", "any", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- remote
Group StringId - The remote group UUID to associate with this security group rule
- remote
Ip StringPrefix - The remote IP prefix that is matched by this security group rule
- revision
Number Double - The revision number of the resource
- security
Group StringId - The security group ID to associate with this security group rule
- updated
At String - Datetime when the rule was last updated
- created
At string - Datetime when the rule was created
- description string
- Rule description
- direction string
- Ingress or egress, which is the direction in which the security group rule is applied Available values: "egress", "ingress".
- ethertype string
- Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules. Available values: "IPv4", "IPv6".
- id string
- The ID of the security group rule
- port
Range numberMax - The maximum port number in the range that is matched by the security group rule
- port
Range numberMin - The minimum port number in the range that is matched by the security group rule
- protocol string
- Protocol Available values: "ah", "any", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- remote
Group stringId - The remote group UUID to associate with this security group rule
- remote
Ip stringPrefix - The remote IP prefix that is matched by this security group rule
- revision
Number number - The revision number of the resource
- security
Group stringId - The security group ID to associate with this security group rule
- updated
At string - Datetime when the rule was last updated
- created_
at str - Datetime when the rule was created
- description str
- Rule description
- direction str
- Ingress or egress, which is the direction in which the security group rule is applied Available values: "egress", "ingress".
- ethertype str
- Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules. Available values: "IPv4", "IPv6".
- id str
- The ID of the security group rule
- port_
range_ floatmax - The maximum port number in the range that is matched by the security group rule
- port_
range_ floatmin - The minimum port number in the range that is matched by the security group rule
- protocol str
- Protocol Available values: "ah", "any", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- remote_
group_ strid - The remote group UUID to associate with this security group rule
- remote_
ip_ strprefix - The remote IP prefix that is matched by this security group rule
- revision_
number float - The revision number of the resource
- security_
group_ strid - The security group ID to associate with this security group rule
- updated_
at str - Datetime when the rule was last updated
- created
At String - Datetime when the rule was created
- description String
- Rule description
- direction String
- Ingress or egress, which is the direction in which the security group rule is applied Available values: "egress", "ingress".
- ethertype String
- Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules. Available values: "IPv4", "IPv6".
- id String
- The ID of the security group rule
- port
Range NumberMax - The maximum port number in the range that is matched by the security group rule
- port
Range NumberMin - The minimum port number in the range that is matched by the security group rule
- protocol String
- Protocol Available values: "ah", "any", "dccp", "egp", "esp", "gre", "icmp", "igmp", "ipencap", "ipip", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "tcp", "udp", "udplite", "vrrp".
- remote
Group StringId - The remote group UUID to associate with this security group rule
- remote
Ip StringPrefix - The remote IP prefix that is matched by this security group rule
- revision
Number Number - The revision number of the resource
- security
Group StringId - The security group ID to associate with this security group rule
- updated
At String - Datetime when the rule was last updated
CloudSecurityGroupTagsV2, CloudSecurityGroupTagsV2Args
- Key string
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- Read
Only bool - If true, the tag is read-only and cannot be modified by the user
- Value string
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- Key string
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- Read
Only bool - If true, the tag is read-only and cannot be modified by the user
- Value string
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- key string
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- read_
only bool - If true, the tag is read-only and cannot be modified by the user
- value string
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- key String
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- read
Only Boolean - If true, the tag is read-only and cannot be modified by the user
- value String
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- key string
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- read
Only boolean - If true, the tag is read-only and cannot be modified by the user
- value string
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- key str
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- read_
only bool - If true, the tag is read-only and cannot be modified by the user
- value str
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- key String
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- read
Only Boolean - If true, the tag is read-only and cannot be modified by the user
- value String
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
Import
$ pulumi import gcore:index/cloudSecurityGroup:CloudSecurityGroup example '<project_id>/<region_id>/<group_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
published on Wednesday, Jul 1, 2026 by g-core