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

tencentcloud.getOrganizationNodes

Explore with Pulumi AI

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

    Use this data source to query detailed information of organization nodes

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const organizationNodes = tencentcloud.getOrganizationNodes({
        tags: [{
            tagKey: "createBy",
            tagValue: "terraform",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    organization_nodes = tencentcloud.get_organization_nodes(tags=[{
        "tag_key": "createBy",
        "tag_value": "terraform",
    }])
    
    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.GetOrganizationNodes(ctx, &tencentcloud.GetOrganizationNodesArgs{
    			Tags: []tencentcloud.GetOrganizationNodesTag{
    				{
    					TagKey:   "createBy",
    					TagValue: "terraform",
    				},
    			},
    		}, nil)
    		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 organizationNodes = Tencentcloud.GetOrganizationNodes.Invoke(new()
        {
            Tags = new[]
            {
                new Tencentcloud.Inputs.GetOrganizationNodesTagInputArgs
                {
                    TagKey = "createBy",
                    TagValue = "terraform",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetOrganizationNodesArgs;
    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) {
            final var organizationNodes = TencentcloudFunctions.getOrganizationNodes(GetOrganizationNodesArgs.builder()
                .tags(GetOrganizationNodesTagArgs.builder()
                    .tagKey("createBy")
                    .tagValue("terraform")
                    .build())
                .build());
    
        }
    }
    
    variables:
      organizationNodes:
        fn::invoke:
          function: tencentcloud:getOrganizationNodes
          arguments:
            tags:
              - tagKey: createBy
                tagValue: terraform
    

    Using getOrganizationNodes

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getOrganizationNodes(args: GetOrganizationNodesArgs, opts?: InvokeOptions): Promise<GetOrganizationNodesResult>
    function getOrganizationNodesOutput(args: GetOrganizationNodesOutputArgs, opts?: InvokeOptions): Output<GetOrganizationNodesResult>
    def get_organization_nodes(id: Optional[str] = None,
                               result_output_file: Optional[str] = None,
                               tags: Optional[Sequence[GetOrganizationNodesTag]] = None,
                               opts: Optional[InvokeOptions] = None) -> GetOrganizationNodesResult
    def get_organization_nodes_output(id: Optional[pulumi.Input[str]] = None,
                               result_output_file: Optional[pulumi.Input[str]] = None,
                               tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetOrganizationNodesTagArgs]]]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationNodesResult]
    func GetOrganizationNodes(ctx *Context, args *GetOrganizationNodesArgs, opts ...InvokeOption) (*GetOrganizationNodesResult, error)
    func GetOrganizationNodesOutput(ctx *Context, args *GetOrganizationNodesOutputArgs, opts ...InvokeOption) GetOrganizationNodesResultOutput

    > Note: This function is named GetOrganizationNodes in the Go SDK.

    public static class GetOrganizationNodes 
    {
        public static Task<GetOrganizationNodesResult> InvokeAsync(GetOrganizationNodesArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationNodesResult> Invoke(GetOrganizationNodesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrganizationNodesResult> getOrganizationNodes(GetOrganizationNodesArgs args, InvokeOptions options)
    public static Output<GetOrganizationNodesResult> getOrganizationNodes(GetOrganizationNodesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getOrganizationNodes:getOrganizationNodes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ResultOutputFile string
    Used to save results.
    Tags List<GetOrganizationNodesTag>
    Department tag search list, with a maximum of 10.
    Id string
    ResultOutputFile string
    Used to save results.
    Tags []GetOrganizationNodesTag
    Department tag search list, with a maximum of 10.
    id String
    resultOutputFile String
    Used to save results.
    tags List<GetOrganizationNodesTag>
    Department tag search list, with a maximum of 10.
    id string
    resultOutputFile string
    Used to save results.
    tags GetOrganizationNodesTag[]
    Department tag search list, with a maximum of 10.
    id str
    result_output_file str
    Used to save results.
    tags Sequence[GetOrganizationNodesTag]
    Department tag search list, with a maximum of 10.
    id String
    resultOutputFile String
    Used to save results.
    tags List<Property Map>
    Department tag search list, with a maximum of 10.

    getOrganizationNodes Result

    The following output properties are available:

    Supporting Types

    GetOrganizationNodesItem

    CreateTime string
    Name string
    NodeId double
    ParentNodeId double
    Remark string
    Tags List<GetOrganizationNodesItemTag>
    Department tag search list, with a maximum of 10.
    UpdateTime string
    CreateTime string
    Name string
    NodeId float64
    ParentNodeId float64
    Remark string
    Tags []GetOrganizationNodesItemTag
    Department tag search list, with a maximum of 10.
    UpdateTime string
    createTime String
    name String
    nodeId Double
    parentNodeId Double
    remark String
    tags List<GetOrganizationNodesItemTag>
    Department tag search list, with a maximum of 10.
    updateTime String
    createTime string
    name string
    nodeId number
    parentNodeId number
    remark string
    tags GetOrganizationNodesItemTag[]
    Department tag search list, with a maximum of 10.
    updateTime string
    create_time str
    name str
    node_id float
    parent_node_id float
    remark str
    tags Sequence[GetOrganizationNodesItemTag]
    Department tag search list, with a maximum of 10.
    update_time str
    createTime String
    name String
    nodeId Number
    parentNodeId Number
    remark String
    tags List<Property Map>
    Department tag search list, with a maximum of 10.
    updateTime String

    GetOrganizationNodesItemTag

    TagKey string
    Tag key.
    TagValue string
    Tag value.
    TagKey string
    Tag key.
    TagValue string
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.
    tagKey string
    Tag key.
    tagValue string
    Tag value.
    tag_key str
    Tag key.
    tag_value str
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.

    GetOrganizationNodesTag

    TagKey string
    Tag key.
    TagValue string
    Tag value.
    TagKey string
    Tag key.
    TagValue string
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.
    tagKey string
    Tag key.
    tagValue string
    Tag value.
    tag_key str
    Tag key.
    tag_value str
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.

    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