1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getUserInfo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getUserInfo

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query user appid, uin and ownerUin.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = tencentcloud.getUserInfo({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.get_user_info()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetUserInfo(ctx, &tencentcloud.GetUserInfoArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Tencentcloud.GetUserInfo.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetUserInfoArgs;
    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 foo = TencentcloudFunctions.getUserInfo();
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          function: tencentcloud:getUserInfo
          arguments: {}
    

    Using getUserInfo

    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 getUserInfo(args: GetUserInfoArgs, opts?: InvokeOptions): Promise<GetUserInfoResult>
    function getUserInfoOutput(args: GetUserInfoOutputArgs, opts?: InvokeOptions): Output<GetUserInfoResult>
    def get_user_info(id: Optional[str] = None,
                      result_output_file: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetUserInfoResult
    def get_user_info_output(id: Optional[pulumi.Input[str]] = None,
                      result_output_file: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetUserInfoResult]
    func GetUserInfo(ctx *Context, args *GetUserInfoArgs, opts ...InvokeOption) (*GetUserInfoResult, error)
    func GetUserInfoOutput(ctx *Context, args *GetUserInfoOutputArgs, opts ...InvokeOption) GetUserInfoResultOutput

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

    public static class GetUserInfo 
    {
        public static Task<GetUserInfoResult> InvokeAsync(GetUserInfoArgs args, InvokeOptions? opts = null)
        public static Output<GetUserInfoResult> Invoke(GetUserInfoInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUserInfoResult> getUserInfo(GetUserInfoArgs args, InvokeOptions options)
    public static Output<GetUserInfoResult> getUserInfo(GetUserInfoArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getUserInfo:getUserInfo
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ResultOutputFile string
    Used for save results.
    Id string
    ResultOutputFile string
    Used for save results.
    id String
    resultOutputFile String
    Used for save results.
    id string
    resultOutputFile string
    Used for save results.
    id str
    result_output_file str
    Used for save results.
    id String
    resultOutputFile String
    Used for save results.

    getUserInfo Result

    The following output properties are available:

    AppId string
    Current account App ID.
    Id string
    Name string
    Current account Name. NOTE: only support subaccount.
    OwnerUin string
    Current account OwnerUIN.
    Uin string
    Current account UIN.
    ResultOutputFile string
    AppId string
    Current account App ID.
    Id string
    Name string
    Current account Name. NOTE: only support subaccount.
    OwnerUin string
    Current account OwnerUIN.
    Uin string
    Current account UIN.
    ResultOutputFile string
    appId String
    Current account App ID.
    id String
    name String
    Current account Name. NOTE: only support subaccount.
    ownerUin String
    Current account OwnerUIN.
    uin String
    Current account UIN.
    resultOutputFile String
    appId string
    Current account App ID.
    id string
    name string
    Current account Name. NOTE: only support subaccount.
    ownerUin string
    Current account OwnerUIN.
    uin string
    Current account UIN.
    resultOutputFile string
    app_id str
    Current account App ID.
    id str
    name str
    Current account Name. NOTE: only support subaccount.
    owner_uin str
    Current account OwnerUIN.
    uin str
    Current account UIN.
    result_output_file str
    appId String
    Current account App ID.
    id String
    name String
    Current account Name. NOTE: only support subaccount.
    ownerUin String
    Current account OwnerUIN.
    uin String
    Current account UIN.
    resultOutputFile String

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack