1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. slb
  5. getMasterSlaveServerGroups
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.slb.getMasterSlaveServerGroups

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 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>
    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:

    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    load_balancer_id str
    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).
    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
    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 string
    master slave server group ID.
    Name string
    master slave server group name.
    Servers List<Pulumi.AliCloud.Slb.Inputs.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 String
    master slave server group ID.
    name String
    master slave server group name.
    servers List<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 Sequence[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 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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi