Show / Hide Table of Contents

Class GetClusters

Inheritance
System.Object
GetClusters
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Adb
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetClusters

Methods

View Source

InvokeAsync(GetClustersArgs, InvokeOptions)

The alicloud.adb.getClusters data source provides a collection of ADB clusters available in Alibaba Cloud account. Filters support regular expression for the cluster description, searches by tags, and other filters which are listed below.

NOTE: Available in v1.71.0+.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var adbClustersDs = Output.Create(AliCloud.Adb.GetClusters.InvokeAsync(new AliCloud.Adb.GetClustersArgs
    {
        DescriptionRegex = "am-\\w+",
        Status = "Running",
    }));
    this.FirstAdbClusterId = adbClustersDs.Apply(adbClustersDs => adbClustersDs.Clusters[0].Id);
}

[Output("firstAdbClusterId")]
public Output<string> FirstAdbClusterId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetClustersResult> InvokeAsync(GetClustersArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetClustersArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetClustersResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.