GetServerlessKubernetesClusters

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

NOTE: Available in 1.58.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var k8sClusters = Output.Create(AliCloud.CS.GetServerlessKubernetesClusters.InvokeAsync(new AliCloud.CS.GetServerlessKubernetesClustersArgs
        {
            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_serverless_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.getServerlessKubernetesClusters({
    nameRegex: "my-first-k8s",
    outputFile: "my-first-k8s-json",
}, { async: true }));

export const output = k8sClusters.clusters;

Using GetServerlessKubernetesClusters

function getServerlessKubernetesClusters(args: GetServerlessKubernetesClustersArgs, opts?: InvokeOptions): Promise<GetServerlessKubernetesClustersResult>
function  get_serverless_kubernetes_clusters(enable_details=None, ids=None, name_regex=None, output_file=None, opts=None)
func GetServerlessKubernetesClusters(ctx *Context, args *GetServerlessKubernetesClustersArgs, opts ...InvokeOption) (*GetServerlessKubernetesClustersResult, error)
public static class GetServerlessKubernetesClusters {
    public static Task<GetServerlessKubernetesClustersResult> InvokeAsync(GetServerlessKubernetesClustersArgs 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

GetServerlessKubernetesClusters Result

The following output properties are available:

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

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 []GetServerlessKubernetesClustersCluster

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 GetServerlessKubernetesClustersCluster[]

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[GetServerlessKubernetesClustersCluster]

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

GetServerlessKubernetesClustersCluster

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Connections Pulumi.AliCloud.CS.Inputs.GetServerlessKubernetesClustersClusterConnectionsArgs

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

DeletionProtection bool

Whether the cluster support delete protection.

EndpointPublicAccessEnabled bool
Id string

The ID of the container cluster.

Name string

The name of the container cluster.

NatGatewayId string

The ID of nat gateway used to launch kubernetes cluster.

SecurityGroupId string

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

Tags Dictionary<string, object>
VpcId string

The ID of VPC where the current cluster is located.

VswitchId string

The ID of VSwitch where the current cluster is located.

Connections GetServerlessKubernetesClustersClusterConnections

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

DeletionProtection bool

Whether the cluster support delete protection.

EndpointPublicAccessEnabled bool
Id string

The ID of the container cluster.

Name string

The name of the container cluster.

NatGatewayId string

The ID of nat gateway used to launch kubernetes cluster.

SecurityGroupId string

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

Tags map[string]interface{}
VpcId string

The ID of VPC where the current cluster is located.

VswitchId string

The ID of VSwitch where the current cluster is located.

connections GetServerlessKubernetesClustersClusterConnections

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

deletionProtection boolean

Whether the cluster support delete protection.

endpointPublicAccessEnabled boolean
id string

The ID of the container cluster.

name string

The name of the container cluster.

natGatewayId string

The ID of nat gateway used to launch kubernetes cluster.

securityGroupId string

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

tags {[key: string]: any}
vpcId string

The ID of VPC where the current cluster is located.

vswitchId string

The ID of VSwitch where the current cluster is located.

connections Dict[GetServerlessKubernetesClustersClusterConnections]

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

deletion_protection bool

Whether the cluster support delete protection.

endpoint_public_access_enabled bool
id str

The ID of the container cluster.

name str

The name of the container cluster.

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 is located.

tags Dict[str, Any]
vpc_id str

The ID of VPC where the current cluster is located.

vswitch_id str

The ID of VSwitch where the current cluster is located.

GetServerlessKubernetesClustersClusterConnections

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.

ApiServerInternet string

API Server Internet endpoint.

ApiServerIntranet string

API Server Intranet endpoint.

MasterPublicIp string

Master node SSH IP address.

apiServerInternet string

API Server Internet endpoint.

apiServerIntranet string

API Server Intranet endpoint.

masterPublicIp string

Master node SSH IP address.

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.

Package Details

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