1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getContainerClusterInstances
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.getContainerClusterInstances

Explore with Pulumi AI

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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo_instance = tencentcloud.get_container_cluster_instances(cluster_id="cls-abcdefg")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  fooInstance:
    fn::invoke:
      function: tencentcloud:getContainerClusterInstances
      arguments:
        clusterId: cls-abcdefg
Copy

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>
Copy
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]
Copy
func GetContainerClusterInstances(ctx *Context, args *GetContainerClusterInstancesArgs, opts ...InvokeOption) (*GetContainerClusterInstancesResult, error)
func GetContainerClusterInstancesOutput(ctx *Context, args *GetContainerClusterInstancesOutputArgs, opts ...InvokeOption) GetContainerClusterInstancesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetContainerClusterInstancesResult> getContainerClusterInstances(GetContainerClusterInstancesArgs args, InvokeOptions options)
public static Output<GetContainerClusterInstancesResult> getContainerClusterInstances(GetContainerClusterInstancesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getContainerClusterInstances:getContainerClusterInstances
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterId This property is required. string
An ID identify the cluster, like cls-xxxxxx.
Id string
Limit double
An int variable describe how many instances in return at most.
ClusterId This property is required. string
An ID identify the cluster, like cls-xxxxxx.
Id string
Limit float64
An int variable describe how many instances in return at most.
clusterId This property is required. String
An ID identify the cluster, like cls-xxxxxx.
id String
limit Double
An int variable describe how many instances in return at most.
clusterId This property is required. string
An ID identify the cluster, like cls-xxxxxx.
id string
limit number
An int variable describe how many instances in return at most.
cluster_id This property is required. str
An ID identify the cluster, like cls-xxxxxx.
id str
limit float
An int variable describe how many instances in return at most.
clusterId This property is required. String
An ID identify the cluster, like cls-xxxxxx.
id String
limit Number
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<GetContainerClusterInstancesNode>
An information list of kubernetes instances.
TotalCount double
Number of instances.
Limit double
ClusterId string
Id string
Nodes []GetContainerClusterInstancesNode
An information list of kubernetes instances.
TotalCount float64
Number of instances.
Limit float64
clusterId String
id String
nodes List<GetContainerClusterInstancesNode>
An information list of kubernetes instances.
totalCount Double
Number of instances.
limit Double
clusterId string
id string
nodes GetContainerClusterInstancesNode[]
An information list of kubernetes instances.
totalCount number
Number of instances.
limit number
cluster_id str
id str
nodes Sequence[GetContainerClusterInstancesNode]
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 This property is required. string
Describe the reason when node is in abnormal state(if it was).
Cpu This property is required. double
Describe the cpu of the node.
InstanceId This property is required. string
An id identify the node, provided by cvm.
IsNormal This property is required. double
Describe whether the node is normal.
LanIp This property is required. string
Describe the LAN IP of the node.
Mem This property is required. double
Describe the memory of the node.
WanIp This property is required. string
Describe the WAN IP of the node.
AbnormalReason This property is required. string
Describe the reason when node is in abnormal state(if it was).
Cpu This property is required. float64
Describe the cpu of the node.
InstanceId This property is required. string
An id identify the node, provided by cvm.
IsNormal This property is required. float64
Describe whether the node is normal.
LanIp This property is required. string
Describe the LAN IP of the node.
Mem This property is required. float64
Describe the memory of the node.
WanIp This property is required. string
Describe the WAN IP of the node.
abnormalReason This property is required. String
Describe the reason when node is in abnormal state(if it was).
cpu This property is required. Double
Describe the cpu of the node.
instanceId This property is required. String
An id identify the node, provided by cvm.
isNormal This property is required. Double
Describe whether the node is normal.
lanIp This property is required. String
Describe the LAN IP of the node.
mem This property is required. Double
Describe the memory of the node.
wanIp This property is required. String
Describe the WAN IP of the node.
abnormalReason This property is required. string
Describe the reason when node is in abnormal state(if it was).
cpu This property is required. number
Describe the cpu of the node.
instanceId This property is required. string
An id identify the node, provided by cvm.
isNormal This property is required. number
Describe whether the node is normal.
lanIp This property is required. string
Describe the LAN IP of the node.
mem This property is required. number
Describe the memory of the node.
wanIp This property is required. string
Describe the WAN IP of the node.
abnormal_reason This property is required. str
Describe the reason when node is in abnormal state(if it was).
cpu This property is required. float
Describe the cpu of the node.
instance_id This property is required. str
An id identify the node, provided by cvm.
is_normal This property is required. float
Describe whether the node is normal.
lan_ip This property is required. str
Describe the LAN IP of the node.
mem This property is required. float
Describe the memory of the node.
wan_ip This property is required. str
Describe the WAN IP of the node.
abnormalReason This property is required. String
Describe the reason when node is in abnormal state(if it was).
cpu This property is required. Number
Describe the cpu of the node.
instanceId This property is required. String
An id identify the node, provided by cvm.
isNormal This property is required. Number
Describe whether the node is normal.
lanIp This property is required. String
Describe the LAN IP of the node.
mem This property is required. Number
Describe the memory of the node.
wanIp This property is required. 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 tencentcloud Terraform Provider.