The gitlab.getGroupServiceAccountAccessTokens data source allows to retrieve all access tokens for a group service account.
Note: The data source returns the token metadata only. The token value is not available.
Permissions: You must have administrator access or be an Owner of the group to list the tokens of a service account.
Upstream API: GitLab REST API docs
Using getGroupServiceAccountAccessTokens
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 getGroupServiceAccountAccessTokens(args: GetGroupServiceAccountAccessTokensArgs, opts?: InvokeOptions): Promise<GetGroupServiceAccountAccessTokensResult>
function getGroupServiceAccountAccessTokensOutput(args: GetGroupServiceAccountAccessTokensOutputArgs, opts?: InvokeOptions): Output<GetGroupServiceAccountAccessTokensResult>def get_group_service_account_access_tokens(group: Optional[str] = None,
service_account_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupServiceAccountAccessTokensResult
def get_group_service_account_access_tokens_output(group: Optional[pulumi.Input[str]] = None,
service_account_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupServiceAccountAccessTokensResult]func GetGroupServiceAccountAccessTokens(ctx *Context, args *GetGroupServiceAccountAccessTokensArgs, opts ...InvokeOption) (*GetGroupServiceAccountAccessTokensResult, error)
func GetGroupServiceAccountAccessTokensOutput(ctx *Context, args *GetGroupServiceAccountAccessTokensOutputArgs, opts ...InvokeOption) GetGroupServiceAccountAccessTokensResultOutput> Note: This function is named GetGroupServiceAccountAccessTokens in the Go SDK.
public static class GetGroupServiceAccountAccessTokens
{
public static Task<GetGroupServiceAccountAccessTokensResult> InvokeAsync(GetGroupServiceAccountAccessTokensArgs args, InvokeOptions? opts = null)
public static Output<GetGroupServiceAccountAccessTokensResult> Invoke(GetGroupServiceAccountAccessTokensInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGroupServiceAccountAccessTokensResult> getGroupServiceAccountAccessTokens(GetGroupServiceAccountAccessTokensArgs args, InvokeOptions options)
public static Output<GetGroupServiceAccountAccessTokensResult> getGroupServiceAccountAccessTokens(GetGroupServiceAccountAccessTokensArgs args, InvokeOptions options)
fn::invoke:
function: gitlab:index/getGroupServiceAccountAccessTokens:getGroupServiceAccountAccessTokens
arguments:
# arguments dictionaryThe following arguments are supported:
- Group string
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- Service
Account intId - The ID of the service account user.
- Group string
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- Service
Account intId - The ID of the service account user.
- group String
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- service
Account IntegerId - The ID of the service account user.
- group string
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- service
Account numberId - The ID of the service account user.
- group str
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- service_
account_ intid - The ID of the service account user.
- group String
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- service
Account NumberId - The ID of the service account user.
getGroupServiceAccountAccessTokens Result
The following output properties are available:
- Access
Tokens List<Pulumi.Git Lab. Outputs. Get Group Service Account Access Tokens Access Token> - The list of access tokens for the service account.
- Group string
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- Id string
- Service
Account intId - The ID of the service account user.
- Access
Tokens []GetGroup Service Account Access Tokens Access Token - The list of access tokens for the service account.
- Group string
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- Id string
- Service
Account intId - The ID of the service account user.
- access
Tokens List<GetGroup Service Account Access Tokens Access Token> - The list of access tokens for the service account.
- group String
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- id String
- service
Account IntegerId - The ID of the service account user.
- access
Tokens GetGroup Service Account Access Tokens Access Token[] - The list of access tokens for the service account.
- group string
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- id string
- service
Account numberId - The ID of the service account user.
- access_
tokens Sequence[GetGroup Service Account Access Tokens Access Token] - The list of access tokens for the service account.
- group str
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- id str
- service_
account_ intid - The ID of the service account user.
- access
Tokens List<Property Map> - The list of access tokens for the service account.
- group String
- The ID or URL-encoded path of the group containing the service account. Must be a top level group.
- id String
- service
Account NumberId - The ID of the service account user.
Supporting Types
GetGroupServiceAccountAccessTokensAccessToken
- active bool
- created_
at str - expires_
at str - id str
- name str
- revoked bool
- scopes Sequence[str]
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.
