1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. BiUserRole
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.BiUserRole

Explore with Pulumi AI

Provides a resource to create a bi user_role

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const userRole = new tencentcloud.BiUserRole("userRole", {
    areaCode: "+83",
    email: "1055000000@qq.com",
    phoneNumber: "13470010000",
    roleIdLists: [10629359],
    userId: "100032767426",
    userName: "keep-iac-test",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

user_role = tencentcloud.BiUserRole("userRole",
    area_code="+83",
    email="1055000000@qq.com",
    phone_number="13470010000",
    role_id_lists=[10629359],
    user_id="100032767426",
    user_name="keep-iac-test")
Copy
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.NewBiUserRole(ctx, "userRole", &tencentcloud.BiUserRoleArgs{
			AreaCode:    pulumi.String("+83"),
			Email:       pulumi.String("1055000000@qq.com"),
			PhoneNumber: pulumi.String("13470010000"),
			RoleIdLists: pulumi.Float64Array{
				pulumi.Float64(10629359),
			},
			UserId:   pulumi.String("100032767426"),
			UserName: pulumi.String("keep-iac-test"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var userRole = new Tencentcloud.BiUserRole("userRole", new()
    {
        AreaCode = "+83",
        Email = "1055000000@qq.com",
        PhoneNumber = "13470010000",
        RoleIdLists = new[]
        {
            10629359,
        },
        UserId = "100032767426",
        UserName = "keep-iac-test",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.BiUserRole;
import com.pulumi.tencentcloud.BiUserRoleArgs;
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) {
        var userRole = new BiUserRole("userRole", BiUserRoleArgs.builder()
            .areaCode("+83")
            .email("1055000000@qq.com")
            .phoneNumber("13470010000")
            .roleIdLists(10629359)
            .userId("100032767426")
            .userName("keep-iac-test")
            .build());

    }
}
Copy
resources:
  userRole:
    type: tencentcloud:BiUserRole
    properties:
      areaCode: '+83'
      email: 1055000000@qq.com
      phoneNumber: '13470010000'
      roleIdLists:
        - 1.0629359e+07
      userId: '100032767426'
      userName: keep-iac-test
Copy

Create BiUserRole Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new BiUserRole(name: string, args: BiUserRoleArgs, opts?: CustomResourceOptions);
@overload
def BiUserRole(resource_name: str,
               args: BiUserRoleArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def BiUserRole(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               area_code: Optional[str] = None,
               email: Optional[str] = None,
               phone_number: Optional[str] = None,
               role_id_lists: Optional[Sequence[float]] = None,
               user_id: Optional[str] = None,
               user_name: Optional[str] = None,
               bi_user_role_id: Optional[str] = None)
func NewBiUserRole(ctx *Context, name string, args BiUserRoleArgs, opts ...ResourceOption) (*BiUserRole, error)
public BiUserRole(string name, BiUserRoleArgs args, CustomResourceOptions? opts = null)
public BiUserRole(String name, BiUserRoleArgs args)
public BiUserRole(String name, BiUserRoleArgs args, CustomResourceOptions options)
type: tencentcloud:BiUserRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BiUserRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BiUserRoleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BiUserRoleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BiUserRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BiUserRoleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BiUserRole Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The BiUserRole resource accepts the following input properties:

AreaCode This property is required. string
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
Email This property is required. string
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
PhoneNumber This property is required. string
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
RoleIdLists This property is required. List<double>
Role id list.
UserId This property is required. string
User id.
UserName This property is required. string
Username.
BiUserRoleId string
ID of the resource.
AreaCode This property is required. string
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
Email This property is required. string
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
PhoneNumber This property is required. string
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
RoleIdLists This property is required. []float64
Role id list.
UserId This property is required. string
User id.
UserName This property is required. string
Username.
BiUserRoleId string
ID of the resource.
areaCode This property is required. String
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
email This property is required. String
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
phoneNumber This property is required. String
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
roleIdLists This property is required. List<Double>
Role id list.
userId This property is required. String
User id.
userName This property is required. String
Username.
biUserRoleId String
ID of the resource.
areaCode This property is required. string
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
email This property is required. string
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
phoneNumber This property is required. string
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
roleIdLists This property is required. number[]
Role id list.
userId This property is required. string
User id.
userName This property is required. string
Username.
biUserRoleId string
ID of the resource.
area_code This property is required. str
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
email This property is required. str
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
phone_number This property is required. str
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
role_id_lists This property is required. Sequence[float]
Role id list.
user_id This property is required. str
User id.
user_name This property is required. str
Username.
bi_user_role_id str
ID of the resource.
areaCode This property is required. String
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
email This property is required. String
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
phoneNumber This property is required. String
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
roleIdLists This property is required. List<Number>
Role id list.
userId This property is required. String
User id.
userName This property is required. String
Username.
biUserRoleId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the BiUserRole resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing BiUserRole Resource

Get an existing BiUserRole resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BiUserRoleState, opts?: CustomResourceOptions): BiUserRole
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        area_code: Optional[str] = None,
        bi_user_role_id: Optional[str] = None,
        email: Optional[str] = None,
        phone_number: Optional[str] = None,
        role_id_lists: Optional[Sequence[float]] = None,
        user_id: Optional[str] = None,
        user_name: Optional[str] = None) -> BiUserRole
func GetBiUserRole(ctx *Context, name string, id IDInput, state *BiUserRoleState, opts ...ResourceOption) (*BiUserRole, error)
public static BiUserRole Get(string name, Input<string> id, BiUserRoleState? state, CustomResourceOptions? opts = null)
public static BiUserRole get(String name, Output<String> id, BiUserRoleState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:BiUserRole    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AreaCode string
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
BiUserRoleId string
ID of the resource.
Email string
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
PhoneNumber string
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
RoleIdLists List<double>
Role id list.
UserId string
User id.
UserName string
Username.
AreaCode string
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
BiUserRoleId string
ID of the resource.
Email string
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
PhoneNumber string
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
RoleIdLists []float64
Role id list.
UserId string
User id.
UserName string
Username.
areaCode String
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
biUserRoleId String
ID of the resource.
email String
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
phoneNumber String
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
roleIdLists List<Double>
Role id list.
userId String
User id.
userName String
Username.
areaCode string
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
biUserRoleId string
ID of the resource.
email string
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
phoneNumber string
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
roleIdLists number[]
Role id list.
userId string
User id.
userName string
Username.
area_code str
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
bi_user_role_id str
ID of the resource.
email str
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
phone_number str
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
role_id_lists Sequence[float]
Role id list.
user_id str
User id.
user_name str
Username.
areaCode String
Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
biUserRoleId String
ID of the resource.
email String
E-mail(Note: This field may return null, indicating that no valid value can be obtained).
phoneNumber String
Phone number(Note: This field may return null, indicating that no valid value can be obtained).
roleIdLists List<Number>
Role id list.
userId String
User id.
userName String
Username.

Import

bi user_role can be imported using the id, e.g.

$ pulumi import tencentcloud:index/biUserRole:BiUserRole user_role user_id
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.