GetManagedKubernetesClusters

This data source provides a list Container Service Managed Kubernetes Clusters on Alibaba Cloud.

NOTE: Available in v1.35.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var k8sClusters = Output.Create(AliCloud.CS.GetManagedKubernetesClusters.InvokeAsync(new AliCloud.CS.GetManagedKubernetesClustersArgs
        {
            NameRegex = "my-first-k8s",
            OutputFile = "my-first-k8s-json",
        }));
        this.Output = k8sClusters.Apply(k8sClusters => k8sClusters.Clusters);
    }

    [Output("output")]
    public Output<string> Output { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

k8s_clusters = alicloud.cs.get_managed_kubernetes_clusters(name_regex="my-first-k8s",
    output_file="my-first-k8s-json")
pulumi.export("output", k8s_clusters.clusters)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// Declare the data source
const k8sClusters = pulumi.output(alicloud.cs.getManagedKubernetesClusters({
    nameRegex: "my-first-k8s",
    outputFile: "my-first-k8s-json",
}, { async: true }));

export const output = k8sClusters.clusters;

Using GetManagedKubernetesClusters

function getManagedKubernetesClusters(args: GetManagedKubernetesClustersArgs, opts?: InvokeOptions): Promise<GetManagedKubernetesClustersResult>
function  get_managed_kubernetes_clusters(enable_details=None, ids=None, name_regex=None, output_file=None, opts=None)
func GetManagedKubernetesClusters(ctx *Context, args *GetManagedKubernetesClustersArgs, opts ...InvokeOption) (*GetManagedKubernetesClustersResult, error)
public static class GetManagedKubernetesClusters {
    public static Task<GetManagedKubernetesClustersResult> InvokeAsync(GetManagedKubernetesClustersArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

EnableDetails bool
Ids List<string>

Cluster IDs to filter.

NameRegex string

A regex string to filter results by cluster name.

OutputFile string
EnableDetails bool
Ids []string

Cluster IDs to filter.

NameRegex string

A regex string to filter results by cluster name.

OutputFile string
enableDetails boolean
ids string[]

Cluster IDs to filter.

nameRegex string

A regex string to filter results by cluster name.

outputFile string
enable_details bool
ids List[str]

Cluster IDs to filter.

name_regex str

A regex string to filter results by cluster name.

output_file str

GetManagedKubernetesClusters Result

The following output properties are available:

Clusters List<Pulumi.AliCloud.CS.Outputs.GetManagedKubernetesClustersCluster>

A list of matched Kubernetes clusters. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of matched Kubernetes clusters’ ids.

Names List<string>

A list of matched Kubernetes clusters’ names.

EnableDetails bool
NameRegex string
OutputFile string
Clusters []GetManagedKubernetesClustersCluster

A list of matched Kubernetes clusters. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of matched Kubernetes clusters’ ids.

Names []string

A list of matched Kubernetes clusters’ names.

EnableDetails bool
NameRegex string
OutputFile string
clusters GetManagedKubernetesClustersCluster[]

A list of matched Kubernetes clusters. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of matched Kubernetes clusters’ ids.

names string[]

A list of matched Kubernetes clusters’ names.

enableDetails boolean
nameRegex string
outputFile string
clusters List[GetManagedKubernetesClustersCluster]

A list of matched Kubernetes clusters. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of matched Kubernetes clusters’ ids.

names List[str]

A list of matched Kubernetes clusters’ names.

enable_details bool
name_regex str
output_file str

Supporting Types

GetManagedKubernetesClustersCluster

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

AvailabilityZone string

The ID of availability zone.

Connections Pulumi.AliCloud.CS.Inputs.GetManagedKubernetesClustersClusterConnectionsArgs

Map of kubernetes cluster connection information. It contains several attributes to Block Connections.

Id string

ID of the node.

Name string

Node name.

NatGatewayId string

The ID of nat gateway used to launch kubernetes cluster.

SecurityGroupId string

The ID of security group where the current cluster worker node is located.

VpcId string

The ID of VPC where the current cluster is located.

WorkerNodes List<Pulumi.AliCloud.CS.Inputs.GetManagedKubernetesClustersClusterWorkerNodeArgs>

List of cluster worker nodes. It contains several attributes to Block Nodes.

AvailabilityZone string

The ID of availability zone.

Connections GetManagedKubernetesClustersClusterConnections

Map of kubernetes cluster connection information. It contains several attributes to Block Connections.

Id string

ID of the node.

Name string

Node name.

NatGatewayId string

The ID of nat gateway used to launch kubernetes cluster.

SecurityGroupId string

The ID of security group where the current cluster worker node is located.

VpcId string

The ID of VPC where the current cluster is located.

WorkerNodes []GetManagedKubernetesClustersClusterWorkerNode

List of cluster worker nodes. It contains several attributes to Block Nodes.

availabilityZone string

The ID of availability zone.

connections GetManagedKubernetesClustersClusterConnections

Map of kubernetes cluster connection information. It contains several attributes to Block Connections.

id string

ID of the node.

name string

Node name.

natGatewayId string

The ID of nat gateway used to launch kubernetes cluster.

securityGroupId string

The ID of security group where the current cluster worker node is located.

vpcId string

The ID of VPC where the current cluster is located.

workerNodes GetManagedKubernetesClustersClusterWorkerNode[]

List of cluster worker nodes. It contains several attributes to Block Nodes.

availability_zone str

The ID of availability zone.

connections Dict[GetManagedKubernetesClustersClusterConnections]

Map of kubernetes cluster connection information. It contains several attributes to Block Connections.

id str

ID of the node.

name str

Node name.

nat_gateway_id str

The ID of nat gateway used to launch kubernetes cluster.

security_group_id str

The ID of security group where the current cluster worker node is located.

vpc_id str

The ID of VPC where the current cluster is located.

worker_nodes List[GetManagedKubernetesClustersClusterWorkerNode]

List of cluster worker nodes. It contains several attributes to Block Nodes.

GetManagedKubernetesClustersClusterConnections

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

ApiServerInternet string

API Server Internet endpoint.

ApiServerIntranet string

API Server Intranet endpoint.

MasterPublicIp string

Master node SSH IP address.

ServiceDomain string

Service Access Domain.

ApiServerInternet string

API Server Internet endpoint.

ApiServerIntranet string

API Server Intranet endpoint.

MasterPublicIp string

Master node SSH IP address.

ServiceDomain string

Service Access Domain.

apiServerInternet string

API Server Internet endpoint.

apiServerIntranet string

API Server Intranet endpoint.

masterPublicIp string

Master node SSH IP address.

serviceDomain string

Service Access Domain.

api_server_internet str

API Server Internet endpoint.

api_server_intranet str

API Server Intranet endpoint.

master_public_ip str

Master node SSH IP address.

service_domain str

Service Access Domain.

GetManagedKubernetesClustersClusterWorkerNode

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Id string

ID of the node.

Name string

Node name.

PrivateIp string

The private IP address of node.

Id string

ID of the node.

Name string

Node name.

PrivateIp string

The private IP address of node.

id string

ID of the node.

name string

Node name.

privateIp string

The private IP address of node.

id str

ID of the node.

name str

Node name.

private_ip str

The private IP address of node.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.