GitLab v9.2.0 published on Friday, Jul 18, 2025 by Pulumi
gitlab.getProjectAccessTokens
Explore with Pulumi AI
The gitlab.getProjectAccessTokens
data source allows to retrieve all project access tokens for a given project.
Upstream API: GitLab REST API docs
Using getProjectAccessTokens
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 getProjectAccessTokens(args: GetProjectAccessTokensArgs, opts?: InvokeOptions): Promise<GetProjectAccessTokensResult>
function getProjectAccessTokensOutput(args: GetProjectAccessTokensOutputArgs, opts?: InvokeOptions): Output<GetProjectAccessTokensResult>
def get_project_access_tokens(project: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectAccessTokensResult
def get_project_access_tokens_output(project: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectAccessTokensResult]
func GetProjectAccessTokens(ctx *Context, args *GetProjectAccessTokensArgs, opts ...InvokeOption) (*GetProjectAccessTokensResult, error)
func GetProjectAccessTokensOutput(ctx *Context, args *GetProjectAccessTokensOutputArgs, opts ...InvokeOption) GetProjectAccessTokensResultOutput
> Note: This function is named GetProjectAccessTokens
in the Go SDK.
public static class GetProjectAccessTokens
{
public static Task<GetProjectAccessTokensResult> InvokeAsync(GetProjectAccessTokensArgs args, InvokeOptions? opts = null)
public static Output<GetProjectAccessTokensResult> Invoke(GetProjectAccessTokensInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectAccessTokensResult> getProjectAccessTokens(GetProjectAccessTokensArgs args, InvokeOptions options)
public static Output<GetProjectAccessTokensResult> getProjectAccessTokens(GetProjectAccessTokensArgs args, InvokeOptions options)
fn::invoke:
function: gitlab:index/getProjectAccessTokens:getProjectAccessTokens
arguments:
# arguments dictionary
The following arguments are supported:
getProjectAccessTokens Result
The following output properties are available:
- Access
Tokens List<Pulumi.Git Lab. Outputs. Get Project Access Tokens Access Token> - The list of access tokens returned by the search
- Id string
- Project string
- The name or id of the project.
- State string
- List all project access token that match the specified state. Valid values are
active
,inactive
. Returns all project access token if not set.
- Access
Tokens []GetProject Access Tokens Access Token - The list of access tokens returned by the search
- Id string
- Project string
- The name or id of the project.
- State string
- List all project access token that match the specified state. Valid values are
active
,inactive
. Returns all project access token if not set.
- access
Tokens List<GetProject Access Tokens Access Token> - The list of access tokens returned by the search
- id String
- project String
- The name or id of the project.
- state String
- List all project access token that match the specified state. Valid values are
active
,inactive
. Returns all project access token if not set.
- access
Tokens GetProject Access Tokens Access Token[] - The list of access tokens returned by the search
- id string
- project string
- The name or id of the project.
- state string
- List all project access token that match the specified state. Valid values are
active
,inactive
. Returns all project access token if not set.
- access_
tokens Sequence[GetProject Access Tokens Access Token] - The list of access tokens returned by the search
- id str
- project str
- The name or id of the project.
- state str
- List all project access token that match the specified state. Valid values are
active
,inactive
. Returns all project access token if not set.
- access
Tokens List<Property Map> - The list of access tokens returned by the search
- id String
- project String
- The name or id of the project.
- state String
- List all project access token that match the specified state. Valid values are
active
,inactive
. Returns all project access token if not set.
Supporting Types
GetProjectAccessTokensAccessToken
- Access
Level string - Active bool
- Created
At string - Description string
- Expires
At string - Id string
- Last
Used stringAt - Name string
- Project string
- Revoked bool
- Scopes List<string>
- User
Id int
- Access
Level string - Active bool
- Created
At string - Description string
- Expires
At string - Id string
- Last
Used stringAt - Name string
- Project string
- Revoked bool
- Scopes []string
- User
Id int
- access
Level String - active Boolean
- created
At String - description String
- expires
At String - id String
- last
Used StringAt - name String
- project String
- revoked Boolean
- scopes List<String>
- user
Id Integer
- access
Level string - active boolean
- created
At string - description string
- expires
At string - id string
- last
Used stringAt - name string
- project string
- revoked boolean
- scopes string[]
- user
Id number
- access_
level str - active bool
- created_
at str - description str
- expires_
at str - id str
- last_
used_ strat - name str
- project str
- revoked bool
- scopes Sequence[str]
- user_
id int
- access
Level String - active Boolean
- created
At String - description String
- expires
At String - id String
- last
Used StringAt - name String
- project String
- revoked Boolean
- scopes List<String>
- user
Id Number
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlab
Terraform Provider.