1. Packages
  2. Alicloud Provider
  3. API Docs
  4. quickbi
  5. getUsers
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.quickbi.getUsers

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    This data source provides the Quick BI Users of the current Alibaba Cloud user.

    NOTE: Available in v1.136.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.quickbi.getUsers({
        ids: ["example_id"],
    });
    export const quickBiUserId1 = ids.then(ids => ids.users?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.quickbi.get_users(ids=["example_id"])
    pulumi.export("quickBiUserId1", ids.users[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/quickbi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := quickbi.GetUsers(ctx, &quickbi.GetUsersArgs{
    			Ids: []string{
    				"example_id",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("quickBiUserId1", ids.Users[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.QuickBI.GetUsers.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["quickBiUserId1"] = ids.Apply(getUsersResult => getUsersResult.Users[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.quickbi.QuickbiFunctions;
    import com.pulumi.alicloud.quickbi.inputs.GetUsersArgs;
    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 ids = QuickbiFunctions.getUsers(GetUsersArgs.builder()
                .ids("example_id")
                .build());
    
            ctx.export("quickBiUserId1", ids.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:quickbi:getUsers
          Arguments:
            ids:
              - example_id
    outputs:
      quickBiUserId1: ${ids.users[0].id}
    

    Using getUsers

    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 getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>
    function getUsersOutput(args: GetUsersOutputArgs, opts?: InvokeOptions): Output<GetUsersResult>
    def get_users(enable_details: Optional[bool] = None,
                  ids: Optional[Sequence[str]] = None,
                  keyword: Optional[str] = None,
                  output_file: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetUsersResult
    def get_users_output(enable_details: Optional[pulumi.Input[bool]] = None,
                  ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  keyword: Optional[pulumi.Input[str]] = None,
                  output_file: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetUsersResult]
    func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)
    func GetUsersOutput(ctx *Context, args *GetUsersOutputArgs, opts ...InvokeOption) GetUsersResultOutput

    > Note: This function is named GetUsers in the Go SDK.

    public static class GetUsers 
    {
        public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
        public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:quickbi/getUsers:getUsers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids List<string>
    A list of User IDs.
    Keyword string
    The keywords of the nicknames or usernames of the members of the organization.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids []string
    A list of User IDs.
    Keyword string
    The keywords of the nicknames or usernames of the members of the organization.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of User IDs.
    keyword String
    The keywords of the nicknames or usernames of the members of the organization.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    enableDetails boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids string[]
    A list of User IDs.
    keyword string
    The keywords of the nicknames or usernames of the members of the organization.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    enable_details bool
    Default to false. Set it to true can output more details about resource attributes.
    ids Sequence[str]
    A list of User IDs.
    keyword str
    The keywords of the nicknames or usernames of the members of the organization.
    output_file str
    File name where to save data source results (after running pulumi preview).
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of User IDs.
    keyword String
    The keywords of the nicknames or usernames of the members of the organization.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getUsers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Users List<Pulumi.AliCloud.QuickBI.Outputs.GetUsersUser>
    EnableDetails bool
    Keyword string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Users []GetUsersUser
    EnableDetails bool
    Keyword string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    users List<GetUsersUser>
    enableDetails Boolean
    keyword String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    users GetUsersUser[]
    enableDetails boolean
    keyword string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    users Sequence[GetUsersUser]
    enable_details bool
    keyword str
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    users List<Property Map>
    enableDetails Boolean
    keyword String
    outputFile String

    Supporting Types

    GetUsersUser

    AccountId string
    Alibaba Cloud account ID.
    AccountName string
    An Alibaba Cloud account, Alibaba Cloud name.
    AdminUser bool
    Whether it is the administrator. Valid values: true and false.
    AuthAdminUser bool
    Whether this is a permissions administrator. Valid values: true and false.
    Email string
    The email of the user.
    Id string
    The ID of the User.
    NickName string
    The nickname of the user.
    Phone string
    The phone number of the user.
    UserId string
    The ID of the User.
    UserType string
    The members of the organization of the type of role separately. Valid values: Analyst, Developer and Visitor.
    AccountId string
    Alibaba Cloud account ID.
    AccountName string
    An Alibaba Cloud account, Alibaba Cloud name.
    AdminUser bool
    Whether it is the administrator. Valid values: true and false.
    AuthAdminUser bool
    Whether this is a permissions administrator. Valid values: true and false.
    Email string
    The email of the user.
    Id string
    The ID of the User.
    NickName string
    The nickname of the user.
    Phone string
    The phone number of the user.
    UserId string
    The ID of the User.
    UserType string
    The members of the organization of the type of role separately. Valid values: Analyst, Developer and Visitor.
    accountId String
    Alibaba Cloud account ID.
    accountName String
    An Alibaba Cloud account, Alibaba Cloud name.
    adminUser Boolean
    Whether it is the administrator. Valid values: true and false.
    authAdminUser Boolean
    Whether this is a permissions administrator. Valid values: true and false.
    email String
    The email of the user.
    id String
    The ID of the User.
    nickName String
    The nickname of the user.
    phone String
    The phone number of the user.
    userId String
    The ID of the User.
    userType String
    The members of the organization of the type of role separately. Valid values: Analyst, Developer and Visitor.
    accountId string
    Alibaba Cloud account ID.
    accountName string
    An Alibaba Cloud account, Alibaba Cloud name.
    adminUser boolean
    Whether it is the administrator. Valid values: true and false.
    authAdminUser boolean
    Whether this is a permissions administrator. Valid values: true and false.
    email string
    The email of the user.
    id string
    The ID of the User.
    nickName string
    The nickname of the user.
    phone string
    The phone number of the user.
    userId string
    The ID of the User.
    userType string
    The members of the organization of the type of role separately. Valid values: Analyst, Developer and Visitor.
    account_id str
    Alibaba Cloud account ID.
    account_name str
    An Alibaba Cloud account, Alibaba Cloud name.
    admin_user bool
    Whether it is the administrator. Valid values: true and false.
    auth_admin_user bool
    Whether this is a permissions administrator. Valid values: true and false.
    email str
    The email of the user.
    id str
    The ID of the User.
    nick_name str
    The nickname of the user.
    phone str
    The phone number of the user.
    user_id str
    The ID of the User.
    user_type str
    The members of the organization of the type of role separately. Valid values: Analyst, Developer and Visitor.
    accountId String
    Alibaba Cloud account ID.
    accountName String
    An Alibaba Cloud account, Alibaba Cloud name.
    adminUser Boolean
    Whether it is the administrator. Valid values: true and false.
    authAdminUser Boolean
    Whether this is a permissions administrator. Valid values: true and false.
    email String
    The email of the user.
    id String
    The ID of the User.
    nickName String
    The nickname of the user.
    phone String
    The phone number of the user.
    userId String
    The ID of the User.
    userType String
    The members of the organization of the type of role separately. Valid values: Analyst, Developer and Visitor.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi