1. Packages
  2. stackit
  3. API Docs
  4. getServiceAccount
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    Service account data source schema.

    Example Usage

    data "stackit_service_account" "sa" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      email      = "sa01-8565oq1@sa.stackit.cloud"
    }
    

    Using getServiceAccount

    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 getServiceAccount(args: GetServiceAccountArgs, opts?: InvokeOptions): Promise<GetServiceAccountResult>
    function getServiceAccountOutput(args: GetServiceAccountOutputArgs, opts?: InvokeOptions): Output<GetServiceAccountResult>
    def get_service_account(email: Optional[str] = None,
                            project_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetServiceAccountResult
    def get_service_account_output(email: Optional[pulumi.Input[str]] = None,
                            project_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetServiceAccountResult]
    func LookupServiceAccount(ctx *Context, args *LookupServiceAccountArgs, opts ...InvokeOption) (*LookupServiceAccountResult, error)
    func LookupServiceAccountOutput(ctx *Context, args *LookupServiceAccountOutputArgs, opts ...InvokeOption) LookupServiceAccountResultOutput

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

    public static class GetServiceAccount 
    {
        public static Task<GetServiceAccountResult> InvokeAsync(GetServiceAccountArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceAccountResult> Invoke(GetServiceAccountInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceAccountResult> getServiceAccount(GetServiceAccountArgs args, InvokeOptions options)
    public static Output<GetServiceAccountResult> getServiceAccount(GetServiceAccountArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getServiceAccount:getServiceAccount
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Email string
    Email of the service account.
    ProjectId string
    STACKIT project ID to which the service account is associated.
    Email string
    Email of the service account.
    ProjectId string
    STACKIT project ID to which the service account is associated.
    email String
    Email of the service account.
    projectId String
    STACKIT project ID to which the service account is associated.
    email string
    Email of the service account.
    projectId string
    STACKIT project ID to which the service account is associated.
    email str
    Email of the service account.
    project_id str
    STACKIT project ID to which the service account is associated.
    email String
    Email of the service account.
    projectId String
    STACKIT project ID to which the service account is associated.

    getServiceAccount Result

    The following output properties are available:

    Email string
    Email of the service account.
    Id string
    Name string
    Name of the service account.
    ProjectId string
    STACKIT project ID to which the service account is associated.
    Email string
    Email of the service account.
    Id string
    Name string
    Name of the service account.
    ProjectId string
    STACKIT project ID to which the service account is associated.
    email String
    Email of the service account.
    id String
    name String
    Name of the service account.
    projectId String
    STACKIT project ID to which the service account is associated.
    email string
    Email of the service account.
    id string
    name string
    Name of the service account.
    projectId string
    STACKIT project ID to which the service account is associated.
    email str
    Email of the service account.
    id str
    name str
    Name of the service account.
    project_id str
    STACKIT project ID to which the service account is associated.
    email String
    Email of the service account.
    id String
    name String
    Name of the service account.
    projectId String
    STACKIT project ID to which the service account is associated.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.