Sets the status of an SLB instance.
Debug
Use OpenAPI Explorer to perform debug operations and generate SDK code examples.
Request parameters
Parameter | Type | Required? | Example value | Description |
---|---|---|---|---|
Action | String | Yes | SetLoadBalancerStatus |
The name of this action. Value: SetLoadBalancerStatus |
LoadBalancerId | String | Yes | lb-bp1b6c719dfa08exfuca5 |
The ID of the SLB instance. |
LoadBalancerStatus | String | Yes | active |
The status of the SLB instance. Valid value: active | inactive
Note The status of an SLB instance changes to inactive if all the listeners of the instance are deleted.
|
RegionId | String | Yes | cn-hangzhou-d |
The ID of the region to which the SLB instance belongs. To query the region ID, refer tothe list of regions and zones or call DescribeRegions. |
Response parameters
Parameter | Type | Example value | Description |
---|---|---|---|
RequestId | String | CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
The ID of the request. |
Examples
Request example
http(s)://[Endpoint]/? Action=SetLoadBalancerStatus
&LoadBalancerId=lb-bp1b6c719dfa08exfuca5
&LoadBalancerStatus=active
&<CommonParameters>
Response examples
XML
format
<SetLoadBalancerStatusResponse>
<RequestId>E6DDFE22-F019-4F34-B8DD-FD14973450A6</RequestId>
</SetLoadBalancerStatusResponse>
JSON
format
{
"RequestId":"E6DDFE22-F019-4F34-B8DD-FD14973450A6"
}