tencentcloud.OrganizationOrgNode
Explore with Pulumi AI
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:
- Parent
Node doubleId - Parent node ID.
- Name string
- Node name.
- Organization
Org stringNode Id - ID of the resource.
- Remark string
- Notes.
- Dictionary<string, string>
- Tag description list.
- Parent
Node float64Id - Parent node ID.
- Name string
- Node name.
- Organization
Org stringNode Id - ID of the resource.
- Remark string
- Notes.
- map[string]string
- Tag description list.
- parent
Node DoubleId - Parent node ID.
- name String
- Node name.
- organization
Org StringNode Id - ID of the resource.
- remark String
- Notes.
- Map<String,String>
- Tag description list.
- parent
Node numberId - Parent node ID.
- name string
- Node name.
- organization
Org stringNode Id - ID of the resource.
- remark string
- Notes.
- {[key: string]: string}
- Tag description list.
- parent_
node_ floatid - Parent node ID.
- name str
- Node name.
- organization_
org_ strnode_ id - ID of the resource.
- remark str
- Notes.
- Mapping[str, str]
- Tag description list.
- parent
Node NumberId - Parent node ID.
- name String
- Node name.
- organization
Org StringNode Id - ID of the resource.
- remark String
- Notes.
- Map<String>
- Tag description list.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationOrgNode resource produces the following output properties:
- Create
Time string - Node creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Node update time.
- Create
Time string - Node creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Node update time.
- create
Time String - Node creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Node update time.
- create
Time string - Node creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time 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.
- create
Time String - Node creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time 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.
- Create
Time string - Node creation time.
- Name string
- Node name.
- Organization
Org stringNode Id - ID of the resource.
- Parent
Node doubleId - Parent node ID.
- Remark string
- Notes.
- Dictionary<string, string>
- Tag description list.
- Update
Time string - Node update time.
- Create
Time string - Node creation time.
- Name string
- Node name.
- Organization
Org stringNode Id - ID of the resource.
- Parent
Node float64Id - Parent node ID.
- Remark string
- Notes.
- map[string]string
- Tag description list.
- Update
Time string - Node update time.
- create
Time String - Node creation time.
- name String
- Node name.
- organization
Org StringNode Id - ID of the resource.
- parent
Node DoubleId - Parent node ID.
- remark String
- Notes.
- Map<String,String>
- Tag description list.
- update
Time String - Node update time.
- create
Time string - Node creation time.
- name string
- Node name.
- organization
Org stringNode Id - ID of the resource.
- parent
Node numberId - Parent node ID.
- remark string
- Notes.
- {[key: string]: string}
- Tag description list.
- update
Time string - Node update time.
- create_
time str - Node creation time.
- name str
- Node name.
- organization_
org_ strnode_ id - ID of the resource.
- parent_
node_ floatid - Parent node ID.
- remark str
- Notes.
- Mapping[str, str]
- Tag description list.
- update_
time str - Node update time.
- create
Time String - Node creation time.
- name String
- Node name.
- organization
Org StringNode Id - ID of the resource.
- parent
Node NumberId - Parent node ID.
- remark String
- Notes.
- Map<String>
- Tag description list.
- update
Time 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.