Skip to main content

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

NameLocationTypeRequiredSample valueDescription
access_key_idBODYstringNoacc-hp34s2h0xx1ht4nwo****access key ID.
AccessControlStatusBODYstringYesopen_white_listwhether 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.
ListenerPortBODYintegerYes80the port used by the front end of the load balancing instance. value:1~65535.
regionIdBODYstringYesNo sample value for this parameter.region id
LoadBalancerIdBODYstringYeslb-bp1b6c719dfa08ex****ID of the load balancing instance.
versionBODYstringNo2016-01-01version of api
TagsBODYstringNo{"tagKey":"Key1","tagValue":"Value1"}tag key and value.

Return data

NameTypeSample valueDescription
RequestIdstringCEF72CEB-54B6-4AE8-B225-F876FF7BA984request ID.

Example

Successful Response example

{
"RequestId":"CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}