gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core
gcorelabs.getSecuritygroup
Explore with Pulumi AI
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.
- Metadata
K string - Metadata
Kv Dictionary<string, string> - Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Name string
- Id string
- The ID of this resource.
- Metadata
K string - Metadata
Kv map[string]string - Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- name String
- id String
- The ID of this resource.
- metadata
K String - metadata
Kv Map<String,String> - project
Id Double - project
Name String - region
Id Double - region
Name String
- name string
- id string
- The ID of this resource.
- metadata
K string - metadata
Kv {[key: string]: string} - project
Id number - project
Name string - region
Id number - region
Name 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.
- metadata
K String - metadata
Kv Map<String> - project
Id Number - project
Name String - region
Id Number - region
Name String
getSecuritygroup Result
The following output properties are available:
- Description string
- Id string
- The ID of this resource.
- Metadata
Read List<GetOnlies Securitygroup Metadata Read Only> - Name string
- Security
Group List<GetRules Securitygroup Security Group Rule> - 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 string - Metadata
Kv Dictionary<string, string> - Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Description string
- Id string
- The ID of this resource.
- Metadata
Read []GetOnlies Securitygroup Metadata Read Only - Name string
- Security
Group []GetRules Securitygroup Security Group Rule - 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 string - Metadata
Kv map[string]string - Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- description String
- id String
- The ID of this resource.
- metadata
Read List<GetOnlies Securitygroup Metadata Read Only> - name String
- security
Group List<GetRules Securitygroup Security Group Rule> - 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 String - metadata
Kv Map<String,String> - project
Id Double - project
Name String - region
Id Double - region
Name String
- description string
- id string
- The ID of this resource.
- metadata
Read GetOnlies Securitygroup Metadata Read Only[] - name string
- security
Group GetRules Securitygroup Security Group Rule[] - 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 string - metadata
Kv {[key: string]: string} - project
Id number - project
Name string - region
Id number - region
Name string
- description str
- id str
- The ID of this resource.
- metadata_
read_ Sequence[Getonlies Securitygroup Metadata Read Only] - name str
- security_
group_ Sequence[Getrules Securitygroup Security Group Rule] - 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.
- metadata
Read List<Property Map>Onlies - name String
- security
Group List<Property Map>Rules - 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 String - metadata
Kv Map<String> - project
Id Number - project
Name String - region
Id Number - region
Name String
Supporting Types
GetSecuritygroupMetadataReadOnly
GetSecuritygroupSecurityGroupRule
- Created
At string - Description string
- Direction string
- Ethertype string
- Id string
- Port
Range doubleMax - Port
Range doubleMin - Protocol string
- Remote
Ip stringPrefix - Updated
At string
- Created
At string - Description string
- Direction string
- Ethertype string
- Id string
- Port
Range float64Max - Port
Range float64Min - Protocol string
- Remote
Ip stringPrefix - Updated
At string
- created
At String - description String
- direction String
- ethertype String
- id String
- port
Range DoubleMax - port
Range DoubleMin - protocol String
- remote
Ip StringPrefix - updated
At String
- created
At string - description string
- direction string
- ethertype string
- id string
- port
Range numberMax - port
Range numberMin - protocol string
- remote
Ip stringPrefix - updated
At string
- created_
at str - description str
- direction str
- ethertype str
- id str
- port_
range_ floatmax - port_
range_ floatmin - protocol str
- remote_
ip_ strprefix - updated_
at str
- created
At String - description String
- direction String
- ethertype String
- id String
- port
Range NumberMax - port
Range NumberMin - protocol String
- remote
Ip StringPrefix - updated
At String
Package Details
- Repository
- gcorelabs g-core/terraform-provider-gcorelabs
- License
- Notes
- This Pulumi package is based on the
gcorelabs
Terraform Provider.