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

tencentcloud.getCamUsers

Explore with Pulumi AI

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

    Use this data source to query detailed information of CAM users

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = tencentcloud.getCamUsers({
        name: "cam-user-test",
    });
    const bar = tencentcloud.getCamUsers({
        email: "hello@test.com",
    });
    const far = tencentcloud.getCamUsers({
        phoneNum: "12345678910",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.get_cam_users(name="cam-user-test")
    bar = tencentcloud.get_cam_users(email="hello@test.com")
    far = tencentcloud.get_cam_users(phone_num="12345678910")
    
    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.GetCamUsers(ctx, &tencentcloud.GetCamUsersArgs{
    			Name: pulumi.StringRef("cam-user-test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.GetCamUsers(ctx, &tencentcloud.GetCamUsersArgs{
    			Email: pulumi.StringRef("hello@test.com"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.GetCamUsers(ctx, &tencentcloud.GetCamUsersArgs{
    			PhoneNum: pulumi.StringRef("12345678910"),
    		}, 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.GetCamUsers.Invoke(new()
        {
            Name = "cam-user-test",
        });
    
        var bar = Tencentcloud.GetCamUsers.Invoke(new()
        {
            Email = "hello@test.com",
        });
    
        var far = Tencentcloud.GetCamUsers.Invoke(new()
        {
            PhoneNum = "12345678910",
        });
    
    });
    
    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.GetCamUsersArgs;
    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.getCamUsers(GetCamUsersArgs.builder()
                .name("cam-user-test")
                .build());
    
            final var bar = TencentcloudFunctions.getCamUsers(GetCamUsersArgs.builder()
                .email("hello@test.com")
                .build());
    
            final var far = TencentcloudFunctions.getCamUsers(GetCamUsersArgs.builder()
                .phoneNum("12345678910")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          function: tencentcloud:getCamUsers
          arguments:
            name: cam-user-test
      bar:
        fn::invoke:
          function: tencentcloud:getCamUsers
          arguments:
            email: hello@test.com
      far:
        fn::invoke:
          function: tencentcloud:getCamUsers
          arguments:
            phoneNum: '12345678910'
    

    Using getCamUsers

    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 getCamUsers(args: GetCamUsersArgs, opts?: InvokeOptions): Promise<GetCamUsersResult>
    function getCamUsersOutput(args: GetCamUsersOutputArgs, opts?: InvokeOptions): Output<GetCamUsersResult>
    def get_cam_users(console_login: Optional[bool] = None,
                      country_code: Optional[str] = None,
                      email: Optional[str] = None,
                      id: Optional[str] = None,
                      name: Optional[str] = None,
                      phone_num: Optional[str] = None,
                      remark: Optional[str] = None,
                      result_output_file: Optional[str] = None,
                      uid: Optional[float] = None,
                      uin: Optional[float] = None,
                      opts: Optional[InvokeOptions] = None) -> GetCamUsersResult
    def get_cam_users_output(console_login: Optional[pulumi.Input[bool]] = None,
                      country_code: Optional[pulumi.Input[str]] = None,
                      email: Optional[pulumi.Input[str]] = None,
                      id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      phone_num: Optional[pulumi.Input[str]] = None,
                      remark: Optional[pulumi.Input[str]] = None,
                      result_output_file: Optional[pulumi.Input[str]] = None,
                      uid: Optional[pulumi.Input[float]] = None,
                      uin: Optional[pulumi.Input[float]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetCamUsersResult]
    func GetCamUsers(ctx *Context, args *GetCamUsersArgs, opts ...InvokeOption) (*GetCamUsersResult, error)
    func GetCamUsersOutput(ctx *Context, args *GetCamUsersOutputArgs, opts ...InvokeOption) GetCamUsersResultOutput

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

    public static class GetCamUsers 
    {
        public static Task<GetCamUsersResult> InvokeAsync(GetCamUsersArgs args, InvokeOptions? opts = null)
        public static Output<GetCamUsersResult> Invoke(GetCamUsersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCamUsersResult> getCamUsers(GetCamUsersArgs args, InvokeOptions options)
    public static Output<GetCamUsersResult> getCamUsers(GetCamUsersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCamUsers:getCamUsers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConsoleLogin bool
    Indicate whether the user can login in.
    CountryCode string
    Country code of the CAM user to be queried.
    Email string
    Email of the CAM user to be queried.
    Id string
    Name string
    Name of CAM user to be queried.
    PhoneNum string
    Phone num of the CAM user to be queried.
    Remark string
    Remark of the CAM user to be queried.
    ResultOutputFile string
    Used to save results.
    Uid double
    Uid of the CAM user to be queried.
    Uin double
    Uin of the CAM user to be queried.
    ConsoleLogin bool
    Indicate whether the user can login in.
    CountryCode string
    Country code of the CAM user to be queried.
    Email string
    Email of the CAM user to be queried.
    Id string
    Name string
    Name of CAM user to be queried.
    PhoneNum string
    Phone num of the CAM user to be queried.
    Remark string
    Remark of the CAM user to be queried.
    ResultOutputFile string
    Used to save results.
    Uid float64
    Uid of the CAM user to be queried.
    Uin float64
    Uin of the CAM user to be queried.
    consoleLogin Boolean
    Indicate whether the user can login in.
    countryCode String
    Country code of the CAM user to be queried.
    email String
    Email of the CAM user to be queried.
    id String
    name String
    Name of CAM user to be queried.
    phoneNum String
    Phone num of the CAM user to be queried.
    remark String
    Remark of the CAM user to be queried.
    resultOutputFile String
    Used to save results.
    uid Double
    Uid of the CAM user to be queried.
    uin Double
    Uin of the CAM user to be queried.
    consoleLogin boolean
    Indicate whether the user can login in.
    countryCode string
    Country code of the CAM user to be queried.
    email string
    Email of the CAM user to be queried.
    id string
    name string
    Name of CAM user to be queried.
    phoneNum string
    Phone num of the CAM user to be queried.
    remark string
    Remark of the CAM user to be queried.
    resultOutputFile string
    Used to save results.
    uid number
    Uid of the CAM user to be queried.
    uin number
    Uin of the CAM user to be queried.
    console_login bool
    Indicate whether the user can login in.
    country_code str
    Country code of the CAM user to be queried.
    email str
    Email of the CAM user to be queried.
    id str
    name str
    Name of CAM user to be queried.
    phone_num str
    Phone num of the CAM user to be queried.
    remark str
    Remark of the CAM user to be queried.
    result_output_file str
    Used to save results.
    uid float
    Uid of the CAM user to be queried.
    uin float
    Uin of the CAM user to be queried.
    consoleLogin Boolean
    Indicate whether the user can login in.
    countryCode String
    Country code of the CAM user to be queried.
    email String
    Email of the CAM user to be queried.
    id String
    name String
    Name of CAM user to be queried.
    phoneNum String
    Phone num of the CAM user to be queried.
    remark String
    Remark of the CAM user to be queried.
    resultOutputFile String
    Used to save results.
    uid Number
    Uid of the CAM user to be queried.
    uin Number
    Uin of the CAM user to be queried.

    getCamUsers Result

    The following output properties are available:

    Id string
    UserLists List<GetCamUsersUserList>
    A list of CAM users. Each element contains the following attributes:
    ConsoleLogin bool
    CountryCode string
    Country code of the CAM user.
    Email string
    Email of the CAM user.
    Name string
    Name of CAM user.
    PhoneNum string
    Phone num of the CAM user.
    Remark string
    Remark of the CAM user.
    ResultOutputFile string
    Uid double
    Uid of the CAM user.
    Uin double
    Uin of the CAM user.
    Id string
    UserLists []GetCamUsersUserList
    A list of CAM users. Each element contains the following attributes:
    ConsoleLogin bool
    CountryCode string
    Country code of the CAM user.
    Email string
    Email of the CAM user.
    Name string
    Name of CAM user.
    PhoneNum string
    Phone num of the CAM user.
    Remark string
    Remark of the CAM user.
    ResultOutputFile string
    Uid float64
    Uid of the CAM user.
    Uin float64
    Uin of the CAM user.
    id String
    userLists List<GetCamUsersUserList>
    A list of CAM users. Each element contains the following attributes:
    consoleLogin Boolean
    countryCode String
    Country code of the CAM user.
    email String
    Email of the CAM user.
    name String
    Name of CAM user.
    phoneNum String
    Phone num of the CAM user.
    remark String
    Remark of the CAM user.
    resultOutputFile String
    uid Double
    Uid of the CAM user.
    uin Double
    Uin of the CAM user.
    id string
    userLists GetCamUsersUserList[]
    A list of CAM users. Each element contains the following attributes:
    consoleLogin boolean
    countryCode string
    Country code of the CAM user.
    email string
    Email of the CAM user.
    name string
    Name of CAM user.
    phoneNum string
    Phone num of the CAM user.
    remark string
    Remark of the CAM user.
    resultOutputFile string
    uid number
    Uid of the CAM user.
    uin number
    Uin of the CAM user.
    id str
    user_lists Sequence[GetCamUsersUserList]
    A list of CAM users. Each element contains the following attributes:
    console_login bool
    country_code str
    Country code of the CAM user.
    email str
    Email of the CAM user.
    name str
    Name of CAM user.
    phone_num str
    Phone num of the CAM user.
    remark str
    Remark of the CAM user.
    result_output_file str
    uid float
    Uid of the CAM user.
    uin float
    Uin of the CAM user.
    id String
    userLists List<Property Map>
    A list of CAM users. Each element contains the following attributes:
    consoleLogin Boolean
    countryCode String
    Country code of the CAM user.
    email String
    Email of the CAM user.
    name String
    Name of CAM user.
    phoneNum String
    Phone num of the CAM user.
    remark String
    Remark of the CAM user.
    resultOutputFile String
    uid Number
    Uid of the CAM user.
    uin Number
    Uin of the CAM user.

    Supporting Types

    GetCamUsersUserList

    ConsoleLogin bool
    Indicate whether the user can login in.
    CountryCode string
    Country code of the CAM user to be queried.
    Email string
    Email of the CAM user to be queried.
    Name string
    Name of CAM user to be queried.
    PhoneNum string
    Phone num of the CAM user to be queried.
    Remark string
    Remark of the CAM user to be queried.
    Uid double
    Uid of the CAM user to be queried.
    Uin double
    Uin of the CAM user to be queried.
    UserId string
    ID of CAM user. Its value equals to name argument.
    ConsoleLogin bool
    Indicate whether the user can login in.
    CountryCode string
    Country code of the CAM user to be queried.
    Email string
    Email of the CAM user to be queried.
    Name string
    Name of CAM user to be queried.
    PhoneNum string
    Phone num of the CAM user to be queried.
    Remark string
    Remark of the CAM user to be queried.
    Uid float64
    Uid of the CAM user to be queried.
    Uin float64
    Uin of the CAM user to be queried.
    UserId string
    ID of CAM user. Its value equals to name argument.
    consoleLogin Boolean
    Indicate whether the user can login in.
    countryCode String
    Country code of the CAM user to be queried.
    email String
    Email of the CAM user to be queried.
    name String
    Name of CAM user to be queried.
    phoneNum String
    Phone num of the CAM user to be queried.
    remark String
    Remark of the CAM user to be queried.
    uid Double
    Uid of the CAM user to be queried.
    uin Double
    Uin of the CAM user to be queried.
    userId String
    ID of CAM user. Its value equals to name argument.
    consoleLogin boolean
    Indicate whether the user can login in.
    countryCode string
    Country code of the CAM user to be queried.
    email string
    Email of the CAM user to be queried.
    name string
    Name of CAM user to be queried.
    phoneNum string
    Phone num of the CAM user to be queried.
    remark string
    Remark of the CAM user to be queried.
    uid number
    Uid of the CAM user to be queried.
    uin number
    Uin of the CAM user to be queried.
    userId string
    ID of CAM user. Its value equals to name argument.
    console_login bool
    Indicate whether the user can login in.
    country_code str
    Country code of the CAM user to be queried.
    email str
    Email of the CAM user to be queried.
    name str
    Name of CAM user to be queried.
    phone_num str
    Phone num of the CAM user to be queried.
    remark str
    Remark of the CAM user to be queried.
    uid float
    Uid of the CAM user to be queried.
    uin float
    Uin of the CAM user to be queried.
    user_id str
    ID of CAM user. Its value equals to name argument.
    consoleLogin Boolean
    Indicate whether the user can login in.
    countryCode String
    Country code of the CAM user to be queried.
    email String
    Email of the CAM user to be queried.
    name String
    Name of CAM user to be queried.
    phoneNum String
    Phone num of the CAM user to be queried.
    remark String
    Remark of the CAM user to be queried.
    uid Number
    Uid of the CAM user to be queried.
    uin Number
    Uin of the CAM user to be queried.
    userId String
    ID of CAM user. Its value equals to name argument.

    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