SetLoadBalancerStatus

Last Updated: May 22, 2017

Description

Configure the LoadBalancer status.

  • For the Server Load Balancer instance just created, its status is active by default.
  • LoadBalancerStatus is active, indicating to distribute all configurations of Listeners in the Server Load Balancer instance to the system to make it work; ;
  • LoadBalancerStatus is inactive, indicating to inactive all configurations of Listeners in the Server Load Balancer instance to make it work;

Request parameter

Name Type Mandatory or not Description
Action String Yes Name of the operating interface, which is specified in the system
Value:SetLoadBalancerStatus
LoadBalancerId String Yes The unique ID of an Server Load Balancer instance
LoadBalancerStatus String Yes Status of an Server Load Balancer instance
Value:inactive | active

Return parameter

They are all common return parameters. See Public Parameters for details.

Example

Request example

  1. https://slb.aliyuncs.com/
  2. &Action=SetLoadBalancerStatus
  3. &LoadBalancerId=139a00604ad-cn-east-hangzhou-01
  4. &LoadBalancerStatus=active
  5. &<common request parameter>

Return example

  • XML format

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <SetLoadBalancerStatusResponse>
    3. <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>
    4. </SetLoadBalancerStatusResponse>
  • JSON format
    1. {
    2. "RequestId":" CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
    3. }
Thank you! We've received your feedback.