1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. slb
  5. getMasterSlaveServerGroups
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.slb.getMasterSlaveServerGroups

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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

NOTE: Available in 1.54.0+

Using getMasterSlaveServerGroups

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getMasterSlaveServerGroups(args: GetMasterSlaveServerGroupsArgs, opts?: InvokeOptions): Promise<GetMasterSlaveServerGroupsResult>
function getMasterSlaveServerGroupsOutput(args: GetMasterSlaveServerGroupsOutputArgs, opts?: InvokeOptions): Output<GetMasterSlaveServerGroupsResult>
Copy
def get_master_slave_server_groups(ids: Optional[Sequence[str]] = None,
                                   load_balancer_id: Optional[str] = None,
                                   name_regex: Optional[str] = None,
                                   output_file: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetMasterSlaveServerGroupsResult
def get_master_slave_server_groups_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                   load_balancer_id: Optional[pulumi.Input[str]] = None,
                                   name_regex: Optional[pulumi.Input[str]] = None,
                                   output_file: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetMasterSlaveServerGroupsResult]
Copy
func GetMasterSlaveServerGroups(ctx *Context, args *GetMasterSlaveServerGroupsArgs, opts ...InvokeOption) (*GetMasterSlaveServerGroupsResult, error)
func GetMasterSlaveServerGroupsOutput(ctx *Context, args *GetMasterSlaveServerGroupsOutputArgs, opts ...InvokeOption) GetMasterSlaveServerGroupsResultOutput
Copy

> Note: This function is named GetMasterSlaveServerGroups in the Go SDK.

public static class GetMasterSlaveServerGroups 
{
    public static Task<GetMasterSlaveServerGroupsResult> InvokeAsync(GetMasterSlaveServerGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetMasterSlaveServerGroupsResult> Invoke(GetMasterSlaveServerGroupsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMasterSlaveServerGroupsResult> getMasterSlaveServerGroups(GetMasterSlaveServerGroupsArgs args, InvokeOptions options)
public static Output<GetMasterSlaveServerGroupsResult> getMasterSlaveServerGroups(GetMasterSlaveServerGroupsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

LoadBalancerId This property is required. string
ID of the SLB.
Ids Changes to this property will trigger replacement. List<string>
A list of master slave server group IDs to filter results.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by master slave server group name.
OutputFile string
File name where to save data source results (after running pulumi preview).
LoadBalancerId This property is required. string
ID of the SLB.
Ids Changes to this property will trigger replacement. []string
A list of master slave server group IDs to filter results.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by master slave server group name.
OutputFile string
File name where to save data source results (after running pulumi preview).
loadBalancerId This property is required. String
ID of the SLB.
ids Changes to this property will trigger replacement. List<String>
A list of master slave server group IDs to filter results.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by master slave server group name.
outputFile String
File name where to save data source results (after running pulumi preview).
loadBalancerId This property is required. string
ID of the SLB.
ids Changes to this property will trigger replacement. string[]
A list of master slave server group IDs to filter results.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by master slave server group name.
outputFile string
File name where to save data source results (after running pulumi preview).
load_balancer_id This property is required. str
ID of the SLB.
ids Changes to this property will trigger replacement. Sequence[str]
A list of master slave server group IDs to filter results.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by master slave server group name.
output_file str
File name where to save data source results (after running pulumi preview).
loadBalancerId This property is required. String
ID of the SLB.
ids Changes to this property will trigger replacement. List<String>
A list of master slave server group IDs to filter results.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by master slave server group name.
outputFile String
File name where to save data source results (after running pulumi preview).

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 List<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 Sequence[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 Sequence[str]
A list of SLB master slave server groups IDs.
load_balancer_id str
names Sequence[str]
A list of SLB master slave server groups names.
name_regex str
output_file str
groups List<Property Map>
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

Supporting Types

GetMasterSlaveServerGroupsGroup

Id This property is required. string
master slave server group ID.
Name This property is required. string
master slave server group name.
Servers This property is required. List<Pulumi.AliCloud.Slb.Inputs.GetMasterSlaveServerGroupsGroupServer>
ECS instances associated to the group. Each element contains the following attributes:
Id This property is required. string
master slave server group ID.
Name This property is required. string
master slave server group name.
Servers This property is required. []GetMasterSlaveServerGroupsGroupServer
ECS instances associated to the group. Each element contains the following attributes:
id This property is required. String
master slave server group ID.
name This property is required. String
master slave server group name.
servers This property is required. List<GetMasterSlaveServerGroupsGroupServer>
ECS instances associated to the group. Each element contains the following attributes:
id This property is required. string
master slave server group ID.
name This property is required. string
master slave server group name.
servers This property is required. GetMasterSlaveServerGroupsGroupServer[]
ECS instances associated to the group. Each element contains the following attributes:
id This property is required. str
master slave server group ID.
name This property is required. str
master slave server group name.
servers This property is required. Sequence[GetMasterSlaveServerGroupsGroupServer]
ECS instances associated to the group. Each element contains the following attributes:
id This property is required. String
master slave server group ID.
name This property is required. String
master slave server group name.
servers This property is required. List<Property Map>
ECS instances associated to the group. Each element contains the following attributes:

GetMasterSlaveServerGroupsGroupServer

InstanceId This property is required. string
ID of the attached ECS instance.
IsBackup This property is required. int
(Removed from v1.63.0) Determine if the server is executing.
Port This property is required. int
The port used by the master slave server group.
ServerType This property is required. string
The server type of the attached ECS instance.
Weight This property is required. int
Weight associated to the ECS instance.
InstanceId This property is required. string
ID of the attached ECS instance.
IsBackup This property is required. int
(Removed from v1.63.0) Determine if the server is executing.
Port This property is required. int
The port used by the master slave server group.
ServerType This property is required. string
The server type of the attached ECS instance.
Weight This property is required. int
Weight associated to the ECS instance.
instanceId This property is required. String
ID of the attached ECS instance.
isBackup This property is required. Integer
(Removed from v1.63.0) Determine if the server is executing.
port This property is required. Integer
The port used by the master slave server group.
serverType This property is required. String
The server type of the attached ECS instance.
weight This property is required. Integer
Weight associated to the ECS instance.
instanceId This property is required. string
ID of the attached ECS instance.
isBackup This property is required. number
(Removed from v1.63.0) Determine if the server is executing.
port This property is required. number
The port used by the master slave server group.
serverType This property is required. string
The server type of the attached ECS instance.
weight This property is required. number
Weight associated to the ECS instance.
instance_id This property is required. str
ID of the attached ECS instance.
is_backup This property is required. int
(Removed from v1.63.0) Determine if the server is executing.
port This property is required. int
The port used by the master slave server group.
server_type This property is required. str
The server type of the attached ECS instance.
weight This property is required. int
Weight associated to the ECS instance.
instanceId This property is required. String
ID of the attached ECS instance.
isBackup This property is required. Number
(Removed from v1.63.0) Determine if the server is executing.
port This property is required. Number
The port used by the master slave server group.
serverType This property is required. String
The server type of the attached ECS instance.
weight This property is required. Number
Weight associated to the ECS instance.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi