1. Packages
  2. Gitlab Provider
  3. API Docs
  4. getGroupServiceAccount
GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi

gitlab.getGroupServiceAccount

Explore with Pulumi AI

GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi

The gitlab.GroupServiceAccount data source retrieves information about a gitlab service account for a group.

Upstream API: GitLab REST API docs

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?: InvokeOptions): Output<GetGroupServiceAccountResult>
Copy
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: Optional[pulumi.Input[str]] = None,
                              service_account_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetGroupServiceAccountResult]
Copy
func LookupGroupServiceAccount(ctx *Context, args *LookupGroupServiceAccountArgs, opts ...InvokeOption) (*LookupGroupServiceAccountResult, error)
func LookupGroupServiceAccountOutput(ctx *Context, args *LookupGroupServiceAccountOutputArgs, opts ...InvokeOption) LookupGroupServiceAccountResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetGroupServiceAccountResult> getGroupServiceAccount(GetGroupServiceAccountArgs args, InvokeOptions options)
public static Output<GetGroupServiceAccountResult> getGroupServiceAccount(GetGroupServiceAccountArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gitlab:index/getGroupServiceAccount:getGroupServiceAccount
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Group This property is required. string
The ID or URL-encoded path of the target group. Must be a top-level group.
ServiceAccountId This property is required. string
The service account id.
Group This property is required. string
The ID or URL-encoded path of the target group. Must be a top-level group.
ServiceAccountId This property is required. string
The service account id.
group This property is required. String
The ID or URL-encoded path of the target group. Must be a top-level group.
serviceAccountId This property is required. String
The service account id.
group This property is required. string
The ID or URL-encoded path of the target group. Must be a top-level group.
serviceAccountId This property is required. string
The service account id.
group This property is required. str
The ID or URL-encoded path of the target group. Must be a top-level group.
service_account_id This property is required. str
The service account id.
group This property is required. String
The ID or URL-encoded path of the target group. Must be a top-level group.
serviceAccountId This property is required. String
The service account id.

getGroupServiceAccount Result

The following output properties are available:

Group string
The ID or URL-encoded path of the target group. Must be a top-level group.
Id string
Name string
The name of the user. If not specified, the default Service account user name is used.
ServiceAccountId string
The service account id.
Username string
The username of the user. If not specified, it's automatically generated.
Group string
The ID or URL-encoded path of the target group. Must be a top-level group.
Id string
Name string
The name of the user. If not specified, the default Service account user name is used.
ServiceAccountId string
The service account id.
Username string
The username of the user. If not specified, it's automatically generated.
group String
The ID or URL-encoded path of the target group. Must be a top-level group.
id String
name String
The name of the user. If not specified, the default Service account user name is used.
serviceAccountId String
The service account id.
username String
The username of the user. If not specified, it's automatically generated.
group string
The ID or URL-encoded path of the target group. Must be a top-level group.
id string
name string
The name of the user. If not specified, the default Service account user name is used.
serviceAccountId string
The service account id.
username string
The username of the user. If not specified, it's automatically generated.
group str
The ID or URL-encoded path of the target group. Must be a top-level group.
id str
name str
The name of the user. If not specified, the default Service account user name is used.
service_account_id str
The service account id.
username str
The username of the user. If not specified, it's automatically generated.
group String
The ID or URL-encoded path of the target group. Must be a top-level group.
id String
name String
The name of the user. If not specified, the default Service account user name is used.
serviceAccountId String
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 gitlab Terraform Provider.
GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi