AddListenerWhiteListItem
Description
call AddListenerWhiteListItem to add listening access control whitelist.
Request Method
POST
Request Path
/apsara/route/Slb/AddListenerWhiteListItem
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
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 | 139a00604ad-cn-east-hangzhou-01 | load balancing instance ID. |
SourceItems | BODY | string | Yes | 1.XX.XX. 1,1.XX.XX.0/21 | access control list. listening AccessControlStatus is valid when open_white_list. /span>/p> p data-tag = "p" class = "p"> supports entering IP addresses or IP address segments (in the form of CIDR block). multiple IP addresses or address segments are separated by commas (,). input 0.0.0.0 or 0.0.0.0/0 is not allowed. You can call SetListenerAccessControlStatus interface to AccessControlStatus is set to close, turn off access control. |
version | BODY | string | No | 2016-01-01 | version of api |
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
}
}