1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. OrganizationOrgMember
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.OrganizationOrgMember

Explore with Pulumi AI

Provides a resource to create a organization org_member

Example Usage

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

const orgMember = new tencentcloud.OrganizationOrgMember("orgMember", {
    nodeId: 2003721,
    permissionIds: [
        1,
        2,
        3,
        4,
    ],
    policyType: "Financial",
    remark: "for terraform test",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

org_member = tencentcloud.OrganizationOrgMember("orgMember",
    node_id=2003721,
    permission_ids=[
        1,
        2,
        3,
        4,
    ],
    policy_type="Financial",
    remark="for terraform 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.NewOrganizationOrgMember(ctx, "orgMember", &tencentcloud.OrganizationOrgMemberArgs{
			NodeId: pulumi.Float64(2003721),
			PermissionIds: pulumi.Float64Array{
				pulumi.Float64(1),
				pulumi.Float64(2),
				pulumi.Float64(3),
				pulumi.Float64(4),
			},
			PolicyType: pulumi.String("Financial"),
			Remark:     pulumi.String("for terraform 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 orgMember = new Tencentcloud.OrganizationOrgMember("orgMember", new()
    {
        NodeId = 2003721,
        PermissionIds = new[]
        {
            1,
            2,
            3,
            4,
        },
        PolicyType = "Financial",
        Remark = "for terraform test",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.OrganizationOrgMember;
import com.pulumi.tencentcloud.OrganizationOrgMemberArgs;
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 orgMember = new OrganizationOrgMember("orgMember", OrganizationOrgMemberArgs.builder()
            .nodeId(2003721)
            .permissionIds(            
                1,
                2,
                3,
                4)
            .policyType("Financial")
            .remark("for terraform test")
            .build());

    }
}
Copy
resources:
  orgMember:
    type: tencentcloud:OrganizationOrgMember
    properties:
      nodeId: 2.003721e+06
      permissionIds:
        - 1
        - 2
        - 3
        - 4
      policyType: Financial
      remark: for terraform test
Copy

Create OrganizationOrgMember Resource

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

Constructor syntax

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

@overload
def OrganizationOrgMember(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          node_id: Optional[float] = None,
                          permission_ids: Optional[Sequence[float]] = None,
                          policy_type: Optional[str] = None,
                          name: Optional[str] = None,
                          organization_org_member_id: Optional[str] = None,
                          pay_uin: Optional[str] = None,
                          record_id: Optional[float] = None,
                          remark: Optional[str] = None,
                          tags: Optional[Mapping[str, str]] = None)
func NewOrganizationOrgMember(ctx *Context, name string, args OrganizationOrgMemberArgs, opts ...ResourceOption) (*OrganizationOrgMember, error)
public OrganizationOrgMember(string name, OrganizationOrgMemberArgs args, CustomResourceOptions? opts = null)
public OrganizationOrgMember(String name, OrganizationOrgMemberArgs args)
public OrganizationOrgMember(String name, OrganizationOrgMemberArgs args, CustomResourceOptions options)
type: tencentcloud:OrganizationOrgMember
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. OrganizationOrgMemberArgs
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. OrganizationOrgMemberArgs
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. OrganizationOrgMemberArgs
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. OrganizationOrgMemberArgs
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. OrganizationOrgMemberArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

NodeId This property is required. double
Organization node ID.
PermissionIds This property is required. List<double>
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
PolicyType This property is required. string
Organization policy type.- Financial: Financial management policy.
Name string
Member name.
OrganizationOrgMemberId string
Permissions ID.
PayUin string
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
RecordId double
Create member record ID.When create failed and needs to be recreated, is required.
Remark string
Notes.
Tags Dictionary<string, string>
Tag description list.
NodeId This property is required. float64
Organization node ID.
PermissionIds This property is required. []float64
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
PolicyType This property is required. string
Organization policy type.- Financial: Financial management policy.
Name string
Member name.
OrganizationOrgMemberId string
Permissions ID.
PayUin string
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
RecordId float64
Create member record ID.When create failed and needs to be recreated, is required.
Remark string
Notes.
Tags map[string]string
Tag description list.
nodeId This property is required. Double
Organization node ID.
permissionIds This property is required. List<Double>
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
policyType This property is required. String
Organization policy type.- Financial: Financial management policy.
name String
Member name.
organizationOrgMemberId String
Permissions ID.
payUin String
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
recordId Double
Create member record ID.When create failed and needs to be recreated, is required.
remark String
Notes.
tags Map<String,String>
Tag description list.
nodeId This property is required. number
Organization node ID.
permissionIds This property is required. number[]
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
policyType This property is required. string
Organization policy type.- Financial: Financial management policy.
name string
Member name.
organizationOrgMemberId string
Permissions ID.
payUin string
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
recordId number
Create member record ID.When create failed and needs to be recreated, is required.
remark string
Notes.
tags {[key: string]: string}
Tag description list.
node_id This property is required. float
Organization node ID.
permission_ids This property is required. Sequence[float]
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
policy_type This property is required. str
Organization policy type.- Financial: Financial management policy.
name str
Member name.
organization_org_member_id str
Permissions ID.
pay_uin str
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
record_id float
Create member record ID.When create failed and needs to be recreated, is required.
remark str
Notes.
tags Mapping[str, str]
Tag description list.
nodeId This property is required. Number
Organization node ID.
permissionIds This property is required. List<Number>
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
policyType This property is required. String
Organization policy type.- Financial: Financial management policy.
name String
Member name.
organizationOrgMemberId String
Permissions ID.
payUin String
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
recordId Number
Create member record ID.When create failed and needs to be recreated, is required.
remark String
Notes.
tags Map<String>
Tag description list.

Outputs

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

CreateTime string
Member creation time.
Id string
The provider-assigned unique ID for this managed resource.
IsAllowQuit string
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
MemberType string
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
NodeName string
Organization node name.
OrgPermissions List<OrganizationOrgMemberOrgPermission>
Financial management permissions.
OrgPolicyName string
Organization policy name.
PayName string
The member name which is payment account on behalf.
UpdateTime string
Member update time.
CreateTime string
Member creation time.
Id string
The provider-assigned unique ID for this managed resource.
IsAllowQuit string
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
MemberType string
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
NodeName string
Organization node name.
OrgPermissions []OrganizationOrgMemberOrgPermission
Financial management permissions.
OrgPolicyName string
Organization policy name.
PayName string
The member name which is payment account on behalf.
UpdateTime string
Member update time.
createTime String
Member creation time.
id String
The provider-assigned unique ID for this managed resource.
isAllowQuit String
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
memberType String
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
nodeName String
Organization node name.
orgPermissions List<OrganizationOrgMemberOrgPermission>
Financial management permissions.
orgPolicyName String
Organization policy name.
payName String
The member name which is payment account on behalf.
updateTime String
Member update time.
createTime string
Member creation time.
id string
The provider-assigned unique ID for this managed resource.
isAllowQuit string
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
memberType string
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
nodeName string
Organization node name.
orgPermissions OrganizationOrgMemberOrgPermission[]
Financial management permissions.
orgPolicyName string
Organization policy name.
payName string
The member name which is payment account on behalf.
updateTime string
Member update time.
create_time str
Member creation time.
id str
The provider-assigned unique ID for this managed resource.
is_allow_quit str
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
member_type str
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
node_name str
Organization node name.
org_permissions Sequence[OrganizationOrgMemberOrgPermission]
Financial management permissions.
org_policy_name str
Organization policy name.
pay_name str
The member name which is payment account on behalf.
update_time str
Member update time.
createTime String
Member creation time.
id String
The provider-assigned unique ID for this managed resource.
isAllowQuit String
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
memberType String
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
nodeName String
Organization node name.
orgPermissions List<Property Map>
Financial management permissions.
orgPolicyName String
Organization policy name.
payName String
The member name which is payment account on behalf.
updateTime String
Member update time.

Look up Existing OrganizationOrgMember Resource

Get an existing OrganizationOrgMember 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?: OrganizationOrgMemberState, opts?: CustomResourceOptions): OrganizationOrgMember
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        is_allow_quit: Optional[str] = None,
        member_type: Optional[str] = None,
        name: Optional[str] = None,
        node_id: Optional[float] = None,
        node_name: Optional[str] = None,
        org_permissions: Optional[Sequence[OrganizationOrgMemberOrgPermissionArgs]] = None,
        org_policy_name: Optional[str] = None,
        organization_org_member_id: Optional[str] = None,
        pay_name: Optional[str] = None,
        pay_uin: Optional[str] = None,
        permission_ids: Optional[Sequence[float]] = None,
        policy_type: Optional[str] = None,
        record_id: Optional[float] = None,
        remark: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        update_time: Optional[str] = None) -> OrganizationOrgMember
func GetOrganizationOrgMember(ctx *Context, name string, id IDInput, state *OrganizationOrgMemberState, opts ...ResourceOption) (*OrganizationOrgMember, error)
public static OrganizationOrgMember Get(string name, Input<string> id, OrganizationOrgMemberState? state, CustomResourceOptions? opts = null)
public static OrganizationOrgMember get(String name, Output<String> id, OrganizationOrgMemberState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:OrganizationOrgMember    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:
CreateTime string
Member creation time.
IsAllowQuit string
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
MemberType string
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
Name string
Member name.
NodeId double
Organization node ID.
NodeName string
Organization node name.
OrgPermissions List<OrganizationOrgMemberOrgPermission>
Financial management permissions.
OrgPolicyName string
Organization policy name.
OrganizationOrgMemberId string
Permissions ID.
PayName string
The member name which is payment account on behalf.
PayUin string
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
PermissionIds List<double>
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
PolicyType string
Organization policy type.- Financial: Financial management policy.
RecordId double
Create member record ID.When create failed and needs to be recreated, is required.
Remark string
Notes.
Tags Dictionary<string, string>
Tag description list.
UpdateTime string
Member update time.
CreateTime string
Member creation time.
IsAllowQuit string
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
MemberType string
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
Name string
Member name.
NodeId float64
Organization node ID.
NodeName string
Organization node name.
OrgPermissions []OrganizationOrgMemberOrgPermissionArgs
Financial management permissions.
OrgPolicyName string
Organization policy name.
OrganizationOrgMemberId string
Permissions ID.
PayName string
The member name which is payment account on behalf.
PayUin string
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
PermissionIds []float64
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
PolicyType string
Organization policy type.- Financial: Financial management policy.
RecordId float64
Create member record ID.When create failed and needs to be recreated, is required.
Remark string
Notes.
Tags map[string]string
Tag description list.
UpdateTime string
Member update time.
createTime String
Member creation time.
isAllowQuit String
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
memberType String
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
name String
Member name.
nodeId Double
Organization node ID.
nodeName String
Organization node name.
orgPermissions List<OrganizationOrgMemberOrgPermission>
Financial management permissions.
orgPolicyName String
Organization policy name.
organizationOrgMemberId String
Permissions ID.
payName String
The member name which is payment account on behalf.
payUin String
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
permissionIds List<Double>
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
policyType String
Organization policy type.- Financial: Financial management policy.
recordId Double
Create member record ID.When create failed and needs to be recreated, is required.
remark String
Notes.
tags Map<String,String>
Tag description list.
updateTime String
Member update time.
createTime string
Member creation time.
isAllowQuit string
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
memberType string
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
name string
Member name.
nodeId number
Organization node ID.
nodeName string
Organization node name.
orgPermissions OrganizationOrgMemberOrgPermission[]
Financial management permissions.
orgPolicyName string
Organization policy name.
organizationOrgMemberId string
Permissions ID.
payName string
The member name which is payment account on behalf.
payUin string
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
permissionIds number[]
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
policyType string
Organization policy type.- Financial: Financial management policy.
recordId number
Create member record ID.When create failed and needs to be recreated, is required.
remark string
Notes.
tags {[key: string]: string}
Tag description list.
updateTime string
Member update time.
create_time str
Member creation time.
is_allow_quit str
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
member_type str
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
name str
Member name.
node_id float
Organization node ID.
node_name str
Organization node name.
org_permissions Sequence[OrganizationOrgMemberOrgPermissionArgs]
Financial management permissions.
org_policy_name str
Organization policy name.
organization_org_member_id str
Permissions ID.
pay_name str
The member name which is payment account on behalf.
pay_uin str
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
permission_ids Sequence[float]
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
policy_type str
Organization policy type.- Financial: Financial management policy.
record_id float
Create member record ID.When create failed and needs to be recreated, is required.
remark str
Notes.
tags Mapping[str, str]
Tag description list.
update_time str
Member update time.
createTime String
Member creation time.
isAllowQuit String
Whether to allow member to leave the organization.Valid values:- Allow.- Denied.
memberType String
Member Type.Valid values:- Invite: The member is invited.- Create: The member is created.
name String
Member name.
nodeId Number
Organization node ID.
nodeName String
Organization node name.
orgPermissions List<Property Map>
Financial management permissions.
orgPolicyName String
Organization policy name.
organizationOrgMemberId String
Permissions ID.
payName String
The member name which is payment account on behalf.
payUin String
The uin which is payment account on behalf.When PermissionIds contains 7, is required.
permissionIds List<Number>
Financial management permission IDs.Valid values:- 1: View bill.- 2: Check balance.- 3: Fund transfer.- 4: Combine bill.- 5: Issue an invoice.- 6: Inherit discount.- 7: Pay on behalf.value 1,2 is required.
policyType String
Organization policy type.- Financial: Financial management policy.
recordId Number
Create member record ID.When create failed and needs to be recreated, is required.
remark String
Notes.
tags Map<String>
Tag description list.
updateTime String
Member update time.

Supporting Types

OrganizationOrgMemberOrgPermission
, OrganizationOrgMemberOrgPermissionArgs

Id This property is required. double
Permissions ID.
Name This property is required. string
Member name.
Id This property is required. float64
Permissions ID.
Name This property is required. string
Member name.
id This property is required. Double
Permissions ID.
name This property is required. String
Member name.
id This property is required. number
Permissions ID.
name This property is required. string
Member name.
id This property is required. float
Permissions ID.
name This property is required. str
Member name.
id This property is required. Number
Permissions ID.
name This property is required. String
Member name.

Import

organization org_member can be imported using the id, e.g.

$ pulumi import tencentcloud:index/organizationOrgMember:OrganizationOrgMember org_member orgMember_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.