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:
- 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
GetManagedKubernetesClusters Result
The following output properties are available:
- Clusters
List<Pulumi.
Ali Cloud. CS. Outputs. Get Managed 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
Managed 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
Managed 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
Managed 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
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.
- Availability
Zone string The ID of availability zone.
- Connections
Pulumi.
Ali Cloud. CS. Inputs. Get Managed Kubernetes Clusters Cluster Connections Args Map of kubernetes cluster connection information. It contains several attributes to
Block Connections.- Id string
ID of the node.
- Name string
Node name.
- 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 worker node is located.
- Vpc
Id string The ID of VPC where the current cluster is located.
- Worker
Nodes List<Pulumi.Ali Cloud. CS. Inputs. Get Managed Kubernetes Clusters Cluster Worker Node Args> List of cluster worker nodes. It contains several attributes to
Block Nodes.
- Availability
Zone string The ID of availability zone.
- Connections
Get
Managed Kubernetes Clusters Cluster Connections Map of kubernetes cluster connection information. It contains several attributes to
Block Connections.- Id string
ID of the node.
- Name string
Node name.
- 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 worker node is located.
- Vpc
Id string The ID of VPC where the current cluster is located.
- Worker
Nodes []GetManaged Kubernetes Clusters Cluster Worker Node List of cluster worker nodes. It contains several attributes to
Block Nodes.
- availability
Zone string The ID of availability zone.
- connections
Get
Managed Kubernetes Clusters Cluster Connections Map of kubernetes cluster connection information. It contains several attributes to
Block Connections.- id string
ID of the node.
- name string
Node name.
- 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 worker node is located.
- vpc
Id string The ID of VPC where the current cluster is located.
- worker
Nodes GetManaged Kubernetes Clusters Cluster Worker Node[] List of cluster worker nodes. It contains several attributes to
Block Nodes.
- availability_
zone str The ID of availability zone.
- connections
Dict[Get
Managed Kubernetes Clusters Cluster Connections] 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_ strid The ID of nat gateway used to launch kubernetes cluster.
- security_
group_ strid 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[GetManaged Kubernetes Clusters Cluster Worker Node] 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.
- Api
Server stringInternet API Server Internet endpoint.
- Api
Server stringIntranet API Server Intranet endpoint.
- Master
Public stringIp Master node SSH IP address.
- Service
Domain string Service Access Domain.
- Api
Server stringInternet API Server Internet endpoint.
- Api
Server stringIntranet API Server Intranet endpoint.
- Master
Public stringIp Master node SSH IP address.
- Service
Domain string Service Access Domain.
- api
Server stringInternet API Server Internet endpoint.
- api
Server stringIntranet API Server Intranet endpoint.
- master
Public stringIp Master node SSH IP address.
- service
Domain string Service Access Domain.
- api_
server_ strinternet API Server Internet endpoint.
- api_
server_ strintranet API Server Intranet endpoint.
- master_
public_ strip 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.