1. Packages
  2. Gcorelabs Provider
  3. API Docs
  4. getSecuritygroup
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

gcorelabs.getSecuritygroup

Explore with Pulumi AI

gcorelabs logo
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

    Represent SecurityGroups(Firewall)

    Using getSecuritygroup

    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 getSecuritygroup(args: GetSecuritygroupArgs, opts?: InvokeOptions): Promise<GetSecuritygroupResult>
    function getSecuritygroupOutput(args: GetSecuritygroupOutputArgs, opts?: InvokeOptions): Output<GetSecuritygroupResult>
    def get_securitygroup(id: Optional[str] = None,
                          metadata_k: Optional[str] = None,
                          metadata_kv: 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,
                          opts: Optional[InvokeOptions] = None) -> GetSecuritygroupResult
    def get_securitygroup_output(id: Optional[pulumi.Input[str]] = None,
                          metadata_k: Optional[pulumi.Input[str]] = None,
                          metadata_kv: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          project_id: Optional[pulumi.Input[float]] = None,
                          project_name: Optional[pulumi.Input[str]] = None,
                          region_id: Optional[pulumi.Input[float]] = None,
                          region_name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSecuritygroupResult]
    func LookupSecuritygroup(ctx *Context, args *LookupSecuritygroupArgs, opts ...InvokeOption) (*LookupSecuritygroupResult, error)
    func LookupSecuritygroupOutput(ctx *Context, args *LookupSecuritygroupOutputArgs, opts ...InvokeOption) LookupSecuritygroupResultOutput

    > Note: This function is named LookupSecuritygroup in the Go SDK.

    public static class GetSecuritygroup 
    {
        public static Task<GetSecuritygroupResult> InvokeAsync(GetSecuritygroupArgs args, InvokeOptions? opts = null)
        public static Output<GetSecuritygroupResult> Invoke(GetSecuritygroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecuritygroupResult> getSecuritygroup(GetSecuritygroupArgs args, InvokeOptions options)
    public static Output<GetSecuritygroupResult> getSecuritygroup(GetSecuritygroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcorelabs:index/getSecuritygroup:getSecuritygroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Id string
    The ID of this resource.
    MetadataK string
    MetadataKv Dictionary<string, string>
    ProjectId double
    ProjectName string
    RegionId double
    RegionName string
    Name string
    Id string
    The ID of this resource.
    MetadataK string
    MetadataKv map[string]string
    ProjectId float64
    ProjectName string
    RegionId float64
    RegionName string
    name String
    id String
    The ID of this resource.
    metadataK String
    metadataKv Map<String,String>
    projectId Double
    projectName String
    regionId Double
    regionName String
    name string
    id string
    The ID of this resource.
    metadataK string
    metadataKv {[key: string]: string}
    projectId number
    projectName string
    regionId number
    regionName string
    name str
    id str
    The ID of this resource.
    metadata_k str
    metadata_kv Mapping[str, str]
    project_id float
    project_name str
    region_id float
    region_name str
    name String
    id String
    The ID of this resource.
    metadataK String
    metadataKv Map<String>
    projectId Number
    projectName String
    regionId Number
    regionName String

    getSecuritygroup Result

    The following output properties are available:

    Description string
    Id string
    The ID of this resource.
    MetadataReadOnlies List<GetSecuritygroupMetadataReadOnly>
    Name string
    SecurityGroupRules List<GetSecuritygroupSecurityGroupRule>
    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
    MetadataK string
    MetadataKv Dictionary<string, string>
    ProjectId double
    ProjectName string
    RegionId double
    RegionName string
    Description string
    Id string
    The ID of this resource.
    MetadataReadOnlies []GetSecuritygroupMetadataReadOnly
    Name string
    SecurityGroupRules []GetSecuritygroupSecurityGroupRule
    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
    MetadataK string
    MetadataKv map[string]string
    ProjectId float64
    ProjectName string
    RegionId float64
    RegionName string
    description String
    id String
    The ID of this resource.
    metadataReadOnlies List<GetSecuritygroupMetadataReadOnly>
    name String
    securityGroupRules List<GetSecuritygroupSecurityGroupRule>
    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
    metadataK String
    metadataKv Map<String,String>
    projectId Double
    projectName String
    regionId Double
    regionName String
    description string
    id string
    The ID of this resource.
    metadataReadOnlies GetSecuritygroupMetadataReadOnly[]
    name string
    securityGroupRules GetSecuritygroupSecurityGroupRule[]
    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
    metadataK string
    metadataKv {[key: string]: string}
    projectId number
    projectName string
    regionId number
    regionName string
    description str
    id str
    The ID of this resource.
    metadata_read_onlies Sequence[GetSecuritygroupMetadataReadOnly]
    name str
    security_group_rules Sequence[GetSecuritygroupSecurityGroupRule]
    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
    metadata_k str
    metadata_kv Mapping[str, str]
    project_id float
    project_name str
    region_id float
    region_name str
    description String
    id String
    The ID of this resource.
    metadataReadOnlies List<Property Map>
    name String
    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
    metadataK String
    metadataKv Map<String>
    projectId Number
    projectName String
    regionId Number
    regionName String

    Supporting Types

    GetSecuritygroupMetadataReadOnly

    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

    GetSecuritygroupSecurityGroupRule

    CreatedAt string
    Description string
    Direction string
    Ethertype string
    Id string
    PortRangeMax double
    PortRangeMin double
    Protocol string
    RemoteIpPrefix string
    UpdatedAt string
    CreatedAt string
    Description string
    Direction string
    Ethertype string
    Id string
    PortRangeMax float64
    PortRangeMin float64
    Protocol string
    RemoteIpPrefix string
    UpdatedAt string
    createdAt String
    description String
    direction String
    ethertype String
    id String
    portRangeMax Double
    portRangeMin Double
    protocol String
    remoteIpPrefix String
    updatedAt String
    createdAt string
    description string
    direction string
    ethertype string
    id string
    portRangeMax number
    portRangeMin number
    protocol string
    remoteIpPrefix string
    updatedAt string
    createdAt String
    description String
    direction String
    ethertype String
    id String
    portRangeMax Number
    portRangeMin Number
    protocol String
    remoteIpPrefix String
    updatedAt String

    Package Details

    Repository
    gcorelabs g-core/terraform-provider-gcorelabs
    License
    Notes
    This Pulumi package is based on the gcorelabs Terraform Provider.
    gcorelabs logo
    gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core