Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
Security group datasource schema. Must have a region specified in the provider configuration.
Example Usage
data "stackit_security_group_rule" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
security_group_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
security_group_rule_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Using getSecurityGroupRule
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 getSecurityGroupRule(args: GetSecurityGroupRuleArgs, opts?: InvokeOptions): Promise<GetSecurityGroupRuleResult>
function getSecurityGroupRuleOutput(args: GetSecurityGroupRuleOutputArgs, opts?: InvokeOptions): Output<GetSecurityGroupRuleResult>def get_security_group_rule(project_id: Optional[str] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None,
security_group_rule_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityGroupRuleResult
def get_security_group_rule_output(project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
security_group_id: Optional[pulumi.Input[str]] = None,
security_group_rule_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityGroupRuleResult]func LookupSecurityGroupRule(ctx *Context, args *LookupSecurityGroupRuleArgs, opts ...InvokeOption) (*LookupSecurityGroupRuleResult, error)
func LookupSecurityGroupRuleOutput(ctx *Context, args *LookupSecurityGroupRuleOutputArgs, opts ...InvokeOption) LookupSecurityGroupRuleResultOutput> Note: This function is named LookupSecurityGroupRule in the Go SDK.
public static class GetSecurityGroupRule
{
public static Task<GetSecurityGroupRuleResult> InvokeAsync(GetSecurityGroupRuleArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityGroupRuleResult> Invoke(GetSecurityGroupRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityGroupRuleResult> getSecurityGroupRule(GetSecurityGroupRuleArgs args, InvokeOptions options)
public static Output<GetSecurityGroupRuleResult> getSecurityGroupRule(GetSecurityGroupRuleArgs args, InvokeOptions options)
fn::invoke:
function: stackit:index/getSecurityGroupRule:getSecurityGroupRule
arguments:
# arguments dictionaryThe following arguments are supported:
- Project
Id string - STACKIT project ID to which the security group rule is associated.
- Security
Group stringId - The security group ID.
- Security
Group stringRule Id - The security group rule ID.
- Region string
- The resource region. If not defined, the provider region is used.
- Project
Id string - STACKIT project ID to which the security group rule is associated.
- Security
Group stringId - The security group ID.
- Security
Group stringRule Id - The security group rule ID.
- Region string
- The resource region. If not defined, the provider region is used.
- project
Id String - STACKIT project ID to which the security group rule is associated.
- security
Group StringId - The security group ID.
- security
Group StringRule Id - The security group rule ID.
- region String
- The resource region. If not defined, the provider region is used.
- project
Id string - STACKIT project ID to which the security group rule is associated.
- security
Group stringId - The security group ID.
- security
Group stringRule Id - The security group rule ID.
- region string
- The resource region. If not defined, the provider region is used.
- project_
id str - STACKIT project ID to which the security group rule is associated.
- security_
group_ strid - The security group ID.
- security_
group_ strrule_ id - The security group rule ID.
- region str
- The resource region. If not defined, the provider region is used.
- project
Id String - STACKIT project ID to which the security group rule is associated.
- security
Group StringId - The security group ID.
- security
Group StringRule Id - The security group rule ID.
- region String
- The resource region. If not defined, the provider region is used.
getSecurityGroupRule Result
The following output properties are available:
- Description string
- The description of the security group rule.
- Direction string
- The direction of the traffic which the rule should match. Some of the possible values are: Possible values are:
ingress,egress. - Ether
Type string - The ethertype which the rule should match.
- Icmp
Parameters GetSecurity Group Rule Icmp Parameters - ICMP Parameters.
- Id string
- Ip
Range string - The remote IP range which the rule should match.
- Port
Range GetSecurity Group Rule Port Range - The range of ports.
- Project
Id string - STACKIT project ID to which the security group rule is associated.
- Protocol
Get
Security Group Rule Protocol - The internet protocol which the rule should match.
- Remote
Security stringGroup Id - The remote security group which the rule should match.
- Security
Group stringId - The security group ID.
- Security
Group stringRule Id - The security group rule ID.
- Region string
- The resource region. If not defined, the provider region is used.
- Description string
- The description of the security group rule.
- Direction string
- The direction of the traffic which the rule should match. Some of the possible values are: Possible values are:
ingress,egress. - Ether
Type string - The ethertype which the rule should match.
- Icmp
Parameters GetSecurity Group Rule Icmp Parameters - ICMP Parameters.
- Id string
- Ip
Range string - The remote IP range which the rule should match.
- Port
Range GetSecurity Group Rule Port Range - The range of ports.
- Project
Id string - STACKIT project ID to which the security group rule is associated.
- Protocol
Get
Security Group Rule Protocol - The internet protocol which the rule should match.
- Remote
Security stringGroup Id - The remote security group which the rule should match.
- Security
Group stringId - The security group ID.
- Security
Group stringRule Id - The security group rule ID.
- Region string
- The resource region. If not defined, the provider region is used.
- description String
- The description of the security group rule.
- direction String
- The direction of the traffic which the rule should match. Some of the possible values are: Possible values are:
ingress,egress. - ether
Type String - The ethertype which the rule should match.
- icmp
Parameters GetSecurity Group Rule Icmp Parameters - ICMP Parameters.
- id String
- ip
Range String - The remote IP range which the rule should match.
- port
Range GetSecurity Group Rule Port Range - The range of ports.
- project
Id String - STACKIT project ID to which the security group rule is associated.
- protocol
Get
Security Group Rule Protocol - The internet protocol which the rule should match.
- remote
Security StringGroup Id - The remote security group which the rule should match.
- security
Group StringId - The security group ID.
- security
Group StringRule Id - The security group rule ID.
- region String
- The resource region. If not defined, the provider region is used.
- description string
- The description of the security group rule.
- direction string
- The direction of the traffic which the rule should match. Some of the possible values are: Possible values are:
ingress,egress. - ether
Type string - The ethertype which the rule should match.
- icmp
Parameters GetSecurity Group Rule Icmp Parameters - ICMP Parameters.
- id string
- ip
Range string - The remote IP range which the rule should match.
- port
Range GetSecurity Group Rule Port Range - The range of ports.
- project
Id string - STACKIT project ID to which the security group rule is associated.
- protocol
Get
Security Group Rule Protocol - The internet protocol which the rule should match.
- remote
Security stringGroup Id - The remote security group which the rule should match.
- security
Group stringId - The security group ID.
- security
Group stringRule Id - The security group rule ID.
- region string
- The resource region. If not defined, the provider region is used.
- description str
- The description of the security group rule.
- direction str
- The direction of the traffic which the rule should match. Some of the possible values are: Possible values are:
ingress,egress. - ether_
type str - The ethertype which the rule should match.
- icmp_
parameters GetSecurity Group Rule Icmp Parameters - ICMP Parameters.
- id str
- ip_
range str - The remote IP range which the rule should match.
- port_
range GetSecurity Group Rule Port Range - The range of ports.
- project_
id str - STACKIT project ID to which the security group rule is associated.
- protocol
Get
Security Group Rule Protocol - The internet protocol which the rule should match.
- remote_
security_ strgroup_ id - The remote security group which the rule should match.
- security_
group_ strid - The security group ID.
- security_
group_ strrule_ id - The security group rule ID.
- region str
- The resource region. If not defined, the provider region is used.
- description String
- The description of the security group rule.
- direction String
- The direction of the traffic which the rule should match. Some of the possible values are: Possible values are:
ingress,egress. - ether
Type String - The ethertype which the rule should match.
- icmp
Parameters Property Map - ICMP Parameters.
- id String
- ip
Range String - The remote IP range which the rule should match.
- port
Range Property Map - The range of ports.
- project
Id String - STACKIT project ID to which the security group rule is associated.
- protocol Property Map
- The internet protocol which the rule should match.
- remote
Security StringGroup Id - The remote security group which the rule should match.
- security
Group StringId - The security group ID.
- security
Group StringRule Id - The security group rule ID.
- region String
- The resource region. If not defined, the provider region is used.
Supporting Types
GetSecurityGroupRuleIcmpParameters
GetSecurityGroupRulePortRange
GetSecurityGroupRuleProtocol
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
