Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.cs.getEdgeKubernetesClusters
Explore with Pulumi AI
This data source provides a list Container Service Edge Kubernetes Clusters on Alibaba Cloud.
NOTE: Available in v1.103.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Declare the data source
const k8sClusters = alicloud.cs.getEdgeKubernetesClusters({
    nameRegex: "my-first-k8s",
    outputFile: "my-first-k8s-json",
});
export const output = k8sClusters.then(k8sClusters => k8sClusters.clusters);
import pulumi
import pulumi_alicloud as alicloud
# Declare the data source
k8s_clusters = alicloud.cs.get_edge_kubernetes_clusters(name_regex="my-first-k8s",
    output_file="my-first-k8s-json")
pulumi.export("output", k8s_clusters.clusters)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Declare the data source
		k8sClusters, err := cs.GetEdgeKubernetesClusters(ctx, &cs.GetEdgeKubernetesClustersArgs{
			NameRegex:  pulumi.StringRef("my-first-k8s"),
			OutputFile: pulumi.StringRef("my-first-k8s-json"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("output", k8sClusters.Clusters)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    // Declare the data source
    var k8sClusters = AliCloud.CS.GetEdgeKubernetesClusters.Invoke(new()
    {
        NameRegex = "my-first-k8s",
        OutputFile = "my-first-k8s-json",
    });
    return new Dictionary<string, object?>
    {
        ["output"] = k8sClusters.Apply(getEdgeKubernetesClustersResult => getEdgeKubernetesClustersResult.Clusters),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cs.CsFunctions;
import com.pulumi.alicloud.cs.inputs.GetEdgeKubernetesClustersArgs;
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) {
        // Declare the data source
        final var k8sClusters = CsFunctions.getEdgeKubernetesClusters(GetEdgeKubernetesClustersArgs.builder()
            .nameRegex("my-first-k8s")
            .outputFile("my-first-k8s-json")
            .build());
        ctx.export("output", k8sClusters.applyValue(getEdgeKubernetesClustersResult -> getEdgeKubernetesClustersResult.clusters()));
    }
}
variables:
  # Declare the data source
  k8sClusters:
    fn::invoke:
      Function: alicloud:cs:getEdgeKubernetesClusters
      Arguments:
        nameRegex: my-first-k8s
        outputFile: my-first-k8s-json
outputs:
  output: ${k8sClusters.clusters}
Using getEdgeKubernetesClusters
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 getEdgeKubernetesClusters(args: GetEdgeKubernetesClustersArgs, opts?: InvokeOptions): Promise<GetEdgeKubernetesClustersResult>
function getEdgeKubernetesClustersOutput(args: GetEdgeKubernetesClustersOutputArgs, opts?: InvokeOptions): Output<GetEdgeKubernetesClustersResult>def get_edge_kubernetes_clusters(enable_details: Optional[bool] = None,
                                 ids: Optional[Sequence[str]] = None,
                                 name_regex: Optional[str] = None,
                                 output_file: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetEdgeKubernetesClustersResult
def get_edge_kubernetes_clusters_output(enable_details: Optional[pulumi.Input[bool]] = None,
                                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 name_regex: Optional[pulumi.Input[str]] = None,
                                 output_file: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetEdgeKubernetesClustersResult]func GetEdgeKubernetesClusters(ctx *Context, args *GetEdgeKubernetesClustersArgs, opts ...InvokeOption) (*GetEdgeKubernetesClustersResult, error)
func GetEdgeKubernetesClustersOutput(ctx *Context, args *GetEdgeKubernetesClustersOutputArgs, opts ...InvokeOption) GetEdgeKubernetesClustersResultOutput> Note: This function is named GetEdgeKubernetesClusters in the Go SDK.
public static class GetEdgeKubernetesClusters 
{
    public static Task<GetEdgeKubernetesClustersResult> InvokeAsync(GetEdgeKubernetesClustersArgs args, InvokeOptions? opts = null)
    public static Output<GetEdgeKubernetesClustersResult> Invoke(GetEdgeKubernetesClustersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEdgeKubernetesClustersResult> getEdgeKubernetesClusters(GetEdgeKubernetesClustersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:cs/getEdgeKubernetesClusters:getEdgeKubernetesClusters
  arguments:
    # arguments dictionaryThe 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 - File name where to save data source results (after running 
pulumi preview). 
- Enable
Details bool - Ids []string
 - Cluster IDs to filter.
 - Name
Regex string - A regex string to filter results by cluster name.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). 
- enable
Details Boolean - ids List<String>
 - Cluster IDs to filter.
 - name
Regex String - A regex string to filter results by cluster name.
 - output
File String - File name where to save data source results (after running 
pulumi preview). 
- enable
Details boolean - ids string[]
 - Cluster IDs to filter.
 - name
Regex string - A regex string to filter results by cluster name.
 - output
File string - File name where to save data source results (after running 
pulumi preview). 
- enable_
details bool - ids Sequence[str]
 - Cluster IDs to filter.
 - name_
regex str - A regex string to filter results by cluster name.
 - output_
file str - File name where to save data source results (after running 
pulumi preview). 
- enable
Details Boolean - ids List<String>
 - Cluster IDs to filter.
 - name
Regex String - A regex string to filter results by cluster name.
 - output
File String - File name where to save data source results (after running 
pulumi preview). 
getEdgeKubernetesClusters Result
The following output properties are available:
- Clusters
List<Pulumi.
Ali Cloud. CS. Outputs. Get Edge 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
Edge 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
List<Get
Edge 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 Boolean - name
Regex String - output
File String 
- clusters
Get
Edge 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
Sequence[Get
Edge 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 Sequence[str]
 - A list of matched Kubernetes clusters' ids.
 - names Sequence[str]
 - A list of matched Kubernetes clusters' names.
 - enable_
details bool - name_
regex str - output_
file str 
- clusters List<Property Map>
 - 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 Boolean - name
Regex String - output
File String 
Supporting Types
GetEdgeKubernetesClustersCluster    
- Availability
Zone string - The ID of availability zone.
 - Connections
Pulumi.
Ali Cloud. CS. Inputs. Get Edge 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 List<Pulumi.Ali Cloud. CS. Inputs. Get Edge 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
Edge 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 []GetEdge 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
Edge 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 List<GetEdge 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
Edge 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 GetEdge 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
Get
Edge 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 Sequence[GetEdge 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 Property Map
 - 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<Property Map> - List of cluster worker nodes. It contains several attributes to 
Block Nodes. 
GetEdgeKubernetesClustersClusterConnections     
- Api
Server stringInternet  - API Server Internet endpoint.
 - Api
Server stringIntranet  - API Server Intranet endpoint.
 
- Api
Server stringInternet  - API Server Internet endpoint.
 - Api
Server stringIntranet  - API Server Intranet endpoint.
 
- api
Server StringInternet  - API Server Internet endpoint.
 - api
Server StringIntranet  - API Server Intranet endpoint.
 
- api
Server stringInternet  - API Server Internet endpoint.
 - api
Server stringIntranet  - API Server Intranet endpoint.
 
- api_
server_ strinternet  - API Server Internet endpoint.
 - api_
server_ strintranet  - API Server Intranet endpoint.
 
- api
Server StringInternet  - API Server Internet endpoint.
 - api
Server StringIntranet  - API Server Intranet endpoint.
 
GetEdgeKubernetesClustersClusterWorkerNode      
- id str
 - ID of the node.
 - name str
 - Node name.
 - private_
ip str - The private IP address of node.
 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.