edit-icon download-icon


Last Updated: Mar 02, 2018


Set the status of an SLB instance.

Request parameter

Name Type Required Description
Action String Yes

The action to perform. Valid value:


RegionId String Yes The ID of the region where the SLB instance is located.
LoadBalancerId String Yes The ID of the SLB instance.
LoadBalancerStatus String Yes

The status of the SLB instance. Valid values:

  • active

    By default, the SLB instance status is active. You can set the status to active when you want an active SLB instance to restart distributing traffic.

  • inactive

    If you set the status of an SLB instance to inactive, the listeners in the instance cannot distribute traffic any more.

  • Note: The instance status changes to inactive if all the listeners of the instance are deleted.

Response parameter

Name Type Description
RequestId String The ID of the request.


Request example

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

Response 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.