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:
- Enable
Details bool - Ids List<string>
Cluster IDs to filter.
- Name
Regex string A regex string to filter results by cluster name.
- Output
File string
- Enable
Details bool - Ids []string
Cluster IDs to filter.
- Name
Regex string A regex string to filter results by cluster name.
- Output
File string
- enable
Details boolean - ids string[]
Cluster IDs to filter.
- name
Regex string A regex string to filter results by cluster name.
- output
File 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.
Ali Cloud. CS. Outputs. Get Serverless Kubernetes Clusters Cluster> 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.
- Enable
Details bool - Name
Regex string - Output
File string
- Clusters
[]Get
Serverless Kubernetes Clusters Cluster 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.
- Enable
Details bool - Name
Regex string - Output
File string
- clusters
Get
Serverless Kubernetes Clusters Cluster[] 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.
- enable
Details boolean - name
Regex string - output
File string
- clusters
List[Get
Serverless Kubernetes Clusters Cluster] 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.
Ali Cloud. CS. Inputs. Get Serverless Kubernetes Clusters Cluster Connections Args Map of serverless cluster connection information. It contains several attributes to
Block Connections.- Deletion
Protection bool Whether the cluster support delete protection.
- Endpoint
Public boolAccess Enabled - Id string
The ID of the container cluster.
- Name string
The name of the container cluster.
- Nat
Gateway stringId The ID of nat gateway used to launch kubernetes cluster.
- Security
Group stringId The ID of security group where the current cluster is located.
- Dictionary<string, object>
- Vpc
Id string The ID of VPC where the current cluster is located.
- Vswitch
Id string The ID of VSwitch where the current cluster is located.
- Connections
Get
Serverless Kubernetes Clusters Cluster Connections Map of serverless cluster connection information. It contains several attributes to
Block Connections.- Deletion
Protection bool Whether the cluster support delete protection.
- Endpoint
Public boolAccess Enabled - Id string
The ID of the container cluster.
- Name string
The name of the container cluster.
- Nat
Gateway stringId The ID of nat gateway used to launch kubernetes cluster.
- Security
Group stringId The ID of security group where the current cluster is located.
- map[string]interface{}
- Vpc
Id string The ID of VPC where the current cluster is located.
- Vswitch
Id string The ID of VSwitch where the current cluster is located.
- connections
Get
Serverless Kubernetes Clusters Cluster Connections Map of serverless cluster connection information. It contains several attributes to
Block Connections.- deletion
Protection boolean Whether the cluster support delete protection.
- endpoint
Public booleanAccess Enabled - id string
The ID of the container cluster.
- name string
The name of the container cluster.
- nat
Gateway stringId The ID of nat gateway used to launch kubernetes cluster.
- security
Group stringId The ID of security group where the current cluster is located.
- {[key: string]: any}
- vpc
Id string The ID of VPC where the current cluster is located.
- vswitch
Id string The ID of VSwitch where the current cluster is located.
- connections
Dict[Get
Serverless Kubernetes Clusters Cluster Connections] Map of serverless cluster connection information. It contains several attributes to
Block Connections.- deletion_
protection bool Whether the cluster support delete protection.
- endpoint_
public_ boolaccess_ enabled - id str
The ID of the container cluster.
- name str
The name of the container cluster.
- nat_
gateway_ strid The ID of nat gateway used to launch kubernetes cluster.
- security_
group_ strid The ID of security group where the current cluster is located.
- 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.
- Api
Server stringInternet API Server Internet endpoint.
- Api
Server stringIntranet API Server Intranet endpoint.
- Master
Public stringIp Master node SSH IP address.
- Api
Server stringInternet API Server Internet endpoint.
- Api
Server stringIntranet API Server Intranet endpoint.
- Master
Public stringIp Master node SSH IP address.
- api
Server stringInternet API Server Internet endpoint.
- api
Server stringIntranet API Server Intranet endpoint.
- master
Public stringIp Master node SSH IP address.
- api_
server_ strinternet API Server Internet endpoint.
- api_
server_ strintranet API Server Intranet endpoint.
- master_
public_ strip 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
alicloudTerraform Provider.