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

tencentcloud.getContainerClusters

Explore with Pulumi AI

tencentcloud logo
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:

    ClusterId string
    An id identify the cluster, like cls-xxxxxx.
    Id string
    Limit double
    An int variable describe how many cluster in return at most.
    ClusterId string
    An id identify the cluster, like cls-xxxxxx.
    Id string
    Limit float64
    An int variable describe how many cluster in return at most.
    clusterId String
    An id identify the cluster, like cls-xxxxxx.
    id String
    limit Double
    An int variable describe how many cluster in return at most.
    clusterId string
    An id identify the cluster, like cls-xxxxxx.
    id string
    limit number
    An int variable describe how many cluster in return at most.
    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.
    clusterId String
    An id identify the cluster, like cls-xxxxxx.
    id String
    limit Number
    An int variable describe how many cluster in return at most.

    getContainerClusters Result

    The following output properties are available:

    Clusters List<GetContainerClustersCluster>
    An information list of kubernetes clusters.
    Id string
    TotalCount double
    Number of clusters.
    ClusterId string
    An id identify the cluster, like cls-xxxxxx.
    Limit double
    Clusters []GetContainerClustersCluster
    An information list of kubernetes clusters.
    Id string
    TotalCount float64
    Number of clusters.
    ClusterId string
    An id identify the cluster, like cls-xxxxxx.
    Limit float64
    clusters List<GetContainerClustersCluster>
    An information list of kubernetes clusters.
    id String
    totalCount Double
    Number of clusters.
    clusterId String
    An id identify the cluster, like cls-xxxxxx.
    limit Double
    clusters GetContainerClustersCluster[]
    An information list of kubernetes clusters.
    id string
    totalCount number
    Number of clusters.
    clusterId string
    An id identify the cluster, like cls-xxxxxx.
    limit number
    clusters Sequence[GetContainerClustersCluster]
    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
    totalCount Number
    Number of clusters.
    clusterId String
    An id identify the cluster, like cls-xxxxxx.
    limit Number

    Supporting Types

    GetContainerClustersCluster

    ClusterId string
    An id identify the cluster, like cls-xxxxxx.
    ClusterName string
    Name the cluster.
    Description string
    The description of the cluster.
    KubernetesVersion string
    Describe the running kubernetes version on the cluster.
    NodesNum double
    Describe how many cluster instances in the cluster.
    NodesStatus string
    Describe the current status of the instances in the cluster.
    SecurityCertificationAuthority string
    Describe the certificate string needed for using kubectl to access to kubernetes.
    SecurityClusterExternalEndpoint string
    Describe the address needed for using kubectl to access to kubernetes.
    SecurityPassword string
    Describe the password needed for using kubectl to access to kubernetes.
    SecurityUsername string
    Describe the username needed for using kubectl to access to kubernetes.
    TotalCpu double
    Describe the total cpu of each instance in the cluster.
    TotalMem double
    Describe the total memory of each instance in the cluster.
    ClusterId string
    An id identify the cluster, like cls-xxxxxx.
    ClusterName string
    Name the cluster.
    Description string
    The description of the cluster.
    KubernetesVersion string
    Describe the running kubernetes version on the cluster.
    NodesNum float64
    Describe how many cluster instances in the cluster.
    NodesStatus string
    Describe the current status of the instances in the cluster.
    SecurityCertificationAuthority string
    Describe the certificate string needed for using kubectl to access to kubernetes.
    SecurityClusterExternalEndpoint string
    Describe the address needed for using kubectl to access to kubernetes.
    SecurityPassword string
    Describe the password needed for using kubectl to access to kubernetes.
    SecurityUsername string
    Describe the username needed for using kubectl to access to kubernetes.
    TotalCpu float64
    Describe the total cpu of each instance in the cluster.
    TotalMem float64
    Describe the total memory of each instance in the cluster.
    clusterId String
    An id identify the cluster, like cls-xxxxxx.
    clusterName String
    Name the cluster.
    description String
    The description of the cluster.
    kubernetesVersion String
    Describe the running kubernetes version on the cluster.
    nodesNum Double
    Describe how many cluster instances in the cluster.
    nodesStatus String
    Describe the current status of the instances in the cluster.
    securityCertificationAuthority String
    Describe the certificate string needed for using kubectl to access to kubernetes.
    securityClusterExternalEndpoint String
    Describe the address needed for using kubectl to access to kubernetes.
    securityPassword String
    Describe the password needed for using kubectl to access to kubernetes.
    securityUsername String
    Describe the username needed for using kubectl to access to kubernetes.
    totalCpu Double
    Describe the total cpu of each instance in the cluster.
    totalMem Double
    Describe the total memory of each instance in the cluster.
    clusterId string
    An id identify the cluster, like cls-xxxxxx.
    clusterName string
    Name the cluster.
    description string
    The description of the cluster.
    kubernetesVersion string
    Describe the running kubernetes version on the cluster.
    nodesNum number
    Describe how many cluster instances in the cluster.
    nodesStatus string
    Describe the current status of the instances in the cluster.
    securityCertificationAuthority string
    Describe the certificate string needed for using kubectl to access to kubernetes.
    securityClusterExternalEndpoint string
    Describe the address needed for using kubectl to access to kubernetes.
    securityPassword string
    Describe the password needed for using kubectl to access to kubernetes.
    securityUsername string
    Describe the username needed for using kubectl to access to kubernetes.
    totalCpu number
    Describe the total cpu of each instance in the cluster.
    totalMem 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.
    security_certification_authority str
    Describe the certificate string needed for using kubectl to access to kubernetes.
    security_cluster_external_endpoint str
    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.
    clusterId String
    An id identify the cluster, like cls-xxxxxx.
    clusterName String
    Name the cluster.
    description String
    The description of the cluster.
    kubernetesVersion String
    Describe the running kubernetes version on the cluster.
    nodesNum Number
    Describe how many cluster instances in the cluster.
    nodesStatus String
    Describe the current status of the instances in the cluster.
    securityCertificationAuthority String
    Describe the certificate string needed for using kubectl to access to kubernetes.
    securityClusterExternalEndpoint String
    Describe the address needed for using kubectl to access to kubernetes.
    securityPassword String
    Describe the password needed for using kubectl to access to kubernetes.
    securityUsername String
    Describe the username needed for using kubectl to access to kubernetes.
    totalCpu Number
    Describe the total cpu of each instance in the cluster.
    totalMem 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 logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack