You can call the DescribeMasterSlaveServerGroups API to query the created active/standby server groups.


Click here to perform a debug operation in OpenAPI Explorer and automatically generate an SDK code example.

Request parameters

Name Type Required? Example value Description
Action String Yes DescribeMasterSlaveServerGroups

The action to perform. Valid value: DescribeMasterSlaveServerGroups

LoadBalancerId String Yes lb-bp14zi0n66zpg6ohffzaa

The ID of the SLB instance

RegionId String Yes cn-hangzhou

The ID of the region to which the SLB instance belongs

IncludeListener Boolean No false

Whether to return the associated listener information. Default value: false.

Response parameters

Name Type Example value Description

A list of active/standby server groups

  └MasterSlaveServerGroupId String rsp-0bfucwuotx

The ID of the active/standby server group

  └MasterSlaveServerGroupName String Group3

The name of the active/standby server group


Associated information


A list of associated listeners

      └Port Integer 80

The listening port

      └Protocol String tcp

The protocol used by the listener

RequestId String 9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C

The ID of the request


Request example

/? LoadBalancerId=lb-bp14zi0n66zpg6ohffzaa

Normal response examples

XML format


JSON format


Error response example

JSON format

	"Message":"The specified parameter is not valid.",

Error codes

Click here to view the error codes.