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:
- Logical
Region stringId ID of the namespace in EDAS.
- Ids List<string>
An ids string to filter results by the cluster id.
- Name
Regex string A regex string to filter results by the cluster name.
- Output
File string
- Logical
Region stringId ID of the namespace in EDAS.
- Ids []string
An ids string to filter results by the cluster id.
- Name
Regex string A regex string to filter results by the cluster name.
- Output
File string
- logical
Region stringId ID of the namespace in EDAS.
- ids string[]
An ids string to filter results by the cluster id.
- name
Regex string A regex string to filter results by the cluster name.
- output
File string
- logical_
region_ strid 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.
Ali Cloud. Edas. Outputs. Get Clusters Cluster> A list of clusters.
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of cluster IDs.
- Logical
Region stringId - Names List<string>
A list of cluster names.
- Name
Regex string - Output
File string
- Clusters
[]Get
Clusters Cluster A list of clusters.
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of cluster IDs.
- Logical
Region stringId - Names []string
A list of cluster names.
- Name
Regex string - Output
File string
- clusters
Get
Clusters Cluster[] A list of clusters.
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of cluster IDs.
- logical
Region stringId - names string[]
A list of cluster names.
- name
Regex string - output
File string
- clusters
List[Get
Clusters Cluster] 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_ strid - 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.
- Cluster
Id string The ID of the cluster that you want to create the application.
- Cluster
Name string The name of the cluster.
- Cluster
Type 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.
- Cpu
Used int The number of used CPUs in the cluster.
- Create
Time int Cluster’s creation time.
- Mem int
The total amount of memory in the cluser. Unit: MB.
- Mem
Used int The amount of used memory in the cluser. Unit: MB.
- Network
Mode int The network type of the cluster. Valid values: 1: classic network. 2: VPC.
- Node
Num int The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster.
- Region
Id string The ID of the namespace the application belongs to.
- Update
Time int The time when the cluster was last updated.
- Vpc
Id string The ID of the Virtual Private Cloud (VPC) for the cluster.
- Cluster
Id string The ID of the cluster that you want to create the application.
- Cluster
Name string The name of the cluster.
- Cluster
Type 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.
- Cpu
Used int The number of used CPUs in the cluster.
- Create
Time int Cluster’s creation time.
- Mem int
The total amount of memory in the cluser. Unit: MB.
- Mem
Used int The amount of used memory in the cluser. Unit: MB.
- Network
Mode int The network type of the cluster. Valid values: 1: classic network. 2: VPC.
- Node
Num int The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster.
- Region
Id string The ID of the namespace the application belongs to.
- Update
Time int The time when the cluster was last updated.
- Vpc
Id string The ID of the Virtual Private Cloud (VPC) for the cluster.
- cluster
Id string The ID of the cluster that you want to create the application.
- cluster
Name string The name of the cluster.
- cluster
Type 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.
- cpu
Used number The number of used CPUs in the cluster.
- create
Time number Cluster’s creation time.
- mem number
The total amount of memory in the cluser. Unit: MB.
- mem
Used number The amount of used memory in the cluser. Unit: MB.
- network
Mode number The network type of the cluster. Valid values: 1: classic network. 2: VPC.
- node
Num number The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster.
- region
Id string The ID of the namespace the application belongs to.
- update
Time number The time when the cluster was last updated.
- vpc
Id 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.
- cpu
Used 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.
- mem
Used 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.
- node
Num float The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster.
- region
Id 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
alicloudTerraform Provider.