You can call the RemoveListenerWhiteListItem API to delete IP addresses from a listener whitelist.


Click here to perform a debug operation in OpenAPI Explorer and automatically generate an SDK code example.

Request parameters

Name Type Required? Example value Description
Action String Yes RemoveListenerWhiteListItem

The action to perform. Valid value: RemoveListenerWhiteListItem.

RegionId String Yes cn-hangzhou

The ID of the region to which the SLB instance belongs.

You can call the DescribeRegionsAPI to query the region ID.

ListenerPort Integer Yes 80

The action to perform. Valid value: RemoveListenerWhiteListItem.

LoadBalancerId String Yes lb-8vb86hxixo8lvsja86jaz

The ID of the SLB instance

SourceItems String Yes

The access control list. Both IP addresses and IP address segments (namely, CIDR blocks) are supported. Use commas (,) to separate multiple IP addresses or CIDR blocks.

Note: If all IP addresses or CIDR blocks are deleted, the listener is inaccessible.

Response parameters

Name Type Example value Description
RequestId String CEF72CEB-54B6-4AE8-B225-F876FF7BA984

The ID of the request


Request example

/? Action=RemoveListenerWhiteListItem

Normal response examples

XML format


JSON format

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

Error response example

JSON format

	"Message":"The specified parameter is not valid.",

Error codes

Click here to view the error codes.