Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.slb.getMasterSlaveServerGroups
Explore with Pulumi AI
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>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]func GetMasterSlaveServerGroups(ctx *Context, args *GetMasterSlaveServerGroupsArgs, opts ...InvokeOption) (*GetMasterSlaveServerGroupsResult, error)
func GetMasterSlaveServerGroupsOutput(ctx *Context, args *GetMasterSlaveServerGroupsOutputArgs, opts ...InvokeOption) GetMasterSlaveServerGroupsResultOutput> 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)
}public static CompletableFuture<GetMasterSlaveServerGroupsResult> getMasterSlaveServerGroups(GetMasterSlaveServerGroupsArgs args, InvokeOptions options)
public static Output<GetMasterSlaveServerGroupsResult> getMasterSlaveServerGroups(GetMasterSlaveServerGroupsArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LoadBalancer stringId 
- 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
- File name where to save data source results (after running pulumi preview).
- LoadBalancer stringId 
- 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
- File name where to save data source results (after running pulumi preview).
- loadBalancer StringId 
- 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
- File name where to save data source results (after running pulumi preview).
- loadBalancer stringId 
- 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
- File name where to save data source results (after running pulumi preview).
- load_balancer_ strid 
- ID of the SLB.
- ids Sequence[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
- File name where to save data source results (after running pulumi preview).
- loadBalancer StringId 
- 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
- File name where to save data source results (after running pulumi preview).
getMasterSlaveServerGroups Result
The following output properties are available:
- Groups
List<Pulumi.Ali Cloud. Slb. Outputs. Get Master Slave Server Groups Group> 
- 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.
- LoadBalancer stringId 
- Names List<string>
- A list of SLB master slave server groups names.
- NameRegex string
- OutputFile string
- Groups
[]GetMaster Slave Server Groups Group 
- 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.
- LoadBalancer stringId 
- Names []string
- A list of SLB master slave server groups names.
- NameRegex string
- OutputFile string
- groups
List<GetMaster Slave Server Groups Group> 
- 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.
- loadBalancer StringId 
- names List<String>
- A list of SLB master slave server groups names.
- nameRegex String
- outputFile String
- groups
GetMaster Slave Server Groups Group[] 
- 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.
- loadBalancer stringId 
- names string[]
- A list of SLB master slave server groups names.
- nameRegex string
- outputFile string
- groups
Sequence[GetMaster Slave Server Groups Group] 
- 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_ strid 
- 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.
- loadBalancer StringId 
- names List<String>
- A list of SLB master slave server groups names.
- nameRegex String
- outputFile String
Supporting Types
GetMasterSlaveServerGroupsGroup     
- Id string
- master slave server group ID.
- Name string
- master slave server group name.
- Servers
List<Pulumi.Ali Cloud. Slb. Inputs. Get Master Slave Server Groups Group Server> 
- 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
[]GetMaster Slave Server Groups Group Server 
- 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
List<GetMaster Slave Server Groups Group Server> 
- 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
GetMaster Slave Server Groups Group Server[] 
- 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
Sequence[GetMaster Slave Server Groups Group Server] 
- 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 List<Property Map>
- ECS instances associated to the group. Each element contains the following attributes:
GetMasterSlaveServerGroupsGroupServer      
- InstanceId string
- ID of the attached ECS instance.
- IsBackup int
- (Removed from v1.63.0) Determine if the server is executing.
- 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.
- IsBackup int
- (Removed from v1.63.0) Determine if the server is executing.
- 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.
- isBackup Integer
- (Removed from v1.63.0) Determine if the server is executing.
- port Integer
- The port used by the master slave server group.
- serverType String
- The server type of the attached ECS instance.
- weight Integer
- Weight associated to the ECS instance.
- instanceId string
- ID of the attached ECS instance.
- isBackup number
- (Removed from v1.63.0) Determine if the server is executing.
- 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.
- is_backup int
- (Removed from v1.63.0) Determine if the server is executing.
- port int
- The port used by the master slave server group.
- server_type str
- The server type of the attached ECS instance.
- weight int
- Weight associated to the ECS instance.
- instanceId String
- ID of the attached ECS instance.
- isBackup Number
- (Removed from v1.63.0) Determine if the server is executing.
- 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.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.