SetListenerAccessControlStatus
Description
Call SetListenerAccessControlStatus whether to enable whitelist access control for the specified listener.
Request Method
POST
Request Path
/apsara/route/Slb/SetListenerAccessControlStatus
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
access_key_id | BODY | string | No | acc-hp34s2h0xx1ht4nwo**** | access key ID. |
AccessControlStatus | BODY | string | Yes | open_white_list | whether access control is turned on. Value: open_white_list: Enable whitelist access control. close: turn off whitelist access control. description if access control is enabled and no whitelist is set, the load balancing service cannot be accessed. |
ListenerPort | BODY | integer | Yes | 80 | the port used by the front end of the load balancing instance. value:1~65535. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
LoadBalancerId | BODY | string | Yes | lb-bp1b6c719dfa08ex**** | ID of the load balancing instance. |
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
}
}