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

tencentcloud.BiProjectUserRole

Explore with Pulumi AI

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

    Provides a resource to create a bi project_user_role

    NOTE: You cannot use tencentcloud.BiUserRole and tencentcloud.BiProjectUserRole at the same time to modify the phone_number and email of the same user.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const projectUserRole = new tencentcloud.BiProjectUserRole("projectUserRole", {
        areaCode: "+86",
        email: "123456@qq.com",
        phoneNumber: "13130001000",
        projectId: 11015030,
        roleIdLists: [10629453],
        userId: "100024664626",
        userName: "keep-cam-user",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    project_user_role = tencentcloud.BiProjectUserRole("projectUserRole",
        area_code="+86",
        email="123456@qq.com",
        phone_number="13130001000",
        project_id=11015030,
        role_id_lists=[10629453],
        user_id="100024664626",
        user_name="keep-cam-user")
    
    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.NewBiProjectUserRole(ctx, "projectUserRole", &tencentcloud.BiProjectUserRoleArgs{
    			AreaCode:    pulumi.String("+86"),
    			Email:       pulumi.String("123456@qq.com"),
    			PhoneNumber: pulumi.String("13130001000"),
    			ProjectId:   pulumi.Float64(11015030),
    			RoleIdLists: pulumi.Float64Array{
    				pulumi.Float64(10629453),
    			},
    			UserId:   pulumi.String("100024664626"),
    			UserName: pulumi.String("keep-cam-user"),
    		})
    		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 projectUserRole = new Tencentcloud.BiProjectUserRole("projectUserRole", new()
        {
            AreaCode = "+86",
            Email = "123456@qq.com",
            PhoneNumber = "13130001000",
            ProjectId = 11015030,
            RoleIdLists = new[]
            {
                10629453,
            },
            UserId = "100024664626",
            UserName = "keep-cam-user",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.BiProjectUserRole;
    import com.pulumi.tencentcloud.BiProjectUserRoleArgs;
    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 projectUserRole = new BiProjectUserRole("projectUserRole", BiProjectUserRoleArgs.builder()
                .areaCode("+86")
                .email("123456@qq.com")
                .phoneNumber("13130001000")
                .projectId(11015030)
                .roleIdLists(10629453)
                .userId("100024664626")
                .userName("keep-cam-user")
                .build());
    
        }
    }
    
    resources:
      projectUserRole:
        type: tencentcloud:BiProjectUserRole
        properties:
          areaCode: '+86'
          email: 123456@qq.com
          phoneNumber: '13130001000'
          projectId: 1.101503e+07
          roleIdLists:
            - 1.0629453e+07
          userId: '100024664626'
          userName: keep-cam-user
    

    Create BiProjectUserRole Resource

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

    Constructor syntax

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

    Parameters

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

    BiProjectUserRole 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 BiProjectUserRole resource accepts the following input properties:

    AreaCode string
    Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
    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).
    UserId string
    User id.
    UserName string
    Username.
    BiProjectUserRoleId string
    ID of the resource.
    ProjectId double
    Project id.
    RoleIdLists List<double>
    Role id list.
    AreaCode string
    Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
    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).
    UserId string
    User id.
    UserName string
    Username.
    BiProjectUserRoleId string
    ID of the resource.
    ProjectId float64
    Project id.
    RoleIdLists []float64
    Role id list.
    areaCode String
    Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
    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).
    userId String
    User id.
    userName String
    Username.
    biProjectUserRoleId String
    ID of the resource.
    projectId Double
    Project id.
    roleIdLists List<Double>
    Role id list.
    areaCode string
    Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
    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).
    userId string
    User id.
    userName string
    Username.
    biProjectUserRoleId string
    ID of the resource.
    projectId number
    Project id.
    roleIdLists number[]
    Role id list.
    area_code str
    Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
    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).
    user_id str
    User id.
    user_name str
    Username.
    bi_project_user_role_id str
    ID of the resource.
    project_id float
    Project id.
    role_id_lists Sequence[float]
    Role id list.
    areaCode String
    Mobile area code(Note: This field may return null, indicating that no valid value can be obtained).
    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).
    userId String
    User id.
    userName String
    Username.
    biProjectUserRoleId String
    ID of the resource.
    projectId Number
    Project id.
    roleIdLists List<Number>
    Role id list.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BiProjectUserRole 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 BiProjectUserRole Resource

    Get an existing BiProjectUserRole 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?: BiProjectUserRoleState, opts?: CustomResourceOptions): BiProjectUserRole
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            area_code: Optional[str] = None,
            bi_project_user_role_id: Optional[str] = None,
            email: Optional[str] = None,
            phone_number: Optional[str] = None,
            project_id: Optional[float] = None,
            role_id_lists: Optional[Sequence[float]] = None,
            user_id: Optional[str] = None,
            user_name: Optional[str] = None) -> BiProjectUserRole
    func GetBiProjectUserRole(ctx *Context, name string, id IDInput, state *BiProjectUserRoleState, opts ...ResourceOption) (*BiProjectUserRole, error)
    public static BiProjectUserRole Get(string name, Input<string> id, BiProjectUserRoleState? state, CustomResourceOptions? opts = null)
    public static BiProjectUserRole get(String name, Output<String> id, BiProjectUserRoleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:BiProjectUserRole    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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).
    BiProjectUserRoleId 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).
    ProjectId double
    Project id.
    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).
    BiProjectUserRoleId 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).
    ProjectId float64
    Project id.
    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).
    biProjectUserRoleId 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).
    projectId Double
    Project id.
    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).
    biProjectUserRoleId 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).
    projectId number
    Project id.
    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_project_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).
    project_id float
    Project id.
    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).
    biProjectUserRoleId 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).
    projectId Number
    Project id.
    roleIdLists List<Number>
    Role id list.
    userId String
    User id.
    userName String
    Username.

    Import

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

    $ pulumi import tencentcloud:index/biProjectUserRole:BiProjectUserRole project_user_role projectId#userId
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack