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

tencentcloud.OrganizationOrgNode

Explore with Pulumi AI

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

    Provides a resource to create a organization org_node

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const orgNode = new tencentcloud.OrganizationOrgNode("orgNode", {
        parentNodeId: 2003721,
        remark: "for terraform test",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    org_node = tencentcloud.OrganizationOrgNode("orgNode",
        parent_node_id=2003721,
        remark="for terraform test")
    
    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.NewOrganizationOrgNode(ctx, "orgNode", &tencentcloud.OrganizationOrgNodeArgs{
    			ParentNodeId: pulumi.Float64(2003721),
    			Remark:       pulumi.String("for terraform test"),
    		})
    		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 orgNode = new Tencentcloud.OrganizationOrgNode("orgNode", new()
        {
            ParentNodeId = 2003721,
            Remark = "for terraform test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OrganizationOrgNode;
    import com.pulumi.tencentcloud.OrganizationOrgNodeArgs;
    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 orgNode = new OrganizationOrgNode("orgNode", OrganizationOrgNodeArgs.builder()
                .parentNodeId(2003721)
                .remark("for terraform test")
                .build());
    
        }
    }
    
    resources:
      orgNode:
        type: tencentcloud:OrganizationOrgNode
        properties:
          parentNodeId: 2.003721e+06
          remark: for terraform test
    

    Create OrganizationOrgNode Resource

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

    Constructor syntax

    new OrganizationOrgNode(name: string, args: OrganizationOrgNodeArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationOrgNode(resource_name: str,
                            args: OrganizationOrgNodeArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationOrgNode(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            parent_node_id: Optional[float] = None,
                            name: Optional[str] = None,
                            organization_org_node_id: Optional[str] = None,
                            remark: Optional[str] = None,
                            tags: Optional[Mapping[str, str]] = None)
    func NewOrganizationOrgNode(ctx *Context, name string, args OrganizationOrgNodeArgs, opts ...ResourceOption) (*OrganizationOrgNode, error)
    public OrganizationOrgNode(string name, OrganizationOrgNodeArgs args, CustomResourceOptions? opts = null)
    public OrganizationOrgNode(String name, OrganizationOrgNodeArgs args)
    public OrganizationOrgNode(String name, OrganizationOrgNodeArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OrganizationOrgNode
    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 OrganizationOrgNodeArgs
    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 OrganizationOrgNodeArgs
    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 OrganizationOrgNodeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationOrgNodeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationOrgNodeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ParentNodeId double
    Parent node ID.
    Name string
    Node name.
    OrganizationOrgNodeId string
    ID of the resource.
    Remark string
    Notes.
    Tags Dictionary<string, string>
    Tag description list.
    ParentNodeId float64
    Parent node ID.
    Name string
    Node name.
    OrganizationOrgNodeId string
    ID of the resource.
    Remark string
    Notes.
    Tags map[string]string
    Tag description list.
    parentNodeId Double
    Parent node ID.
    name String
    Node name.
    organizationOrgNodeId String
    ID of the resource.
    remark String
    Notes.
    tags Map<String,String>
    Tag description list.
    parentNodeId number
    Parent node ID.
    name string
    Node name.
    organizationOrgNodeId string
    ID of the resource.
    remark string
    Notes.
    tags {[key: string]: string}
    Tag description list.
    parent_node_id float
    Parent node ID.
    name str
    Node name.
    organization_org_node_id str
    ID of the resource.
    remark str
    Notes.
    tags Mapping[str, str]
    Tag description list.
    parentNodeId Number
    Parent node ID.
    name String
    Node name.
    organizationOrgNodeId String
    ID of the resource.
    remark String
    Notes.
    tags Map<String>
    Tag description list.

    Outputs

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

    CreateTime string
    Node creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    Node update time.
    CreateTime string
    Node creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    Node update time.
    createTime String
    Node creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    Node update time.
    createTime string
    Node creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime string
    Node update time.
    create_time str
    Node creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    update_time str
    Node update time.
    createTime String
    Node creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    Node update time.

    Look up Existing OrganizationOrgNode Resource

    Get an existing OrganizationOrgNode 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?: OrganizationOrgNodeState, opts?: CustomResourceOptions): OrganizationOrgNode
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            name: Optional[str] = None,
            organization_org_node_id: Optional[str] = None,
            parent_node_id: Optional[float] = None,
            remark: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            update_time: Optional[str] = None) -> OrganizationOrgNode
    func GetOrganizationOrgNode(ctx *Context, name string, id IDInput, state *OrganizationOrgNodeState, opts ...ResourceOption) (*OrganizationOrgNode, error)
    public static OrganizationOrgNode Get(string name, Input<string> id, OrganizationOrgNodeState? state, CustomResourceOptions? opts = null)
    public static OrganizationOrgNode get(String name, Output<String> id, OrganizationOrgNodeState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OrganizationOrgNode    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:
    CreateTime string
    Node creation time.
    Name string
    Node name.
    OrganizationOrgNodeId string
    ID of the resource.
    ParentNodeId double
    Parent node ID.
    Remark string
    Notes.
    Tags Dictionary<string, string>
    Tag description list.
    UpdateTime string
    Node update time.
    CreateTime string
    Node creation time.
    Name string
    Node name.
    OrganizationOrgNodeId string
    ID of the resource.
    ParentNodeId float64
    Parent node ID.
    Remark string
    Notes.
    Tags map[string]string
    Tag description list.
    UpdateTime string
    Node update time.
    createTime String
    Node creation time.
    name String
    Node name.
    organizationOrgNodeId String
    ID of the resource.
    parentNodeId Double
    Parent node ID.
    remark String
    Notes.
    tags Map<String,String>
    Tag description list.
    updateTime String
    Node update time.
    createTime string
    Node creation time.
    name string
    Node name.
    organizationOrgNodeId string
    ID of the resource.
    parentNodeId number
    Parent node ID.
    remark string
    Notes.
    tags {[key: string]: string}
    Tag description list.
    updateTime string
    Node update time.
    create_time str
    Node creation time.
    name str
    Node name.
    organization_org_node_id str
    ID of the resource.
    parent_node_id float
    Parent node ID.
    remark str
    Notes.
    tags Mapping[str, str]
    Tag description list.
    update_time str
    Node update time.
    createTime String
    Node creation time.
    name String
    Node name.
    organizationOrgNodeId String
    ID of the resource.
    parentNodeId Number
    Parent node ID.
    remark String
    Notes.
    tags Map<String>
    Tag description list.
    updateTime String
    Node update time.

    Import

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

    $ pulumi import tencentcloud:index/organizationOrgNode:OrganizationOrgNode org_node orgNode_id
    

    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