1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDcdbInstanceNodeInfo
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

tencentcloud.getDcdbInstanceNodeInfo

Start a Neo task
Explain and create a tencentcloud.getDcdbInstanceNodeInfo resource
tencentcloud logo
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

    Use this data source to query detailed information of dcdb instance_node_info

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const instanceNodeInfo = tencentcloud.getDcdbInstanceNodeInfo({
        instanceId: dcdbId,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    instance_node_info = tencentcloud.get_dcdb_instance_node_info(instance_id=dcdb_id)
    
    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.GetDcdbInstanceNodeInfo(ctx, &tencentcloud.GetDcdbInstanceNodeInfoArgs{
    			InstanceId: dcdbId,
    		}, 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 instanceNodeInfo = Tencentcloud.GetDcdbInstanceNodeInfo.Invoke(new()
        {
            InstanceId = dcdbId,
        });
    
    });
    
    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.GetDcdbInstanceNodeInfoArgs;
    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 instanceNodeInfo = TencentcloudFunctions.getDcdbInstanceNodeInfo(GetDcdbInstanceNodeInfoArgs.builder()
                .instanceId(dcdbId)
                .build());
    
        }
    }
    
    variables:
      instanceNodeInfo:
        fn::invoke:
          function: tencentcloud:getDcdbInstanceNodeInfo
          arguments:
            instanceId: ${dcdbId}
    

    Using getDcdbInstanceNodeInfo

    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 getDcdbInstanceNodeInfo(args: GetDcdbInstanceNodeInfoArgs, opts?: InvokeOptions): Promise<GetDcdbInstanceNodeInfoResult>
    function getDcdbInstanceNodeInfoOutput(args: GetDcdbInstanceNodeInfoOutputArgs, opts?: InvokeOptions): Output<GetDcdbInstanceNodeInfoResult>
    def get_dcdb_instance_node_info(id: Optional[str] = None,
                                    instance_id: Optional[str] = None,
                                    result_output_file: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetDcdbInstanceNodeInfoResult
    def get_dcdb_instance_node_info_output(id: Optional[pulumi.Input[str]] = None,
                                    instance_id: Optional[pulumi.Input[str]] = None,
                                    result_output_file: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetDcdbInstanceNodeInfoResult]
    func GetDcdbInstanceNodeInfo(ctx *Context, args *GetDcdbInstanceNodeInfoArgs, opts ...InvokeOption) (*GetDcdbInstanceNodeInfoResult, error)
    func GetDcdbInstanceNodeInfoOutput(ctx *Context, args *GetDcdbInstanceNodeInfoOutputArgs, opts ...InvokeOption) GetDcdbInstanceNodeInfoResultOutput

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

    public static class GetDcdbInstanceNodeInfo 
    {
        public static Task<GetDcdbInstanceNodeInfoResult> InvokeAsync(GetDcdbInstanceNodeInfoArgs args, InvokeOptions? opts = null)
        public static Output<GetDcdbInstanceNodeInfoResult> Invoke(GetDcdbInstanceNodeInfoInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcdbInstanceNodeInfoResult> getDcdbInstanceNodeInfo(GetDcdbInstanceNodeInfoArgs args, InvokeOptions options)
    public static Output<GetDcdbInstanceNodeInfoResult> getDcdbInstanceNodeInfo(GetDcdbInstanceNodeInfoArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDcdbInstanceNodeInfo:getDcdbInstanceNodeInfo
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Instance ID, such as tdsqlshard-6ltok4u9.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    Instance ID, such as tdsqlshard-6ltok4u9.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    Instance ID, such as tdsqlshard-6ltok4u9.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    Instance ID, such as tdsqlshard-6ltok4u9.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    Instance ID, such as tdsqlshard-6ltok4u9.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    Instance ID, such as tdsqlshard-6ltok4u9.
    id String
    resultOutputFile String
    Used to save results.

    getDcdbInstanceNodeInfo Result

    The following output properties are available:

    id String
    instanceId String
    nodesInfos List<Property Map>
    Node information.
    resultOutputFile String

    Supporting Types

    GetDcdbInstanceNodeInfoNodesInfo

    NodeId string
    Node ID.
    Role string
    Node role. Valid values: master, slave.
    ShardId string
    Instance shard ID.
    NodeId string
    Node ID.
    Role string
    Node role. Valid values: master, slave.
    ShardId string
    Instance shard ID.
    nodeId String
    Node ID.
    role String
    Node role. Valid values: master, slave.
    shardId String
    Instance shard ID.
    nodeId string
    Node ID.
    role string
    Node role. Valid values: master, slave.
    shardId string
    Instance shard ID.
    node_id str
    Node ID.
    role str
    Node role. Valid values: master, slave.
    shard_id str
    Instance shard ID.
    nodeId String
    Node ID.
    role String
    Node role. Valid values: master, slave.
    shardId String
    Instance shard ID.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate