1. Packages
  2. Sonarqube Provider
  3. API Docs
  4. getUserTokens
sonarqube 0.16.15 published on Sunday, May 18, 2025 by jdamata

sonarqube.getUserTokens

Explore with Pulumi AI

sonarqube logo
sonarqube 0.16.15 published on Sunday, May 18, 2025 by jdamata

    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.
    IgnoreMissing bool
    If set to true, the data source will not fail if the user does not exist.
    LoginName 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.
    IgnoreMissing bool
    If set to true, the data source will not fail if the user does not exist.
    LoginName 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.
    ignoreMissing Boolean
    If set to true, the data source will not fail if the user does not exist.
    loginName 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.
    ignoreMissing boolean
    If set to true, the data source will not fail if the user does not exist.
    loginName 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.
    ignoreMissing Boolean
    If set to true, the data source will not fail if the user does not exist.
    loginName 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.
    UserTokens List<GetUserTokensUserToken>
    The list of user tokens.
    IgnoreMissing bool
    If set to true, the data source will not fail if the user does not exist.
    LoginName 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.
    UserTokens []GetUserTokensUserToken
    The list of user tokens.
    IgnoreMissing bool
    If set to true, the data source will not fail if the user does not exist.
    LoginName 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.
    userTokens List<GetUserTokensUserToken>
    The list of user tokens.
    ignoreMissing Boolean
    If set to true, the data source will not fail if the user does not exist.
    loginName 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.
    userTokens GetUserTokensUserToken[]
    The list of user tokens.
    ignoreMissing boolean
    If set to true, the data source will not fail if the user does not exist.
    loginName 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[GetUserTokensUserToken]
    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.
    userTokens List<Property Map>
    The list of user tokens.
    ignoreMissing Boolean
    If set to true, the data source will not fail if the user does not exist.
    loginName 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

    CreatedAt string
    ExpirationDate string
    Id string
    Name string
    ProjectKey string
    Type string
    CreatedAt string
    ExpirationDate string
    Id string
    Name string
    ProjectKey string
    Type string
    createdAt String
    expirationDate String
    id String
    name String
    projectKey String
    type String
    createdAt string
    expirationDate string
    id string
    name string
    projectKey string
    type string
    createdAt String
    expirationDate String
    id String
    name String
    projectKey String
    type String

    Package Details

    Repository
    sonarqube jdamata/terraform-provider-sonarqube
    License
    Notes
    This Pulumi package is based on the sonarqube Terraform Provider.
    sonarqube logo
    sonarqube 0.16.15 published on Sunday, May 18, 2025 by jdamata