sonarqube 0.16.15 published on Sunday, May 18, 2025 by jdamata
sonarqube.getUserTokens
Explore with Pulumi AI
Use this data source to get Sonarqube user token resources
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sonarqube.SonarqubeFunctions;
import com.pulumi.sonarqube.inputs.GetUserTokensArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var userTokensAdmin = SonarqubeFunctions.getUserTokens(GetUserTokensArgs.builder()
.login("admin")
.build());
}
}
variables:
userTokensAdmin:
fn::invoke:
function: sonarqube:getUserTokens
arguments:
login: admin
Using getUserTokens
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 getUserTokens(args: GetUserTokensArgs, opts?: InvokeOptions): Promise<GetUserTokensResult>
function getUserTokensOutput(args: GetUserTokensOutputArgs, opts?: InvokeOptions): Output<GetUserTokensResult>
def get_user_tokens(id: Optional[str] = None,
ignore_missing: Optional[bool] = None,
login_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserTokensResult
def get_user_tokens_output(id: Optional[pulumi.Input[str]] = None,
ignore_missing: Optional[pulumi.Input[bool]] = None,
login_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserTokensResult]
func GetUserTokens(ctx *Context, args *GetUserTokensArgs, opts ...InvokeOption) (*GetUserTokensResult, error)
func GetUserTokensOutput(ctx *Context, args *GetUserTokensOutputArgs, opts ...InvokeOption) GetUserTokensResultOutput
> Note: This function is named GetUserTokens
in the Go SDK.
public static class GetUserTokens
{
public static Task<GetUserTokensResult> InvokeAsync(GetUserTokensArgs args, InvokeOptions? opts = null)
public static Output<GetUserTokensResult> Invoke(GetUserTokensInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserTokensResult> getUserTokens(GetUserTokensArgs args, InvokeOptions options)
public static Output<GetUserTokensResult> getUserTokens(GetUserTokensArgs args, InvokeOptions options)
fn::invoke:
function: sonarqube:index/getUserTokens:getUserTokens
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of this resource.
- Ignore
Missing bool - If set to true, the data source will not fail if the user does not exist.
- Login
Name string - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
- Id string
- The ID of this resource.
- Ignore
Missing bool - If set to true, the data source will not fail if the user does not exist.
- Login
Name string - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
- id String
- The ID of this resource.
- ignore
Missing Boolean - If set to true, the data source will not fail if the user does not exist.
- login
Name String - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
- id string
- The ID of this resource.
- ignore
Missing boolean - If set to true, the data source will not fail if the user does not exist.
- login
Name string - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
- id str
- The ID of this resource.
- ignore_
missing bool - If set to true, the data source will not fail if the user does not exist.
- login_
name str - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
- id String
- The ID of this resource.
- ignore
Missing Boolean - If set to true, the data source will not fail if the user does not exist.
- login
Name String - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
getUserTokens Result
The following output properties are available:
- Id string
- The ID of this resource.
- User
Tokens List<GetUser Tokens User Token> - The list of user tokens.
- Ignore
Missing bool - If set to true, the data source will not fail if the user does not exist.
- Login
Name string - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
- Id string
- The ID of this resource.
- User
Tokens []GetUser Tokens User Token - The list of user tokens.
- Ignore
Missing bool - If set to true, the data source will not fail if the user does not exist.
- Login
Name string - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
- id String
- The ID of this resource.
- user
Tokens List<GetUser Tokens User Token> - The list of user tokens.
- ignore
Missing Boolean - If set to true, the data source will not fail if the user does not exist.
- login
Name String - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
- id string
- The ID of this resource.
- user
Tokens GetUser Tokens User Token[] - The list of user tokens.
- ignore
Missing boolean - If set to true, the data source will not fail if the user does not exist.
- login
Name string - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
- id str
- The ID of this resource.
- user_
tokens Sequence[GetUser Tokens User Token] - The list of user tokens.
- ignore_
missing bool - If set to true, the data source will not fail if the user does not exist.
- login_
name str - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
- id String
- The ID of this resource.
- user
Tokens List<Property Map> - The list of user tokens.
- ignore
Missing Boolean - If set to true, the data source will not fail if the user does not exist.
- login
Name String - Search user tokens for the specified login name. Otherwise, tokens for the current user are listed. This login must exist and be active.
Supporting Types
GetUserTokensUserToken
- Created
At string - Expiration
Date string - Id string
- Name string
- Project
Key string - Type string
- Created
At string - Expiration
Date string - Id string
- Name string
- Project
Key string - Type string
- created
At String - expiration
Date String - id String
- name String
- project
Key String - type String
- created
At string - expiration
Date string - id string
- name string
- project
Key string - type string
- created_
at str - expiration_
date str - id str
- name str
- project_
key str - type str
- created
At String - expiration
Date String - id String
- name String
- project
Key String - type String
Package Details
- Repository
- sonarqube jdamata/terraform-provider-sonarqube
- License
- Notes
- This Pulumi package is based on the
sonarqube
Terraform Provider.