Show / Hide Table of Contents

Class GetEndpoints

Inheritance
System.Object
GetEndpoints
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.PolarDB
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetEndpoints

Methods

View Source

InvokeAsync(GetEndpointsArgs, InvokeOptions)

The alicloud.polardb.getEndpoints data source provides a collection of PolarDB endpoints available in Alibaba Cloud account. Filters support regular expression for the cluster name, searches by clusterId, and other filters which are listed below.

NOTE: Available in v1.68.0+.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var polardbClustersDs = Output.Create(AliCloud.PolarDB.GetClusters.InvokeAsync(new AliCloud.PolarDB.GetClustersArgs
    {
        DescriptionRegex = "pc-\\w+",
        Status = "Running",
    }));
    var @default = polardbClustersDs.Apply(polardbClustersDs => Output.Create(AliCloud.PolarDB.GetEndpoints.InvokeAsync(new AliCloud.PolarDB.GetEndpointsArgs
    {
        DbClusterId = polardbClustersDs.Clusters[0].Id,
    })));
    this.Ends = @default.Apply(@default => @default.Endpoints[0].DbEndpointId);
}

[Output("ends")]
public Output<string> Ends { get; set; }
}

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

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