edit-icon download-icon

AddVServerGroupBackendServers

Last Updated: Apr 12, 2018

Description

Add backend servers to the specified VServer group.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value:

AddVServerGroupBackendServers

RegionId String Yes The region ID of the Server Load Balancer instance.
VServerGroupId String Yes The ID of the VServer group.
BackendServers String Yes

The list of backend servers to add.

A VServer group can contain up to 20 backend servers.

BackendServers objects
ServerId String Yes The ID of the ECS instance.
Port Integer Yes

The port used by the backend server.

Valid value: 1-65535

Weight Integer Yes

The weight of the backend server.

Valid value: [0,100]. Default value: 100

Response parameters

Name Type Description
RequestId String The ID of the request.
VServerGroupId String The ID of the VServer group.
BackendServers List The list of backend servers.

Examples

Request example

  1. https://slb.aliyuncs.com/?<Common parameters>
  2. &Action=AddVServerGroupBackendServers
  3. &RegionId=cn-east-hangzhou-01
  4. &VServerGroupId=rsp-cige6j5e7p
  5. &BackendServers=[
  6. {'ServerId':'vm-233','Port':'80','Weight':'100'},
  7. {'ServerId':'vm-232','Port':'90','Weight':'100'},
  8. {'ServerId':'vm-231','Port':'70','Weight':'100'}
  9. ]

Response example

  • XML format

    1. <?xml version="1.0" encoding="utf-8"?>
    2. <AddVServerGroupBackendServers>
    3. <RequestId>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</RequestId>
    4. <VServerGroupId>rsp-cige6j5e7p</VServerGroupId>
    5. <BackendServers>
    6. <BackendServer>
    7. <ServerId>vm-233</ServerId>
    8. <Port>80</Port>
    9. <Weight>100</Weight>
    10. </BackendServer>
    11. <BackendServer>
    12. <ServerId>vm-232</ServerId>
    13. <Port>90</Port>
    14. <Weight>100</Weight>
    15. </BackendServer>
    16. <BackendServer>
    17. <ServerId>vm-231</ServerId>
    18. <Port>70</Port>
    19. <Weight>100</Weight>
    20. </BackendServer>
    21. </BackendServers>
    22. </AddVServerGroupBackendServers>
  • JSON format

    1. {
    2. "RequestId":"9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C",
    3. "VServerGroupId":"rsp-cige6j5e7p",
    4. "BackendServers":{
    5. "BackendServer":[
    6. {'ServerId':'vm-233','Port':'80','Weight':'100'},
    7. {'ServerId':'vm-232','Port':'90','Weight':'100'},
    8. {'ServerId':'vm-231','Port':'70','Weight':'100'}
    9. ]
    10. }
    11. }
Thank you! We've received your feedback.