Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
published on Tuesday, Mar 24, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
published on Tuesday, Mar 24, 2026 by g-core
Security groups act as virtual firewalls controlling inbound and outbound traffic for instances and other resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCloudSecurityGroup = gcore.getCloudSecurityGroup({
projectId: 1,
regionId: 1,
groupId: "024a29e9-b4b7-4c91-9a46-505be123d9f8",
});
import pulumi
import pulumi_gcore as gcore
example_cloud_security_group = gcore.get_cloud_security_group(project_id=1,
region_id=1,
group_id="024a29e9-b4b7-4c91-9a46-505be123d9f8")
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 {
_, err := gcore.LookupCloudSecurityGroup(ctx, &gcore.LookupCloudSecurityGroupArgs{
ProjectId: pulumi.Float64Ref(1),
RegionId: pulumi.Float64Ref(1),
GroupId: pulumi.StringRef("024a29e9-b4b7-4c91-9a46-505be123d9f8"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleCloudSecurityGroup = Gcore.GetCloudSecurityGroup.Invoke(new()
{
ProjectId = 1,
RegionId = 1,
GroupId = "024a29e9-b4b7-4c91-9a46-505be123d9f8",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetCloudSecurityGroupArgs;
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) {
final var exampleCloudSecurityGroup = GcoreFunctions.getCloudSecurityGroup(GetCloudSecurityGroupArgs.builder()
.projectId(1)
.regionId(1)
.groupId("024a29e9-b4b7-4c91-9a46-505be123d9f8")
.build());
}
}
variables:
exampleCloudSecurityGroup:
fn::invoke:
function: gcore:getCloudSecurityGroup
arguments:
projectId: 1
regionId: 1
groupId: 024a29e9-b4b7-4c91-9a46-505be123d9f8
Using getCloudSecurityGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCloudSecurityGroup(args: GetCloudSecurityGroupArgs, opts?: InvokeOptions): Promise<GetCloudSecurityGroupResult>
function getCloudSecurityGroupOutput(args: GetCloudSecurityGroupOutputArgs, opts?: InvokeOptions): Output<GetCloudSecurityGroupResult>def get_cloud_security_group(find_one_by: Optional[GetCloudSecurityGroupFindOneBy] = None,
group_id: Optional[str] = None,
project_id: Optional[float] = None,
region_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudSecurityGroupResult
def get_cloud_security_group_output(find_one_by: Optional[pulumi.Input[GetCloudSecurityGroupFindOneByArgs]] = None,
group_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
region_id: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudSecurityGroupResult]func LookupCloudSecurityGroup(ctx *Context, args *LookupCloudSecurityGroupArgs, opts ...InvokeOption) (*LookupCloudSecurityGroupResult, error)
func LookupCloudSecurityGroupOutput(ctx *Context, args *LookupCloudSecurityGroupOutputArgs, opts ...InvokeOption) LookupCloudSecurityGroupResultOutput> Note: This function is named LookupCloudSecurityGroup in the Go SDK.
public static class GetCloudSecurityGroup
{
public static Task<GetCloudSecurityGroupResult> InvokeAsync(GetCloudSecurityGroupArgs args, InvokeOptions? opts = null)
public static Output<GetCloudSecurityGroupResult> Invoke(GetCloudSecurityGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudSecurityGroupResult> getCloudSecurityGroup(GetCloudSecurityGroupArgs args, InvokeOptions options)
public static Output<GetCloudSecurityGroupResult> getCloudSecurityGroup(GetCloudSecurityGroupArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getCloudSecurityGroup:getCloudSecurityGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Find
One GetBy Cloud Security Group Find One By - Group
Id string - Group ID
- Project
Id double - Project ID
- Region
Id double - Region ID
- Find
One GetBy Cloud Security Group Find One By - Group
Id string - Group ID
- Project
Id float64 - Project ID
- Region
Id float64 - Region ID
- find
One GetBy Cloud Security Group Find One By - group
Id String - Group ID
- project
Id Double - Project ID
- region
Id Double - Region ID
- find
One GetBy Cloud Security Group Find One By - group
Id string - Group ID
- project
Id number - Project ID
- region
Id number - Region ID
- find_
one_ Getby Cloud Security Group Find One By - group_
id str - Group ID
- project_
id float - Project ID
- region_
id float - Region ID
- find
One Property MapBy - group
Id String - Group ID
- project
Id Number - Project ID
- region
Id Number - Region ID
getCloudSecurityGroup Result
The following output properties are available:
- Created
At string - Datetime when the security group was created
- Description string
- Security group description
- Id string
- Group ID
- Name string
- Security group name
- Region string
- Region name
- Revision
Number double - The number of revisions
- Security
Group List<GetRules Cloud Security Group Security Group Rule> - Security group rules
-
List<Get
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.
- Updated
At string - Datetime when the security group was last updated
- Find
One GetBy Cloud Security Group Find One By - Group
Id string - Group ID
- Project
Id double - Project ID
- Region
Id double - Region ID
- Created
At string - Datetime when the security group was created
- Description string
- Security group description
- Id string
- Group ID
- Name string
- Security group name
- Region string
- Region name
- Revision
Number float64 - The number of revisions
- Security
Group []GetRules Cloud Security Group Security Group Rule - Security group rules
-
[]Get
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.
- Updated
At string - Datetime when the security group was last updated
- Find
One GetBy Cloud Security Group Find One By - Group
Id string - Group ID
- Project
Id float64 - Project ID
- Region
Id float64 - Region ID
- created
At String - Datetime when the security group was created
- description String
- Security group description
- id String
- Group ID
- name String
- Security group name
- region String
- Region name
- revision
Number Double - The number of revisions
- security
Group List<GetRules Cloud Security Group Security Group Rule> - Security group rules
-
List<Get
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.
- updated
At String - Datetime when the security group was last updated
- find
One GetBy Cloud Security Group Find One By - group
Id String - Group ID
- project
Id Double - Project ID
- region
Id Double - Region ID
- created
At string - Datetime when the security group was created
- description string
- Security group description
- id string
- Group ID
- name string
- Security group name
- region string
- Region name
- revision
Number number - The number of revisions
- security
Group GetRules Cloud Security Group Security Group Rule[] - Security group rules
-
Get
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.
- updated
At string - Datetime when the security group was last updated
- find
One GetBy Cloud Security Group Find One By - group
Id string - Group ID
- project
Id number - Project ID
- region
Id number - Region ID
- created_
at str - Datetime when the security group was created
- description str
- Security group description
- id str
- Group ID
- name str
- Security group name
- region str
- Region name
- revision_
number float - The number of revisions
- security_
group_ Sequence[Getrules Cloud Security Group Security Group Rule] - Security group rules
-
Sequence[Get
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.
- updated_
at str - Datetime when the security group was last updated
- find_
one_ Getby Cloud Security Group Find One By - group_
id str - Group ID
- project_
id float - Project ID
- region_
id float - Region ID
- created
At String - Datetime when the security group was created
- description String
- Security group description
- id String
- Group ID
- name String
- Security group name
- 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.
- updated
At String - Datetime when the security group was last updated
- find
One Property MapBy - group
Id String - Group ID
- project
Id Number - Project ID
- region
Id Number - Region ID
Supporting Types
GetCloudSecurityGroupFindOneBy
- Name string
- Optional. Filter by name. Must be specified a full name of the security group.
- Tag
Key stringValue - Optional. Filter by tag key-value pairs.
- Tag
Keys List<string> - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
- Name string
- Optional. Filter by name. Must be specified a full name of the security group.
- Tag
Key stringValue - Optional. Filter by tag key-value pairs.
- Tag
Keys []string - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
- name String
- Optional. Filter by name. Must be specified a full name of the security group.
- tag
Key StringValue - Optional. Filter by tag key-value pairs.
- tag
Keys List<String> - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
- name string
- Optional. Filter by name. Must be specified a full name of the security group.
- tag
Key stringValue - Optional. Filter by tag key-value pairs.
- tag
Keys string[] - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
- name str
- Optional. Filter by name. Must be specified a full name of the security group.
- tag_
key_ strvalue - Optional. Filter by tag key-value pairs.
- tag_
keys Sequence[str] - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
- name String
- Optional. Filter by name. Must be specified a full name of the security group.
- tag
Key StringValue - Optional. Filter by tag key-value pairs.
- tag
Keys List<String> - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
GetCloudSecurityGroupSecurityGroupRule
- 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 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
GetCloudSecurityGroupTagsV2
- 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.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
published on Tuesday, Mar 24, 2026 by g-core
