虚拟服务器slave,CreateMasterSlaveServerGroup

  • Post author:
  • Post category:其他


示例

请求示例

http(s)://[Endpoint]/?Action=CreateMasterSlaveServerGroup

&LoadBalancerId=lb-bp1hv944r69al4j******

&MasterSlaveBackendServers=[{ “ServerId”: “i-xxxxxxxxx”, “Weight”: “100”, “Type”: “ecs”, “Port”:”80″,”ServerType”:”Master”,”Description”:”test-112″ }, { “ServerId”: “i-xxxxxxxxx”, “Weight”: “100”, “Type”: “ecs”, “Port”:”80″,”ServerType”:”Slave”,”Description”:”test-112″ }]

&RegionId=cn-hangzhou

&

正常返回示例

XML 格式

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

rsp-cige******

vm-gtgt***

80

100

Master

vm-tygtyg****

90

100

Slave

JSON 格式

{

“CreateMasterSlaveServerGroup”: {

“RequestId”: “9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C”,

“MasterSlaveServerGroupId”: “rsp-cige6*****”,

“MasterSlaveBackendServers”: {

“MasterSlaveBackendServers”: [

{

“ServerId”: “vm-hhhh****”,

“Port”: “80”,

“Weight”: “100”,

“ServerType”: “Master”

},

{

“ServerId”: “vm-gggg***”,

“Port”: “90”,

“Weight”: “100”,

“ServerType”: “Slave”

}

]

}

}

}