SetLoadBalancerStatus
Description
call SetLoadBalancerStatus to set the state of the load balancing instance.
Request Method
POST
Request Path
/apsara/route/Slb/SetLoadBalancerStatus
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
access_key_id | BODY | string | No | acc-hp34s2h0xx1ht4nwo**** | access key ID. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
LoadBalancerId | BODY | string | Yes | lb-bp1b6c719dfa08e**** | ID of the load balancing instance. |
LoadBalancerStatus | BODY | string | Yes | active | load balancing instance status. Value:active or inactive. active(default) When the status of the load balancing instance is active, the listener in the instance can forward the received traffic according to the rules. inactive when the status of the load balancing instance is inactive, the listener in the instance will no longer forward the received traffic. description when all listeners under an instance are deleted, the instance status is automatically changed to inactive. |
version | BODY | string | No | 2016-01-01 | version of api |
Tags | BODY | string | No | {"tagKey":"Key1","tagValue":"Value1"} | tag key and value. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | CEF72CEB-54B6-4AE8-B225-F876FF7BA984 | request ID. |
Example
Successful Response example
{
"RequestId":"CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}