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

tencentcloud.getCdcDedicatedClusterHosts

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 CDC dedicated cluster hosts

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const hosts = tencentcloud.getCdcDedicatedClusterHosts({
        dedicatedClusterId: "cluster-262n63e8",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    hosts = tencentcloud.get_cdc_dedicated_cluster_hosts(dedicated_cluster_id="cluster-262n63e8")
    
    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.GetCdcDedicatedClusterHosts(ctx, &tencentcloud.GetCdcDedicatedClusterHostsArgs{
    			DedicatedClusterId: "cluster-262n63e8",
    		}, 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 hosts = Tencentcloud.GetCdcDedicatedClusterHosts.Invoke(new()
        {
            DedicatedClusterId = "cluster-262n63e8",
        });
    
    });
    
    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.GetCdcDedicatedClusterHostsArgs;
    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 hosts = TencentcloudFunctions.getCdcDedicatedClusterHosts(GetCdcDedicatedClusterHostsArgs.builder()
                .dedicatedClusterId("cluster-262n63e8")
                .build());
    
        }
    }
    
    variables:
      hosts:
        fn::invoke:
          function: tencentcloud:getCdcDedicatedClusterHosts
          arguments:
            dedicatedClusterId: cluster-262n63e8
    

    Using getCdcDedicatedClusterHosts

    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 getCdcDedicatedClusterHosts(args: GetCdcDedicatedClusterHostsArgs, opts?: InvokeOptions): Promise<GetCdcDedicatedClusterHostsResult>
    function getCdcDedicatedClusterHostsOutput(args: GetCdcDedicatedClusterHostsOutputArgs, opts?: InvokeOptions): Output<GetCdcDedicatedClusterHostsResult>
    def get_cdc_dedicated_cluster_hosts(dedicated_cluster_id: Optional[str] = None,
                                        id: Optional[str] = None,
                                        result_output_file: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetCdcDedicatedClusterHostsResult
    def get_cdc_dedicated_cluster_hosts_output(dedicated_cluster_id: Optional[pulumi.Input[str]] = None,
                                        id: Optional[pulumi.Input[str]] = None,
                                        result_output_file: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetCdcDedicatedClusterHostsResult]
    func GetCdcDedicatedClusterHosts(ctx *Context, args *GetCdcDedicatedClusterHostsArgs, opts ...InvokeOption) (*GetCdcDedicatedClusterHostsResult, error)
    func GetCdcDedicatedClusterHostsOutput(ctx *Context, args *GetCdcDedicatedClusterHostsOutputArgs, opts ...InvokeOption) GetCdcDedicatedClusterHostsResultOutput

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

    public static class GetCdcDedicatedClusterHosts 
    {
        public static Task<GetCdcDedicatedClusterHostsResult> InvokeAsync(GetCdcDedicatedClusterHostsArgs args, InvokeOptions? opts = null)
        public static Output<GetCdcDedicatedClusterHostsResult> Invoke(GetCdcDedicatedClusterHostsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdcDedicatedClusterHostsResult> getCdcDedicatedClusterHosts(GetCdcDedicatedClusterHostsArgs args, InvokeOptions options)
    public static Output<GetCdcDedicatedClusterHostsResult> getCdcDedicatedClusterHosts(GetCdcDedicatedClusterHostsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCdcDedicatedClusterHosts:getCdcDedicatedClusterHosts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DedicatedClusterId string
    Dedicated Cluster ID.
    Id string
    ResultOutputFile string
    Used to save results.
    DedicatedClusterId string
    Dedicated Cluster ID.
    Id string
    ResultOutputFile string
    Used to save results.
    dedicatedClusterId String
    Dedicated Cluster ID.
    id String
    resultOutputFile String
    Used to save results.
    dedicatedClusterId string
    Dedicated Cluster ID.
    id string
    resultOutputFile string
    Used to save results.
    dedicated_cluster_id str
    Dedicated Cluster ID.
    id str
    result_output_file str
    Used to save results.
    dedicatedClusterId String
    Dedicated Cluster ID.
    id String
    resultOutputFile String
    Used to save results.

    getCdcDedicatedClusterHosts Result

    The following output properties are available:

    dedicatedClusterId String
    hostInfoSets List<Property Map>
    Dedicated Cluster Host Info.
    id String
    resultOutputFile String

    Supporting Types

    GetCdcDedicatedClusterHostsHostInfoSet

    CpuAvailable double
    Dedicated Cluster Host CPU Available Count.
    CpuTotal double
    Dedicated Cluster Host CPU Total Count.
    ExpireTime string
    Dedicated Cluster Host Expire Time.
    HostId string
    Dedicated Cluster Host ID.
    HostIp string
    Dedicated Cluster Host Ip (Deprecated).
    HostStatus string
    Dedicated Cluster Host Status.
    HostType string
    Dedicated Cluster Host Type.
    MemAvailable double
    Dedicated Cluster Host Memory Available Count (GB).
    MemTotal double
    Dedicated Cluster Host Memory Total Count (GB).
    RunTime string
    Dedicated Cluster Host Run Time.
    ServiceType string
    Dedicated Cluster Service Type.
    CpuAvailable float64
    Dedicated Cluster Host CPU Available Count.
    CpuTotal float64
    Dedicated Cluster Host CPU Total Count.
    ExpireTime string
    Dedicated Cluster Host Expire Time.
    HostId string
    Dedicated Cluster Host ID.
    HostIp string
    Dedicated Cluster Host Ip (Deprecated).
    HostStatus string
    Dedicated Cluster Host Status.
    HostType string
    Dedicated Cluster Host Type.
    MemAvailable float64
    Dedicated Cluster Host Memory Available Count (GB).
    MemTotal float64
    Dedicated Cluster Host Memory Total Count (GB).
    RunTime string
    Dedicated Cluster Host Run Time.
    ServiceType string
    Dedicated Cluster Service Type.
    cpuAvailable Double
    Dedicated Cluster Host CPU Available Count.
    cpuTotal Double
    Dedicated Cluster Host CPU Total Count.
    expireTime String
    Dedicated Cluster Host Expire Time.
    hostId String
    Dedicated Cluster Host ID.
    hostIp String
    Dedicated Cluster Host Ip (Deprecated).
    hostStatus String
    Dedicated Cluster Host Status.
    hostType String
    Dedicated Cluster Host Type.
    memAvailable Double
    Dedicated Cluster Host Memory Available Count (GB).
    memTotal Double
    Dedicated Cluster Host Memory Total Count (GB).
    runTime String
    Dedicated Cluster Host Run Time.
    serviceType String
    Dedicated Cluster Service Type.
    cpuAvailable number
    Dedicated Cluster Host CPU Available Count.
    cpuTotal number
    Dedicated Cluster Host CPU Total Count.
    expireTime string
    Dedicated Cluster Host Expire Time.
    hostId string
    Dedicated Cluster Host ID.
    hostIp string
    Dedicated Cluster Host Ip (Deprecated).
    hostStatus string
    Dedicated Cluster Host Status.
    hostType string
    Dedicated Cluster Host Type.
    memAvailable number
    Dedicated Cluster Host Memory Available Count (GB).
    memTotal number
    Dedicated Cluster Host Memory Total Count (GB).
    runTime string
    Dedicated Cluster Host Run Time.
    serviceType string
    Dedicated Cluster Service Type.
    cpu_available float
    Dedicated Cluster Host CPU Available Count.
    cpu_total float
    Dedicated Cluster Host CPU Total Count.
    expire_time str
    Dedicated Cluster Host Expire Time.
    host_id str
    Dedicated Cluster Host ID.
    host_ip str
    Dedicated Cluster Host Ip (Deprecated).
    host_status str
    Dedicated Cluster Host Status.
    host_type str
    Dedicated Cluster Host Type.
    mem_available float
    Dedicated Cluster Host Memory Available Count (GB).
    mem_total float
    Dedicated Cluster Host Memory Total Count (GB).
    run_time str
    Dedicated Cluster Host Run Time.
    service_type str
    Dedicated Cluster Service Type.
    cpuAvailable Number
    Dedicated Cluster Host CPU Available Count.
    cpuTotal Number
    Dedicated Cluster Host CPU Total Count.
    expireTime String
    Dedicated Cluster Host Expire Time.
    hostId String
    Dedicated Cluster Host ID.
    hostIp String
    Dedicated Cluster Host Ip (Deprecated).
    hostStatus String
    Dedicated Cluster Host Status.
    hostType String
    Dedicated Cluster Host Type.
    memAvailable Number
    Dedicated Cluster Host Memory Available Count (GB).
    memTotal Number
    Dedicated Cluster Host Memory Total Count (GB).
    runTime String
    Dedicated Cluster Host Run Time.
    serviceType String
    Dedicated Cluster Service Type.

    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