tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getContainerClusters
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Get container clusters in the current region.
Use this data source to get container clusters in the current region. By default every clusters in current region will be returned.
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 foo = tencentcloud.getContainerClusters({});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_container_clusters()
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.GetContainerClusters(ctx, &tencentcloud.GetContainerClustersArgs{}, 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 foo = Tencentcloud.GetContainerClusters.Invoke();
});
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.GetContainerClustersArgs;
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 foo = TencentcloudFunctions.getContainerClusters();
}
}
variables:
foo:
fn::invoke:
function: tencentcloud:getContainerClusters
arguments: {}
Using getContainerClusters
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 getContainerClusters(args: GetContainerClustersArgs, opts?: InvokeOptions): Promise<GetContainerClustersResult>
function getContainerClustersOutput(args: GetContainerClustersOutputArgs, opts?: InvokeOptions): Output<GetContainerClustersResult>
def get_container_clusters(cluster_id: Optional[str] = None,
id: Optional[str] = None,
limit: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerClustersResult
def get_container_clusters_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[GetContainerClustersResult]
func GetContainerClusters(ctx *Context, args *GetContainerClustersArgs, opts ...InvokeOption) (*GetContainerClustersResult, error)
func GetContainerClustersOutput(ctx *Context, args *GetContainerClustersOutputArgs, opts ...InvokeOption) GetContainerClustersResultOutput
> Note: This function is named GetContainerClusters
in the Go SDK.
public static class GetContainerClusters
{
public static Task<GetContainerClustersResult> InvokeAsync(GetContainerClustersArgs args, InvokeOptions? opts = null)
public static Output<GetContainerClustersResult> Invoke(GetContainerClustersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerClustersResult> getContainerClusters(GetContainerClustersArgs args, InvokeOptions options)
public static Output<GetContainerClustersResult> getContainerClusters(GetContainerClustersArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getContainerClusters:getContainerClusters
arguments:
# arguments dictionary
The 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 cluster in return at most.
getContainerClusters Result
The following output properties are available:
- Clusters
List<Get
Container Clusters Cluster> - An information list of kubernetes clusters.
- Id string
- Total
Count double - Number of clusters.
- Cluster
Id string - An id identify the cluster, like
cls-xxxxxx
. - Limit double
- Clusters
[]Get
Container Clusters Cluster - An information list of kubernetes clusters.
- Id string
- Total
Count float64 - Number of clusters.
- Cluster
Id string - An id identify the cluster, like
cls-xxxxxx
. - Limit float64
- clusters
List<Get
Container Clusters Cluster> - An information list of kubernetes clusters.
- id String
- total
Count Double - Number of clusters.
- cluster
Id String - An id identify the cluster, like
cls-xxxxxx
. - limit Double
- clusters
Get
Container Clusters Cluster[] - An information list of kubernetes clusters.
- id string
- total
Count number - Number of clusters.
- cluster
Id string - An id identify the cluster, like
cls-xxxxxx
. - limit number
- clusters
Sequence[Get
Container Clusters Cluster] - An information list of kubernetes clusters.
- id str
- total_
count float - Number of clusters.
- cluster_
id str - An id identify the cluster, like
cls-xxxxxx
. - limit float
- clusters List<Property Map>
- An information list of kubernetes clusters.
- id String
- total
Count Number - Number of clusters.
- cluster
Id String - An id identify the cluster, like
cls-xxxxxx
. - limit Number
Supporting Types
GetContainerClustersCluster
- Cluster
Id string - An id identify the cluster, like
cls-xxxxxx
. - Cluster
Name string - Name the cluster.
- Description string
- The description of the cluster.
- Kubernetes
Version string - Describe the running kubernetes version on the cluster.
- Nodes
Num double - Describe how many cluster instances in the cluster.
- Nodes
Status string - Describe the current status of the instances in the cluster.
- string
- Describe the certificate string needed for using kubectl to access to kubernetes.
- Security
Cluster stringExternal Endpoint - Describe the address needed for using kubectl to access to kubernetes.
- Security
Password string - Describe the password needed for using kubectl to access to kubernetes.
- Security
Username string - Describe the username needed for using kubectl to access to kubernetes.
- Total
Cpu double - Describe the total cpu of each instance in the cluster.
- Total
Mem double - Describe the total memory of each instance in the cluster.
- Cluster
Id string - An id identify the cluster, like
cls-xxxxxx
. - Cluster
Name string - Name the cluster.
- Description string
- The description of the cluster.
- Kubernetes
Version string - Describe the running kubernetes version on the cluster.
- Nodes
Num float64 - Describe how many cluster instances in the cluster.
- Nodes
Status string - Describe the current status of the instances in the cluster.
- string
- Describe the certificate string needed for using kubectl to access to kubernetes.
- Security
Cluster stringExternal Endpoint - Describe the address needed for using kubectl to access to kubernetes.
- Security
Password string - Describe the password needed for using kubectl to access to kubernetes.
- Security
Username string - Describe the username needed for using kubectl to access to kubernetes.
- Total
Cpu float64 - Describe the total cpu of each instance in the cluster.
- Total
Mem float64 - Describe the total memory of each instance in the cluster.
- cluster
Id String - An id identify the cluster, like
cls-xxxxxx
. - cluster
Name String - Name the cluster.
- description String
- The description of the cluster.
- kubernetes
Version String - Describe the running kubernetes version on the cluster.
- nodes
Num Double - Describe how many cluster instances in the cluster.
- nodes
Status String - Describe the current status of the instances in the cluster.
- String
- Describe the certificate string needed for using kubectl to access to kubernetes.
- security
Cluster StringExternal Endpoint - Describe the address needed for using kubectl to access to kubernetes.
- security
Password String - Describe the password needed for using kubectl to access to kubernetes.
- security
Username String - Describe the username needed for using kubectl to access to kubernetes.
- total
Cpu Double - Describe the total cpu of each instance in the cluster.
- total
Mem Double - Describe the total memory of each instance in the cluster.
- cluster
Id string - An id identify the cluster, like
cls-xxxxxx
. - cluster
Name string - Name the cluster.
- description string
- The description of the cluster.
- kubernetes
Version string - Describe the running kubernetes version on the cluster.
- nodes
Num number - Describe how many cluster instances in the cluster.
- nodes
Status string - Describe the current status of the instances in the cluster.
- string
- Describe the certificate string needed for using kubectl to access to kubernetes.
- security
Cluster stringExternal Endpoint - Describe the address needed for using kubectl to access to kubernetes.
- security
Password string - Describe the password needed for using kubectl to access to kubernetes.
- security
Username string - Describe the username needed for using kubectl to access to kubernetes.
- total
Cpu number - Describe the total cpu of each instance in the cluster.
- total
Mem number - Describe the total memory of each instance in the cluster.
- cluster_
id str - An id identify the cluster, like
cls-xxxxxx
. - cluster_
name str - Name the cluster.
- description str
- The description of the cluster.
- kubernetes_
version str - Describe the running kubernetes version on the cluster.
- nodes_
num float - Describe how many cluster instances in the cluster.
- nodes_
status str - Describe the current status of the instances in the cluster.
- str
- Describe the certificate string needed for using kubectl to access to kubernetes.
- security_
cluster_ strexternal_ endpoint - Describe the address needed for using kubectl to access to kubernetes.
- security_
password str - Describe the password needed for using kubectl to access to kubernetes.
- security_
username str - Describe the username needed for using kubectl to access to kubernetes.
- total_
cpu float - Describe the total cpu of each instance in the cluster.
- total_
mem float - Describe the total memory of each instance in the cluster.
- cluster
Id String - An id identify the cluster, like
cls-xxxxxx
. - cluster
Name String - Name the cluster.
- description String
- The description of the cluster.
- kubernetes
Version String - Describe the running kubernetes version on the cluster.
- nodes
Num Number - Describe how many cluster instances in the cluster.
- nodes
Status String - Describe the current status of the instances in the cluster.
- String
- Describe the certificate string needed for using kubectl to access to kubernetes.
- security
Cluster StringExternal Endpoint - Describe the address needed for using kubectl to access to kubernetes.
- security
Password String - Describe the password needed for using kubectl to access to kubernetes.
- security
Username String - Describe the username needed for using kubectl to access to kubernetes.
- total
Cpu Number - Describe the total cpu of each instance in the cluster.
- total
Mem Number - Describe the total memory of each instance in the cluster.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack