GetMasterSlaveServerGroups

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

NOTE: Available in 1.54.0+

Example Usage

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; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

sample_ds = alicloud.slb.get_master_slave_server_groups(load_balancer_id=alicloud_slb["sample_slb"]["id"])
pulumi.export("firstSlbServerGroupId", sample_ds.groups[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const sampleDs = alicloud_slb_sample_slb.id.apply(id => alicloud.slb.getMasterSlaveServerGroups({
    loadBalancerId: id,
}, { async: true }));

export const firstSlbServerGroupId = sampleDs.groups[0].id;

Using GetMasterSlaveServerGroups

function getMasterSlaveServerGroups(args: GetMasterSlaveServerGroupsArgs, opts?: InvokeOptions): Promise<GetMasterSlaveServerGroupsResult>
function  get_master_slave_server_groups(ids=None, load_balancer_id=None, name_regex=None, output_file=None, opts=None)
func GetMasterSlaveServerGroups(ctx *Context, args *GetMasterSlaveServerGroupsArgs, opts ...InvokeOption) (*GetMasterSlaveServerGroupsResult, error)
public static class GetMasterSlaveServerGroups {
    public static Task<GetMasterSlaveServerGroupsResult> InvokeAsync(GetMasterSlaveServerGroupsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

LoadBalancerId string

ID of the SLB.

Ids List<string>

A list of master slave server group IDs to filter results.

NameRegex string

A regex string to filter results by master slave server group name.

OutputFile string
LoadBalancerId string

ID of the SLB.

Ids []string

A list of master slave server group IDs to filter results.

NameRegex string

A regex string to filter results by master slave server group name.

OutputFile string
loadBalancerId string

ID of the SLB.

ids string[]

A list of master slave server group IDs to filter results.

nameRegex string

A regex string to filter results by master slave server group name.

outputFile string
load_balancer_id str

ID of the SLB.

ids List[str]

A list of master slave server group IDs to filter results.

name_regex str

A regex string to filter results by master slave server group name.

output_file str

GetMasterSlaveServerGroups Result

The following output properties are available:

Groups List<Pulumi.AliCloud.Slb.Outputs.GetMasterSlaveServerGroupsGroup>

A list of SLB master slave server groups. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of SLB master slave server groups IDs.

LoadBalancerId string
Names List<string>

A list of SLB master slave server groups names.

NameRegex string
OutputFile string
Groups []GetMasterSlaveServerGroupsGroup

A list of SLB master slave server groups. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of SLB master slave server groups IDs.

LoadBalancerId string
Names []string

A list of SLB master slave server groups names.

NameRegex string
OutputFile string
groups GetMasterSlaveServerGroupsGroup[]

A list of SLB master slave server groups. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of SLB master slave server groups IDs.

loadBalancerId string
names string[]

A list of SLB master slave server groups names.

nameRegex string
outputFile string
groups List[GetMasterSlaveServerGroupsGroup]

A list of SLB master slave server groups. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of SLB master slave server groups IDs.

load_balancer_id str
names List[str]

A list of SLB master slave server groups names.

name_regex str
output_file str

Supporting Types

GetMasterSlaveServerGroupsGroup

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Id string

master slave server group ID.

Name string

master slave server group name.

Servers List<Pulumi.AliCloud.Slb.Inputs.GetMasterSlaveServerGroupsGroupServerArgs>

ECS instances associated to the group. Each element contains the following attributes:

Id string

master slave server group ID.

Name string

master slave server group name.

Servers []GetMasterSlaveServerGroupsGroupServer

ECS instances associated to the group. Each element contains the following attributes:

id string

master slave server group ID.

name string

master slave server group name.

servers GetMasterSlaveServerGroupsGroupServer[]

ECS instances associated to the group. Each element contains the following attributes:

id str

master slave server group ID.

name str

master slave server group name.

servers List[GetMasterSlaveServerGroupsGroupServer]

ECS instances associated to the group. Each element contains the following attributes:

GetMasterSlaveServerGroupsGroupServer

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

InstanceId string

ID of the attached ECS instance.

Port int

The port used by the master slave server group.

ServerType string

The server type of the attached ECS instance.

Weight int

Weight associated to the ECS instance.

InstanceId string

ID of the attached ECS instance.

Port int

The port used by the master slave server group.

ServerType string

The server type of the attached ECS instance.

Weight int

Weight associated to the ECS instance.

instanceId string

ID of the attached ECS instance.

port number

The port used by the master slave server group.

serverType string

The server type of the attached ECS instance.

weight number

Weight associated to the ECS instance.

instance_id str

ID of the attached ECS instance.

port float

The port used by the master slave server group.

server_type str

The server type of the attached ECS instance.

weight float

Weight associated to the ECS instance.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.