Show / Hide Table of Contents

Class GetListeners

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

Methods

View Source

InvokeAsync(GetListenersArgs, InvokeOptions)

This data source provides the listeners related to a server load balancer of the current Alibaba Cloud user.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var sampleDs = Output.Create(AliCloud.Slb.GetListeners.InvokeAsync(new AliCloud.Slb.GetListenersArgs
    {
        LoadBalancerId = alicloud_slb.Sample_slb.Id,
    }));
    this.FirstSlbListenerProtocol = sampleDs.Apply(sampleDs => sampleDs.SlbListeners[0].Protocol);
}

[Output("firstSlbListenerProtocol")]
public Output<string> FirstSlbListenerProtocol { get; set; }
}

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

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