Class GetServerGroups
Inheritance
System.Object
GetServerGroups
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 GetServerGroups
Methods
View SourceInvokeAsync(GetServerGroupsArgs, InvokeOptions)
This data source provides the VServer groups related to a server load balancer.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var sampleDs = Output.Create(AliCloud.Slb.GetServerGroups.InvokeAsync(new AliCloud.Slb.GetServerGroupsArgs
{
LoadBalancerId = alicloud_slb.Sample_slb.Id,
}));
this.FirstSlbServerGroupId = sampleDs.Apply(sampleDs => sampleDs.SlbServerGroups[0].Id);
}
[Output("firstSlbServerGroupId")]
public Output<string> FirstSlbServerGroupId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetServerGroupsResult> InvokeAsync(GetServerGroupsArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetServerGroupsArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetServerGroupsResult> |