GetClusters

This data source provides a list of EDAS clusters in an Alibaba Cloud account according to the specified filters.

NOTE: Available in 1.82.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var clusters = Output.Create(AliCloud.Edas.GetClusters.InvokeAsync(new AliCloud.Edas.GetClustersArgs
        {
            LogicalRegionId = "cn-shenzhen:xxx",
            Ids = 
            {
                "addfs-dfsasd",
            },
            OutputFile = "clusters.txt",
        }));
        this.FirstClusterName = data.Alicloud_alikafka_consumer_groups.Clusters.Clusters[0].Cluster_name;
    }

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

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

clusters = alicloud.edas.get_clusters(logical_region_id="cn-shenzhen:xxx",
    ids=["addfs-dfsasd"],
    output_file="clusters.txt")
pulumi.export("firstClusterName", data["alicloud.actiontrail.getConsumerGroups"]["clusters"]["clusters"][0]["cluster_name"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const clusters = alicloud.edas.getClusters({
    logicalRegionId: "cn-shenzhen:xxx",
    ids: ["addfs-dfsasd"],
    outputFile: "clusters.txt",
});
export const firstClusterName = data.alicloud_alikafka_consumer_groups.clusters.clusters[0].cluster_name;

Using GetClusters

function getClusters(args: GetClustersArgs, opts?: InvokeOptions): Promise<GetClustersResult>
function  get_clusters(ids=None, logical_region_id=None, name_regex=None, output_file=None, opts=None)
func GetClusters(ctx *Context, args *GetClustersArgs, opts ...InvokeOption) (*GetClustersResult, error)
public static class GetClusters {
    public static Task<GetClustersResult> InvokeAsync(GetClustersArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

LogicalRegionId string

ID of the namespace in EDAS.

Ids List<string>

An ids string to filter results by the cluster id.

NameRegex string

A regex string to filter results by the cluster name.

OutputFile string
LogicalRegionId string

ID of the namespace in EDAS.

Ids []string

An ids string to filter results by the cluster id.

NameRegex string

A regex string to filter results by the cluster name.

OutputFile string
logicalRegionId string

ID of the namespace in EDAS.

ids string[]

An ids string to filter results by the cluster id.

nameRegex string

A regex string to filter results by the cluster name.

outputFile string
logical_region_id str

ID of the namespace in EDAS.

ids List[str]

An ids string to filter results by the cluster id.

name_regex str

A regex string to filter results by the cluster name.

output_file str

GetClusters Result

The following output properties are available:

Clusters List<Pulumi.AliCloud.Edas.Outputs.GetClustersCluster>

A list of clusters.

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of cluster IDs.

LogicalRegionId string
Names List<string>

A list of cluster names.

NameRegex string
OutputFile string
Clusters []GetClustersCluster

A list of clusters.

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of cluster IDs.

LogicalRegionId string
Names []string

A list of cluster names.

NameRegex string
OutputFile string
clusters GetClustersCluster[]

A list of clusters.

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of cluster IDs.

logicalRegionId string
names string[]

A list of cluster names.

nameRegex string
outputFile string
clusters List[GetClustersCluster]

A list of clusters.

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of cluster IDs.

logical_region_id str
names List[str]

A list of cluster names.

name_regex str
output_file str

Supporting Types

GetClustersCluster

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

ClusterId string

The ID of the cluster that you want to create the application.

ClusterName string

The name of the cluster.

ClusterType int

The type of the cluster, Valid values: 1: Swarm cluster. 2: ECS cluster. 3: Kubernates cluster.

Cpu int

The total number of CPUs in the cluster.

CpuUsed int

The number of used CPUs in the cluster.

CreateTime int

Cluster’s creation time.

Mem int

The total amount of memory in the cluser. Unit: MB.

MemUsed int

The amount of used memory in the cluser. Unit: MB.

NetworkMode int

The network type of the cluster. Valid values: 1: classic network. 2: VPC.

NodeNum int

The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster.

RegionId string

The ID of the namespace the application belongs to.

UpdateTime int

The time when the cluster was last updated.

VpcId string

The ID of the Virtual Private Cloud (VPC) for the cluster.

ClusterId string

The ID of the cluster that you want to create the application.

ClusterName string

The name of the cluster.

ClusterType int

The type of the cluster, Valid values: 1: Swarm cluster. 2: ECS cluster. 3: Kubernates cluster.

Cpu int

The total number of CPUs in the cluster.

CpuUsed int

The number of used CPUs in the cluster.

CreateTime int

Cluster’s creation time.

Mem int

The total amount of memory in the cluser. Unit: MB.

MemUsed int

The amount of used memory in the cluser. Unit: MB.

NetworkMode int

The network type of the cluster. Valid values: 1: classic network. 2: VPC.

NodeNum int

The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster.

RegionId string

The ID of the namespace the application belongs to.

UpdateTime int

The time when the cluster was last updated.

VpcId string

The ID of the Virtual Private Cloud (VPC) for the cluster.

clusterId string

The ID of the cluster that you want to create the application.

clusterName string

The name of the cluster.

clusterType number

The type of the cluster, Valid values: 1: Swarm cluster. 2: ECS cluster. 3: Kubernates cluster.

cpu number

The total number of CPUs in the cluster.

cpuUsed number

The number of used CPUs in the cluster.

createTime number

Cluster’s creation time.

mem number

The total amount of memory in the cluser. Unit: MB.

memUsed number

The amount of used memory in the cluser. Unit: MB.

networkMode number

The network type of the cluster. Valid values: 1: classic network. 2: VPC.

nodeNum number

The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster.

regionId string

The ID of the namespace the application belongs to.

updateTime number

The time when the cluster was last updated.

vpcId string

The ID of the Virtual Private Cloud (VPC) for the cluster.

cluster_id str

The ID of the cluster that you want to create the application.

cluster_name str

The name of the cluster.

cluster_type float

The type of the cluster, Valid values: 1: Swarm cluster. 2: ECS cluster. 3: Kubernates cluster.

cpu float

The total number of CPUs in the cluster.

cpuUsed float

The number of used CPUs in the cluster.

create_time float

Cluster’s creation time.

mem float

The total amount of memory in the cluser. Unit: MB.

memUsed float

The amount of used memory in the cluser. Unit: MB.

network_mode float

The network type of the cluster. Valid values: 1: classic network. 2: VPC.

nodeNum float

The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster.

regionId str

The ID of the namespace the application belongs to.

update_time float

The time when the cluster was last updated.

vpc_id str

The ID of the Virtual Private Cloud (VPC) for the cluster.

Package Details

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