tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getCamUsers
Explore with Pulumi AI
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:
- Console
Login bool - Indicate whether the user can login in.
- Country
Code 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.
- Phone
Num string - Phone num of the CAM user to be queried.
- Remark string
- Remark of the CAM user to be queried.
- Result
Output stringFile - Used to save results.
- Uid double
- Uid of the CAM user to be queried.
- Uin double
- Uin of the CAM user to be queried.
- Console
Login bool - Indicate whether the user can login in.
- Country
Code 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.
- Phone
Num string - Phone num of the CAM user to be queried.
- Remark string
- Remark of the CAM user to be queried.
- Result
Output stringFile - Used to save results.
- Uid float64
- Uid of the CAM user to be queried.
- Uin float64
- Uin of the CAM user to be queried.
- console
Login Boolean - Indicate whether the user can login in.
- country
Code 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.
- phone
Num String - Phone num of the CAM user to be queried.
- remark String
- Remark of the CAM user to be queried.
- result
Output StringFile - Used to save results.
- uid Double
- Uid of the CAM user to be queried.
- uin Double
- Uin of the CAM user to be queried.
- console
Login boolean - Indicate whether the user can login in.
- country
Code 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.
- phone
Num string - Phone num of the CAM user to be queried.
- remark string
- Remark of the CAM user to be queried.
- result
Output stringFile - 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_ strfile - Used to save results.
- uid float
- Uid of the CAM user to be queried.
- uin float
- Uin of the CAM user to be queried.
- console
Login Boolean - Indicate whether the user can login in.
- country
Code 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.
- phone
Num String - Phone num of the CAM user to be queried.
- remark String
- Remark of the CAM user to be queried.
- result
Output StringFile - 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
- User
Lists List<GetCam Users User List> - A list of CAM users. Each element contains the following attributes:
- Console
Login bool - Country
Code string - Country code of the CAM user.
- Email string
- Email of the CAM user.
- Name string
- Name of CAM user.
- Phone
Num string - Phone num of the CAM user.
- Remark string
- Remark of the CAM user.
- Result
Output stringFile - Uid double
- Uid of the CAM user.
- Uin double
- Uin of the CAM user.
- Id string
- User
Lists []GetCam Users User List - A list of CAM users. Each element contains the following attributes:
- Console
Login bool - Country
Code string - Country code of the CAM user.
- Email string
- Email of the CAM user.
- Name string
- Name of CAM user.
- Phone
Num string - Phone num of the CAM user.
- Remark string
- Remark of the CAM user.
- Result
Output stringFile - Uid float64
- Uid of the CAM user.
- Uin float64
- Uin of the CAM user.
- id String
- user
Lists List<GetCam Users User List> - A list of CAM users. Each element contains the following attributes:
- console
Login Boolean - country
Code String - Country code of the CAM user.
- email String
- Email of the CAM user.
- name String
- Name of CAM user.
- phone
Num String - Phone num of the CAM user.
- remark String
- Remark of the CAM user.
- result
Output StringFile - uid Double
- Uid of the CAM user.
- uin Double
- Uin of the CAM user.
- id string
- user
Lists GetCam Users User List[] - A list of CAM users. Each element contains the following attributes:
- console
Login boolean - country
Code string - Country code of the CAM user.
- email string
- Email of the CAM user.
- name string
- Name of CAM user.
- phone
Num string - Phone num of the CAM user.
- remark string
- Remark of the CAM user.
- result
Output stringFile - uid number
- Uid of the CAM user.
- uin number
- Uin of the CAM user.
- id str
- user_
lists Sequence[GetCam Users User List] - 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_ strfile - uid float
- Uid of the CAM user.
- uin float
- Uin of the CAM user.
- id String
- user
Lists List<Property Map> - A list of CAM users. Each element contains the following attributes:
- console
Login Boolean - country
Code String - Country code of the CAM user.
- email String
- Email of the CAM user.
- name String
- Name of CAM user.
- phone
Num String - Phone num of the CAM user.
- remark String
- Remark of the CAM user.
- result
Output StringFile - uid Number
- Uid of the CAM user.
- uin Number
- Uin of the CAM user.
Supporting Types
GetCamUsersUserList
- Console
Login bool - Indicate whether the user can login in.
- Country
Code 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.
- Phone
Num 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.
- User
Id string - ID of CAM user. Its value equals to
name
argument.
- Console
Login bool - Indicate whether the user can login in.
- Country
Code 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.
- Phone
Num 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.
- User
Id string - ID of CAM user. Its value equals to
name
argument.
- console
Login Boolean - Indicate whether the user can login in.
- country
Code 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.
- phone
Num 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.
- user
Id String - ID of CAM user. Its value equals to
name
argument.
- console
Login boolean - Indicate whether the user can login in.
- country
Code 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.
- phone
Num 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.
- user
Id 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.
- console
Login Boolean - Indicate whether the user can login in.
- country
Code 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.
- phone
Num 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.
- user
Id 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack