tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getCdhInstances
Start a Neo task
Explain and create a tencentcloud.getCdhInstances resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query CDH instances.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const list = tencentcloud.getCdhInstances({
availabilityZone: "ap-guangzhou-3",
hostId: "host-d6s7i5q4",
hostName: "test",
hostState: "RUNNING",
projectId: 1154137,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
list = tencentcloud.get_cdh_instances(availability_zone="ap-guangzhou-3",
host_id="host-d6s7i5q4",
host_name="test",
host_state="RUNNING",
project_id=1154137)
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.GetCdhInstances(ctx, &tencentcloud.GetCdhInstancesArgs{
AvailabilityZone: pulumi.StringRef("ap-guangzhou-3"),
HostId: pulumi.StringRef("host-d6s7i5q4"),
HostName: pulumi.StringRef("test"),
HostState: pulumi.StringRef("RUNNING"),
ProjectId: pulumi.Float64Ref(1154137),
}, 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 list = Tencentcloud.GetCdhInstances.Invoke(new()
{
AvailabilityZone = "ap-guangzhou-3",
HostId = "host-d6s7i5q4",
HostName = "test",
HostState = "RUNNING",
ProjectId = 1154137,
});
});
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.GetCdhInstancesArgs;
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 list = TencentcloudFunctions.getCdhInstances(GetCdhInstancesArgs.builder()
.availabilityZone("ap-guangzhou-3")
.hostId("host-d6s7i5q4")
.hostName("test")
.hostState("RUNNING")
.projectId(1154137)
.build());
}
}
variables:
list:
fn::invoke:
function: tencentcloud:getCdhInstances
arguments:
availabilityZone: ap-guangzhou-3
hostId: host-d6s7i5q4
hostName: test
hostState: RUNNING
projectId: 1.154137e+06
Using getCdhInstances
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 getCdhInstances(args: GetCdhInstancesArgs, opts?: InvokeOptions): Promise<GetCdhInstancesResult>
function getCdhInstancesOutput(args: GetCdhInstancesOutputArgs, opts?: InvokeOptions): Output<GetCdhInstancesResult>def get_cdh_instances(availability_zone: Optional[str] = None,
host_id: Optional[str] = None,
host_name: Optional[str] = None,
host_state: Optional[str] = None,
id: Optional[str] = None,
project_id: Optional[float] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCdhInstancesResult
def get_cdh_instances_output(availability_zone: Optional[pulumi.Input[str]] = None,
host_id: Optional[pulumi.Input[str]] = None,
host_name: Optional[pulumi.Input[str]] = None,
host_state: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCdhInstancesResult]func GetCdhInstances(ctx *Context, args *GetCdhInstancesArgs, opts ...InvokeOption) (*GetCdhInstancesResult, error)
func GetCdhInstancesOutput(ctx *Context, args *GetCdhInstancesOutputArgs, opts ...InvokeOption) GetCdhInstancesResultOutput> Note: This function is named GetCdhInstances in the Go SDK.
public static class GetCdhInstances
{
public static Task<GetCdhInstancesResult> InvokeAsync(GetCdhInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetCdhInstancesResult> Invoke(GetCdhInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCdhInstancesResult> getCdhInstances(GetCdhInstancesArgs args, InvokeOptions options)
public static Output<GetCdhInstancesResult> getCdhInstances(GetCdhInstancesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCdhInstances:getCdhInstances
arguments:
# arguments dictionaryThe following arguments are supported:
- Availability
Zone string - The available zone that the CDH instance locates at.
- Host
Id string - ID of the CDH instances to be queried.
- Host
Name string - Name of the CDH instances to be queried.
- Host
State string - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - Id string
- Project
Id double - The project CDH belongs to.
- Result
Output stringFile - Used to save results.
- Availability
Zone string - The available zone that the CDH instance locates at.
- Host
Id string - ID of the CDH instances to be queried.
- Host
Name string - Name of the CDH instances to be queried.
- Host
State string - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - Id string
- Project
Id float64 - The project CDH belongs to.
- Result
Output stringFile - Used to save results.
- availability
Zone String - The available zone that the CDH instance locates at.
- host
Id String - ID of the CDH instances to be queried.
- host
Name String - Name of the CDH instances to be queried.
- host
State String - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - id String
- project
Id Double - The project CDH belongs to.
- result
Output StringFile - Used to save results.
- availability
Zone string - The available zone that the CDH instance locates at.
- host
Id string - ID of the CDH instances to be queried.
- host
Name string - Name of the CDH instances to be queried.
- host
State string - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - id string
- project
Id number - The project CDH belongs to.
- result
Output stringFile - Used to save results.
- availability_
zone str - The available zone that the CDH instance locates at.
- host_
id str - ID of the CDH instances to be queried.
- host_
name str - Name of the CDH instances to be queried.
- host_
state str - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - id str
- project_
id float - The project CDH belongs to.
- result_
output_ strfile - Used to save results.
- availability
Zone String - The available zone that the CDH instance locates at.
- host
Id String - ID of the CDH instances to be queried.
- host
Name String - Name of the CDH instances to be queried.
- host
State String - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - id String
- project
Id Number - The project CDH belongs to.
- result
Output StringFile - Used to save results.
getCdhInstances Result
The following output properties are available:
- Cdh
Instance List<GetLists Cdh Instances Cdh Instance List> - An information list of cdh instance. Each element contains the following attributes:
- Id string
- Availability
Zone string - The available zone that the CDH instance locates at.
- Host
Id string - ID of the CDH instance.
- Host
Name string - Name of the CDH instance.
- Host
State string - State of the CDH instance.
- Project
Id double - The project CDH belongs to.
- Result
Output stringFile
- Cdh
Instance []GetLists Cdh Instances Cdh Instance List - An information list of cdh instance. Each element contains the following attributes:
- Id string
- Availability
Zone string - The available zone that the CDH instance locates at.
- Host
Id string - ID of the CDH instance.
- Host
Name string - Name of the CDH instance.
- Host
State string - State of the CDH instance.
- Project
Id float64 - The project CDH belongs to.
- Result
Output stringFile
- cdh
Instance List<GetLists Cdh Instances Cdh Instance List> - An information list of cdh instance. Each element contains the following attributes:
- id String
- availability
Zone String - The available zone that the CDH instance locates at.
- host
Id String - ID of the CDH instance.
- host
Name String - Name of the CDH instance.
- host
State String - State of the CDH instance.
- project
Id Double - The project CDH belongs to.
- result
Output StringFile
- cdh
Instance GetLists Cdh Instances Cdh Instance List[] - An information list of cdh instance. Each element contains the following attributes:
- id string
- availability
Zone string - The available zone that the CDH instance locates at.
- host
Id string - ID of the CDH instance.
- host
Name string - Name of the CDH instance.
- host
State string - State of the CDH instance.
- project
Id number - The project CDH belongs to.
- result
Output stringFile
- cdh_
instance_ Sequence[Getlists Cdh Instances Cdh Instance List] - An information list of cdh instance. Each element contains the following attributes:
- id str
- availability_
zone str - The available zone that the CDH instance locates at.
- host_
id str - ID of the CDH instance.
- host_
name str - Name of the CDH instance.
- host_
state str - State of the CDH instance.
- project_
id float - The project CDH belongs to.
- result_
output_ strfile
- cdh
Instance List<Property Map>Lists - An information list of cdh instance. Each element contains the following attributes:
- id String
- availability
Zone String - The available zone that the CDH instance locates at.
- host
Id String - ID of the CDH instance.
- host
Name String - Name of the CDH instance.
- host
State String - State of the CDH instance.
- project
Id Number - The project CDH belongs to.
- result
Output StringFile
Supporting Types
GetCdhInstancesCdhInstanceList
- Availability
Zone string - The available zone that the CDH instance locates at.
- Cage
Id string - Cage ID of the CDH instance. This parameter is only valid for CDH instances in the cages of finance availability zones.
- Charge
Type string - The charge type of the CDH instance.
- Create
Time string - Creation time of the CDH instance.
- Cvm
Instance List<string>Ids - Id of CVM instances that have been created on the CDH instance.
- Expired
Time string - Expired time of the CDH instance.
- Host
Id string - ID of the CDH instances to be queried.
- Host
Name string - Name of the CDH instances to be queried.
- Host
Resources List<GetCdh Instances Cdh Instance List Host Resource> - An information list of host resource. Each element contains the following attributes:
- Host
State string - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - Host
Type string - Type of the CDH instance.
- Prepaid
Renew stringFlag - Auto renewal flag.
- Project
Id double - The project CDH belongs to.
- Availability
Zone string - The available zone that the CDH instance locates at.
- Cage
Id string - Cage ID of the CDH instance. This parameter is only valid for CDH instances in the cages of finance availability zones.
- Charge
Type string - The charge type of the CDH instance.
- Create
Time string - Creation time of the CDH instance.
- Cvm
Instance []stringIds - Id of CVM instances that have been created on the CDH instance.
- Expired
Time string - Expired time of the CDH instance.
- Host
Id string - ID of the CDH instances to be queried.
- Host
Name string - Name of the CDH instances to be queried.
- Host
Resources []GetCdh Instances Cdh Instance List Host Resource - An information list of host resource. Each element contains the following attributes:
- Host
State string - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - Host
Type string - Type of the CDH instance.
- Prepaid
Renew stringFlag - Auto renewal flag.
- Project
Id float64 - The project CDH belongs to.
- availability
Zone String - The available zone that the CDH instance locates at.
- cage
Id String - Cage ID of the CDH instance. This parameter is only valid for CDH instances in the cages of finance availability zones.
- charge
Type String - The charge type of the CDH instance.
- create
Time String - Creation time of the CDH instance.
- cvm
Instance List<String>Ids - Id of CVM instances that have been created on the CDH instance.
- expired
Time String - Expired time of the CDH instance.
- host
Id String - ID of the CDH instances to be queried.
- host
Name String - Name of the CDH instances to be queried.
- host
Resources List<GetCdh Instances Cdh Instance List Host Resource> - An information list of host resource. Each element contains the following attributes:
- host
State String - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - host
Type String - Type of the CDH instance.
- prepaid
Renew StringFlag - Auto renewal flag.
- project
Id Double - The project CDH belongs to.
- availability
Zone string - The available zone that the CDH instance locates at.
- cage
Id string - Cage ID of the CDH instance. This parameter is only valid for CDH instances in the cages of finance availability zones.
- charge
Type string - The charge type of the CDH instance.
- create
Time string - Creation time of the CDH instance.
- cvm
Instance string[]Ids - Id of CVM instances that have been created on the CDH instance.
- expired
Time string - Expired time of the CDH instance.
- host
Id string - ID of the CDH instances to be queried.
- host
Name string - Name of the CDH instances to be queried.
- host
Resources GetCdh Instances Cdh Instance List Host Resource[] - An information list of host resource. Each element contains the following attributes:
- host
State string - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - host
Type string - Type of the CDH instance.
- prepaid
Renew stringFlag - Auto renewal flag.
- project
Id number - The project CDH belongs to.
- availability_
zone str - The available zone that the CDH instance locates at.
- cage_
id str - Cage ID of the CDH instance. This parameter is only valid for CDH instances in the cages of finance availability zones.
- charge_
type str - The charge type of the CDH instance.
- create_
time str - Creation time of the CDH instance.
- cvm_
instance_ Sequence[str]ids - Id of CVM instances that have been created on the CDH instance.
- expired_
time str - Expired time of the CDH instance.
- host_
id str - ID of the CDH instances to be queried.
- host_
name str - Name of the CDH instances to be queried.
- host_
resources Sequence[GetCdh Instances Cdh Instance List Host Resource] - An information list of host resource. Each element contains the following attributes:
- host_
state str - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - host_
type str - Type of the CDH instance.
- prepaid_
renew_ strflag - Auto renewal flag.
- project_
id float - The project CDH belongs to.
- availability
Zone String - The available zone that the CDH instance locates at.
- cage
Id String - Cage ID of the CDH instance. This parameter is only valid for CDH instances in the cages of finance availability zones.
- charge
Type String - The charge type of the CDH instance.
- create
Time String - Creation time of the CDH instance.
- cvm
Instance List<String>Ids - Id of CVM instances that have been created on the CDH instance.
- expired
Time String - Expired time of the CDH instance.
- host
Id String - ID of the CDH instances to be queried.
- host
Name String - Name of the CDH instances to be queried.
- host
Resources List<Property Map> - An information list of host resource. Each element contains the following attributes:
- host
State String - State of the CDH instances to be queried. Valid values:
PENDING,LAUNCH_FAILURE,RUNNING,EXPIRED. - host
Type String - Type of the CDH instance.
- prepaid
Renew StringFlag - Auto renewal flag.
- project
Id Number - The project CDH belongs to.
GetCdhInstancesCdhInstanceListHostResource
- Cpu
Available doubleNum - The number of available CPU cores of the instance.
- Cpu
Total doubleNum - The number of total CPU cores of the instance.
- Disk
Available doubleSize - Instance disk available capacity, unit in GB.
- Disk
Total doubleSize - Instance disk total capacity, unit in GB.
- Disk
Type string - Type of the disk.
- Memory
Available doubleSize - Instance memory available capacity, unit in GB.
- Memory
Total doubleSize - Instance memory total capacity, unit in GB.
- Cpu
Available float64Num - The number of available CPU cores of the instance.
- Cpu
Total float64Num - The number of total CPU cores of the instance.
- Disk
Available float64Size - Instance disk available capacity, unit in GB.
- Disk
Total float64Size - Instance disk total capacity, unit in GB.
- Disk
Type string - Type of the disk.
- Memory
Available float64Size - Instance memory available capacity, unit in GB.
- Memory
Total float64Size - Instance memory total capacity, unit in GB.
- cpu
Available DoubleNum - The number of available CPU cores of the instance.
- cpu
Total DoubleNum - The number of total CPU cores of the instance.
- disk
Available DoubleSize - Instance disk available capacity, unit in GB.
- disk
Total DoubleSize - Instance disk total capacity, unit in GB.
- disk
Type String - Type of the disk.
- memory
Available DoubleSize - Instance memory available capacity, unit in GB.
- memory
Total DoubleSize - Instance memory total capacity, unit in GB.
- cpu
Available numberNum - The number of available CPU cores of the instance.
- cpu
Total numberNum - The number of total CPU cores of the instance.
- disk
Available numberSize - Instance disk available capacity, unit in GB.
- disk
Total numberSize - Instance disk total capacity, unit in GB.
- disk
Type string - Type of the disk.
- memory
Available numberSize - Instance memory available capacity, unit in GB.
- memory
Total numberSize - Instance memory total capacity, unit in GB.
- cpu_
available_ floatnum - The number of available CPU cores of the instance.
- cpu_
total_ floatnum - The number of total CPU cores of the instance.
- disk_
available_ floatsize - Instance disk available capacity, unit in GB.
- disk_
total_ floatsize - Instance disk total capacity, unit in GB.
- disk_
type str - Type of the disk.
- memory_
available_ floatsize - Instance memory available capacity, unit in GB.
- memory_
total_ floatsize - Instance memory total capacity, unit in GB.
- cpu
Available NumberNum - The number of available CPU cores of the instance.
- cpu
Total NumberNum - The number of total CPU cores of the instance.
- disk
Available NumberSize - Instance disk available capacity, unit in GB.
- disk
Total NumberSize - Instance disk total capacity, unit in GB.
- disk
Type String - Type of the disk.
- memory
Available NumberSize - Instance memory available capacity, unit in GB.
- memory
Total NumberSize - Instance memory total capacity, unit in GB.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
