Viewing docs for GitLab v10.2.0
published on Wednesday, Aug 26, 2026 by Pulumi
published on Wednesday, Aug 26, 2026 by Pulumi
Viewing docs for GitLab v10.2.0
published on Wednesday, Aug 26, 2026 by Pulumi
published on Wednesday, Aug 26, 2026 by Pulumi
The gitlab.GroupServiceAccount data source retrieves information about a GitLab service account in a group.
Upstream API: GitLab REST API docs
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
variables:
example:
fn::invoke:
function: gitlab:getGroup
arguments:
id: foo/bar/baz
# Basic example
exampleGetGroupServiceAccount:
fn::invoke:
function: gitlab:getGroupServiceAccount
arguments:
serviceAccountId: 1
group: ${example.id}
pulumi {
required_providers {
gitlab = {
source = "pulumi/gitlab"
}
}
}
data "gitlab_getgroup" "example" {
id = "foo/bar/baz"
}
data "gitlab_getgroupserviceaccount" "exampleGetGroupServiceAccount" {
service_account_id = 1
group = data.gitlab_getgroup.example.id
}
# Basic example
Using getGroupServiceAccount
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 getGroupServiceAccount(args: GetGroupServiceAccountArgs, opts?: InvokeOptions): Promise<GetGroupServiceAccountResult>
function getGroupServiceAccountOutput(args: GetGroupServiceAccountOutputArgs, opts?: InvokeOutputOptions): Output<GetGroupServiceAccountResult>def get_group_service_account(group: Optional[str] = None,
service_account_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupServiceAccountResult
def get_group_service_account_output(group: pulumi.Input[Optional[str]] = None,
service_account_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetGroupServiceAccountResult]func LookupGroupServiceAccount(ctx *Context, args *LookupGroupServiceAccountArgs, opts ...InvokeOption) (*LookupGroupServiceAccountResult, error)
func LookupGroupServiceAccountOutput(ctx *Context, args *LookupGroupServiceAccountOutputArgs, opts ...InvokeOption) LookupGroupServiceAccountResultOutput> Note: This function is named LookupGroupServiceAccount in the Go SDK.
public static class GetGroupServiceAccount
{
public static Task<GetGroupServiceAccountResult> InvokeAsync(GetGroupServiceAccountArgs args, InvokeOptions? opts = null)
public static Output<GetGroupServiceAccountResult> Invoke(GetGroupServiceAccountInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetGroupServiceAccountResult> Invoke(GetGroupServiceAccountInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetGroupServiceAccountResult> getGroupServiceAccount(GetGroupServiceAccountArgs args, InvokeOptions options)
public static Output<GetGroupServiceAccountResult> getGroupServiceAccount(GetGroupServiceAccountArgs args, InvokeOptions options)
public static Output<GetGroupServiceAccountResult> getGroupServiceAccount(GetGroupServiceAccountArgs args, InvokeOutputOptions options)
fn::invoke:
function: gitlab:index/getGroupServiceAccount:getGroupServiceAccount
arguments:
# arguments dictionarydata "gitlab_get_group_service_account" "name" {
# arguments
}The following arguments are supported:
- Group string
- The ID or URL-encoded path of the target group. Must be a top-level group.
- Service
Account stringId - The service account id.
- Group string
- The ID or URL-encoded path of the target group. Must be a top-level group.
- Service
Account stringId - The service account id.
- group string
- The ID or URL-encoded path of the target group. Must be a top-level group.
- service_
account_ stringid - The service account id.
- group String
- The ID or URL-encoded path of the target group. Must be a top-level group.
- service
Account StringId - The service account id.
- group string
- The ID or URL-encoded path of the target group. Must be a top-level group.
- service
Account stringId - The service account id.
- group str
- The ID or URL-encoded path of the target group. Must be a top-level group.
- service_
account_ strid - The service account id.
- group String
- The ID or URL-encoded path of the target group. Must be a top-level group.
- service
Account StringId - The service account id.
getGroupServiceAccount Result
The following output properties are available:
- Email string
- The email of the service account user.
- Group string
- The ID or URL-encoded path of the target group. Must be a top-level group.
- Id string
- The ID of this Terraform resource. In the format of
<group>:<service_account_id>. - Name string
- The name of the user. If not specified, the default Service account user name is used.
- Service
Account stringId - The service account id.
- Username string
- The username of the user. If not specified, it's automatically generated.
- Email string
- The email of the service account user.
- Group string
- The ID or URL-encoded path of the target group. Must be a top-level group.
- Id string
- The ID of this Terraform resource. In the format of
<group>:<service_account_id>. - Name string
- The name of the user. If not specified, the default Service account user name is used.
- Service
Account stringId - The service account id.
- Username string
- The username of the user. If not specified, it's automatically generated.
- email string
- The email of the service account user.
- group string
- The ID or URL-encoded path of the target group. Must be a top-level group.
- id string
- The ID of this Terraform resource. In the format of
<group>:<service_account_id>. - name string
- The name of the user. If not specified, the default Service account user name is used.
- service_
account_ stringid - The service account id.
- username string
- The username of the user. If not specified, it's automatically generated.
- email String
- The email of the service account user.
- group String
- The ID or URL-encoded path of the target group. Must be a top-level group.
- id String
- The ID of this Terraform resource. In the format of
<group>:<service_account_id>. - name String
- The name of the user. If not specified, the default Service account user name is used.
- service
Account StringId - The service account id.
- username String
- The username of the user. If not specified, it's automatically generated.
- email string
- The email of the service account user.
- group string
- The ID or URL-encoded path of the target group. Must be a top-level group.
- id string
- The ID of this Terraform resource. In the format of
<group>:<service_account_id>. - name string
- The name of the user. If not specified, the default Service account user name is used.
- service
Account stringId - The service account id.
- username string
- The username of the user. If not specified, it's automatically generated.
- email str
- The email of the service account user.
- group str
- The ID or URL-encoded path of the target group. Must be a top-level group.
- id str
- The ID of this Terraform resource. In the format of
<group>:<service_account_id>. - name str
- The name of the user. If not specified, the default Service account user name is used.
- service_
account_ strid - The service account id.
- username str
- The username of the user. If not specified, it's automatically generated.
- email String
- The email of the service account user.
- group String
- The ID or URL-encoded path of the target group. Must be a top-level group.
- id String
- The ID of this Terraform resource. In the format of
<group>:<service_account_id>. - name String
- The name of the user. If not specified, the default Service account user name is used.
- service
Account StringId - The service account id.
- username String
- The username of the user. If not specified, it's automatically generated.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.
Viewing docs for GitLab v10.2.0
published on Wednesday, Aug 26, 2026 by Pulumi
published on Wednesday, Aug 26, 2026 by Pulumi