stackit v0.0.4 published on Friday, Feb 20, 2026 by stackitcloud
stackit v0.0.4 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" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
security_group_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
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_security_group(project_id: Optional[str] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityGroupResult
def get_security_group_output(project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
security_group_id: 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: stackit:index/getSecurityGroup:getSecurityGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Project
Id string - STACKIT project ID to which the security group is associated.
- Security
Group stringId - The security group 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 is associated.
- Security
Group stringId - The security group 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 is associated.
- security
Group StringId - The security group 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 is associated.
- security
Group stringId - The security group 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 is associated.
- security_
group_ strid - The security group 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 is associated.
- security
Group StringId - The security group ID.
- region String
- The resource region. If not defined, the provider region is used.
getSecurityGroup Result
The following output properties are available:
- Description string
- The description of the security group.
- Id string
- Labels Dictionary<string, string>
- Labels are key-value string pairs which can be attached to a resource container
- Name string
- The name of the security group.
- Project
Id string - STACKIT project ID to which the security group is associated.
- Security
Group stringId - The security group ID.
- Stateful bool
- Configures if a security group is stateful or stateless. There can only be one type of security groups per network interface/server.
- Region string
- The resource region. If not defined, the provider region is used.
- Description string
- The description of the security group.
- Id string
- Labels map[string]string
- Labels are key-value string pairs which can be attached to a resource container
- Name string
- The name of the security group.
- Project
Id string - STACKIT project ID to which the security group is associated.
- Security
Group stringId - The security group ID.
- Stateful bool
- Configures if a security group is stateful or stateless. There can only be one type of security groups per network interface/server.
- Region string
- The resource region. If not defined, the provider region is used.
- description String
- The description of the security group.
- id String
- labels Map<String,String>
- Labels are key-value string pairs which can be attached to a resource container
- name String
- The name of the security group.
- project
Id String - STACKIT project ID to which the security group is associated.
- security
Group StringId - The security group ID.
- stateful Boolean
- Configures if a security group is stateful or stateless. There can only be one type of security groups per network interface/server.
- region String
- The resource region. If not defined, the provider region is used.
- description string
- The description of the security group.
- id string
- labels {[key: string]: string}
- Labels are key-value string pairs which can be attached to a resource container
- name string
- The name of the security group.
- project
Id string - STACKIT project ID to which the security group is associated.
- security
Group stringId - The security group ID.
- stateful boolean
- Configures if a security group is stateful or stateless. There can only be one type of security groups per network interface/server.
- region string
- The resource region. If not defined, the provider region is used.
- description str
- The description of the security group.
- id str
- labels Mapping[str, str]
- Labels are key-value string pairs which can be attached to a resource container
- name str
- The name of the security group.
- project_
id str - STACKIT project ID to which the security group is associated.
- security_
group_ strid - The security group ID.
- stateful bool
- Configures if a security group is stateful or stateless. There can only be one type of security groups per network interface/server.
- region str
- The resource region. If not defined, the provider region is used.
- description String
- The description of the security group.
- id String
- labels Map<String>
- Labels are key-value string pairs which can be attached to a resource container
- name String
- The name of the security group.
- project
Id String - STACKIT project ID to which the security group is associated.
- security
Group StringId - The security group ID.
- stateful Boolean
- Configures if a security group is stateful or stateless. There can only be one type of security groups per network interface/server.
- region String
- The resource region. If not defined, the provider region is used.
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
stackit v0.0.4 published on Friday, Feb 20, 2026 by stackitcloud
