Show / Hide Table of Contents

Class GetMasterSlaveServerGroups

Inheritance
System.Object
GetMasterSlaveServerGroups
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 GetMasterSlaveServerGroups

Methods

View Source

InvokeAsync(GetMasterSlaveServerGroupsArgs, InvokeOptions)

This data source provides the master slave server groups related to a server load balancer.

NOTE: Available in 1.54.0+

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var sampleDs = Output.Create(AliCloud.Slb.GetMasterSlaveServerGroups.InvokeAsync(new AliCloud.Slb.GetMasterSlaveServerGroupsArgs
    {
        LoadBalancerId = alicloud_slb.Sample_slb.Id,
    }));
    this.FirstSlbServerGroupId = sampleDs.Apply(sampleDs => sampleDs.Groups[0].Id);
}

[Output("firstSlbServerGroupId")]
public Output<string> FirstSlbServerGroupId { get; set; }
}

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

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