tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
tencentcloud.getContainerClusterInstances
tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
Get all instances of the specific cluster.
Use this data source to get all instances in a specific cluster.
NOTE: It has been deprecated and replaced by tencentcloud_kubernetes_clusters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const fooInstance = tencentcloud.getContainerClusterInstances({
    clusterId: "cls-abcdefg",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo_instance = tencentcloud.get_container_cluster_instances(cluster_id="cls-abcdefg")
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.GetContainerClusterInstances(ctx, &tencentcloud.GetContainerClusterInstancesArgs{
			ClusterId: "cls-abcdefg",
		}, 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 fooInstance = Tencentcloud.GetContainerClusterInstances.Invoke(new()
    {
        ClusterId = "cls-abcdefg",
    });
});
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.GetContainerClusterInstancesArgs;
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 fooInstance = TencentcloudFunctions.getContainerClusterInstances(GetContainerClusterInstancesArgs.builder()
            .clusterId("cls-abcdefg")
            .build());
    }
}
variables:
  fooInstance:
    fn::invoke:
      function: tencentcloud:getContainerClusterInstances
      arguments:
        clusterId: cls-abcdefg
Using getContainerClusterInstances
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 getContainerClusterInstances(args: GetContainerClusterInstancesArgs, opts?: InvokeOptions): Promise<GetContainerClusterInstancesResult>
function getContainerClusterInstancesOutput(args: GetContainerClusterInstancesOutputArgs, opts?: InvokeOptions): Output<GetContainerClusterInstancesResult>def get_container_cluster_instances(cluster_id: Optional[str] = None,
                                    id: Optional[str] = None,
                                    limit: Optional[float] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetContainerClusterInstancesResult
def get_container_cluster_instances_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                    id: Optional[pulumi.Input[str]] = None,
                                    limit: Optional[pulumi.Input[float]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetContainerClusterInstancesResult]func GetContainerClusterInstances(ctx *Context, args *GetContainerClusterInstancesArgs, opts ...InvokeOption) (*GetContainerClusterInstancesResult, error)
func GetContainerClusterInstancesOutput(ctx *Context, args *GetContainerClusterInstancesOutputArgs, opts ...InvokeOption) GetContainerClusterInstancesResultOutput> Note: This function is named GetContainerClusterInstances in the Go SDK.
public static class GetContainerClusterInstances 
{
    public static Task<GetContainerClusterInstancesResult> InvokeAsync(GetContainerClusterInstancesArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerClusterInstancesResult> Invoke(GetContainerClusterInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContainerClusterInstancesResult> getContainerClusterInstances(GetContainerClusterInstancesArgs args, InvokeOptions options)
public static Output<GetContainerClusterInstancesResult> getContainerClusterInstances(GetContainerClusterInstancesArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getContainerClusterInstances:getContainerClusterInstances
  arguments:
    # arguments dictionaryThe following arguments are supported:
- cluster_id str
- An ID identify the cluster, like cls-xxxxxx.
- id str
- limit float
- An int variable describe how many instances in return at most.
getContainerClusterInstances Result
The following output properties are available:
- ClusterId string
- Id string
- Nodes
List<GetContainer Cluster Instances Node> 
- An information list of kubernetes instances.
- TotalCount double
- Number of instances.
- Limit double
- ClusterId string
- Id string
- Nodes
[]GetContainer Cluster Instances Node 
- An information list of kubernetes instances.
- TotalCount float64
- Number of instances.
- Limit float64
- clusterId String
- id String
- nodes
List<GetContainer Cluster Instances Node> 
- An information list of kubernetes instances.
- totalCount Double
- Number of instances.
- limit Double
- clusterId string
- id string
- nodes
GetContainer Cluster Instances Node[] 
- An information list of kubernetes instances.
- totalCount number
- Number of instances.
- limit number
- cluster_id str
- id str
- nodes
Sequence[GetContainer Cluster Instances Node] 
- An information list of kubernetes instances.
- total_count float
- Number of instances.
- limit float
- clusterId String
- id String
- nodes List<Property Map>
- An information list of kubernetes instances.
- totalCount Number
- Number of instances.
- limit Number
Supporting Types
GetContainerClusterInstancesNode    
- AbnormalReason string
- Describe the reason when node is in abnormal state(if it was).
- Cpu double
- Describe the cpu of the node.
- InstanceId string
- An id identify the node, provided by cvm.
- IsNormal double
- Describe whether the node is normal.
- LanIp string
- Describe the LAN IP of the node.
- Mem double
- Describe the memory of the node.
- WanIp string
- Describe the WAN IP of the node.
- AbnormalReason string
- Describe the reason when node is in abnormal state(if it was).
- Cpu float64
- Describe the cpu of the node.
- InstanceId string
- An id identify the node, provided by cvm.
- IsNormal float64
- Describe whether the node is normal.
- LanIp string
- Describe the LAN IP of the node.
- Mem float64
- Describe the memory of the node.
- WanIp string
- Describe the WAN IP of the node.
- abnormalReason String
- Describe the reason when node is in abnormal state(if it was).
- cpu Double
- Describe the cpu of the node.
- instanceId String
- An id identify the node, provided by cvm.
- isNormal Double
- Describe whether the node is normal.
- lanIp String
- Describe the LAN IP of the node.
- mem Double
- Describe the memory of the node.
- wanIp String
- Describe the WAN IP of the node.
- abnormalReason string
- Describe the reason when node is in abnormal state(if it was).
- cpu number
- Describe the cpu of the node.
- instanceId string
- An id identify the node, provided by cvm.
- isNormal number
- Describe whether the node is normal.
- lanIp string
- Describe the LAN IP of the node.
- mem number
- Describe the memory of the node.
- wanIp string
- Describe the WAN IP of the node.
- abnormal_reason str
- Describe the reason when node is in abnormal state(if it was).
- cpu float
- Describe the cpu of the node.
- instance_id str
- An id identify the node, provided by cvm.
- is_normal float
- Describe whether the node is normal.
- lan_ip str
- Describe the LAN IP of the node.
- mem float
- Describe the memory of the node.
- wan_ip str
- Describe the WAN IP of the node.
- abnormalReason String
- Describe the reason when node is in abnormal state(if it was).
- cpu Number
- Describe the cpu of the node.
- instanceId String
- An id identify the node, provided by cvm.
- isNormal Number
- Describe whether the node is normal.
- lanIp String
- Describe the LAN IP of the node.
- mem Number
- Describe the memory of the node.
- wanIp String
- Describe the WAN IP of the node.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
