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:
- 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
- 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
- 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
- load_
balancer_ strid 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.
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
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 str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of SLB master slave server groups IDs.
- load_
balancer_ strid - 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.
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.
- Instance
Id string ID of the attached ECS instance.
- 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.
- 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.
- 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.
- 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
alicloudTerraform Provider.