tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getOrganizationNodes
Explore with Pulumi AI
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
- Result
Output stringFile - Used to save results.
- List<Get
Organization Nodes Tag> - Department tag search list, with a maximum of 10.
- Id string
- Result
Output stringFile - Used to save results.
- []Get
Organization Nodes Tag - Department tag search list, with a maximum of 10.
- id String
- result
Output StringFile - Used to save results.
- List<Get
Organization Nodes Tag> - Department tag search list, with a maximum of 10.
- id string
- result
Output stringFile - Used to save results.
- Get
Organization Nodes Tag[] - Department tag search list, with a maximum of 10.
- id str
- result_
output_ strfile - Used to save results.
- Sequence[Get
Organization Nodes Tag] - Department tag search list, with a maximum of 10.
- id String
- result
Output StringFile - Used to save results.
- List<Property Map>
- Department tag search list, with a maximum of 10.
getOrganizationNodes Result
The following output properties are available:
- Id string
- Items
List<Get
Organization Nodes Item> - List details.
- Result
Output stringFile - List<Get
Organization Nodes Tag>
- Id string
- Items
[]Get
Organization Nodes Item - List details.
- Result
Output stringFile - []Get
Organization Nodes Tag
- id String
- items
List<Get
Organization Nodes Item> - List details.
- result
Output StringFile - List<Get
Organization Nodes Tag>
- id string
- items
Get
Organization Nodes Item[] - List details.
- result
Output stringFile - Get
Organization Nodes Tag[]
- id String
- items List<Property Map>
- List details.
- result
Output StringFile - List<Property Map>
Supporting Types
GetOrganizationNodesItem
- Create
Time string - Name string
- Node
Id double - Parent
Node doubleId - Remark string
- List<Get
Organization Nodes Item Tag> - Department tag search list, with a maximum of 10.
- Update
Time string
- Create
Time string - Name string
- Node
Id float64 - Parent
Node float64Id - Remark string
- []Get
Organization Nodes Item Tag - Department tag search list, with a maximum of 10.
- Update
Time string
- create
Time String - name String
- node
Id Double - parent
Node DoubleId - remark String
- List<Get
Organization Nodes Item Tag> - Department tag search list, with a maximum of 10.
- update
Time String
- create
Time string - name string
- node
Id number - parent
Node numberId - remark string
- Get
Organization Nodes Item Tag[] - Department tag search list, with a maximum of 10.
- update
Time string
- create_
time str - name str
- node_
id float - parent_
node_ floatid - remark str
- Sequence[Get
Organization Nodes Item Tag] - Department tag search list, with a maximum of 10.
- update_
time str
- create
Time String - name String
- node
Id Number - parent
Node NumberId - remark String
- List<Property Map>
- Department tag search list, with a maximum of 10.
- update
Time String
GetOrganizationNodesItemTag
GetOrganizationNodesTag
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack