查詢指定主備伺服器組的詳細資料。
請求參數
名稱 | 類型 | 是否必須 | 描述 |
---|---|---|---|
Action | String | 是 | 要執行的操作,取值:
DescribeMasterSlaveServerGroupAttribute |
RegionId | String | 是 | 負載平衡地域。
您可以通過調用 DescribeRegions介面獲取地域ID。 |
MasterSlaveServerGroupId | String
JSON格式的List |
是 | 要查詢的主備伺服器組ID。 |
返回參數
名稱 | 類型 | 描述 |
---|---|---|
RequestId | String | 請求ID。 |
MasterSlaveServerGroupId | String | 主備伺服器組ID。 |
MasterSlaveServerGroupName | String | 主備伺服器組的名稱。 |
MasterSlaveBackendServers | String
JSON格式的List |
主備伺服器組列表。 |
名稱 | 類型 | 描述 |
---|---|---|
ServerId | String | ECS執行個體ID。 |
Port | String | 後端伺服器使用的通信埠。
取值範圍:1-65535 |
Weight | String |
後端伺服器的權重,取值:[0,100] 預設值為100。如果值為0,則不會將請求轉寄給該後端伺服器。 |
ServerType | String | 伺服器類型,取值:
Master(預設值) | Slave |
樣本
請求樣本
https://slb.aliyuncs.com/?Action=DescribeMasterSlaveServerGroupAttribute
&RegionId=cn-hangzhou
&LoadBalancerId=lb-t4nj5vuz8ish9emfk1f20
&MasterSlaveServerGroupName=Group1
&MasterSlaveBackendServers=[
{"ServerId":"vm-233","Port":"80","Weight":"100","ServerType":"Master"},
{"ServerId":"vm-232","Port":"90","Weight":"100","ServerType":"Slave"},
&公共請求參數
返回樣本
- XML格式
<?xml version="1.0" encoding="utf-8"?> <DescribeMasterSlaveServerGroupAttributeResponse> <RequestId>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</RequestId> <MasterSlaveServerGroupId>rsp-cige6j5e7p</MasterSlaveServerGroupId> <MasterSlaveBackendServers> <MasterSlaveBackendServers> <ServerId>vm-233</ServerId> <Port>80</Port> <Weight>100</Weight> <ServerType>Master</ServerType> </MasterSlaveBackendServers> <MasterSlaveBackendServers> <ServerId>vm-232</ServerId> <Port>90</Port> <Weight>100</Weight> <ServerType>Slave</ServerType> </MasterSlaveBackendServers> </MasterSlaveBackendServers> </DescribeMasterSlaveServerGroupAttributeResponse>
- JSON格式
{ "RequestId":"9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C", "MasterSlaveServerGroupId":"rsp-cige6j5e7p", "MasterSlaveBackendServers":{ "MasterSlaveBackendServers":[ {"ServerId":"vm-233","Port":"80","Weight":"100","ServerType":"Master"}, {"ServerId":"vm-232","Port":"90","Weight":"100","ServerType":"Slave"}, ] } }