Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Load
Balancer stringId - ID of the SLB.
- Ids List<string>
- A list of master slave server group IDs to filter results.
- Name
Regex string - A regex string to filter results by master slave server group name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Load
Balancer stringId - ID of the SLB.
- Ids []string
- A list of master slave server group IDs to filter results.
- Name
Regex string - A regex string to filter results by master slave server group name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- load
Balancer StringId - ID of the SLB.
- ids List<String>
- A list of master slave server group IDs to filter results.
- name
Regex String - A regex string to filter results by master slave server group name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- load
Balancer stringId - ID of the SLB.
- ids string[]
- A list of master slave server group IDs to filter results.
- name
Regex string - A regex string to filter results by master slave server group name.
- output
File 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
).
- load
Balancer StringId - ID of the SLB.
- ids List<String>
- A list of master slave server group IDs to filter results.
- name
Regex String - A regex string to filter results by master slave server group name.
- output
File 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.
- Load
Balancer stringId - Names List<string>
- A list of SLB master slave server groups names.
- Name
Regex string - Output
File string
- Groups
[]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 []string
- A list of SLB master slave server groups IDs.
- Load
Balancer stringId - Names []string
- A list of SLB master slave server groups names.
- Name
Regex string - Output
File string
- groups
List<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.
- load
Balancer StringId - names List<String>
- A list of SLB master slave server groups names.
- name
Regex String - output
File String
- groups
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 string[]
- A list of SLB master slave server groups IDs.
- load
Balancer stringId - names string[]
- A list of SLB master slave server groups names.
- name
Regex string - output
File string
- groups
Sequence[Get
Master 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.
- load
Balancer StringId - names List<String>
- A list of SLB master slave server groups names.
- name
Regex String - output
File 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
[]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
List<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
Get
Master 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[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 List<Property Map>
- ECS instances associated to the group. Each element contains the following attributes:
GetMasterSlaveServerGroupsGroupServer
- Instance
Id string - 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 string - The server type of the attached ECS instance.
- Weight int
- Weight associated to the ECS instance.
- Instance
Id string - 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 string - The server type of the attached ECS instance.
- Weight int
- Weight associated to the ECS instance.
- instance
Id String - ID of the attached ECS instance.
- is
Backup Integer - (Removed from v1.63.0) Determine if the server is executing.
- port Integer
- The port used by the master slave server group.
- server
Type String - The server type of the attached ECS instance.
- weight Integer
- Weight associated to the ECS instance.
- instance
Id string - ID of the attached ECS instance.
- is
Backup number - (Removed from v1.63.0) Determine if the server is executing.
- port number
- The port used by the master slave server group.
- server
Type 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.
- instance
Id String - ID of the attached ECS instance.
- is
Backup Number - (Removed from v1.63.0) Determine if the server is executing.
- port Number
- The port used by the master slave server group.
- server
Type 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
alicloud
Terraform Provider.