You can call the DeleteLoadBalancerListener API to delete a listener.

Note Only a listener in stopped or running status can be deleted.


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 DeleteLoadBalancerListener

The action to perform. Valid value: Deleteloadbalancerlistener

ListenerPort Integer Yes 80

The frontend port used by the SLB instance.

Valid values: 1–65535

LoadBalancerId String Yes lb-bp13jaf5qli5xmgl1miup

The ID of the SLB instance

RegionId String Yes cn-hangzhou

The ID of the region to which the SLB instance belongs

Response parameters

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

The ID of the request


Request example

http(s)://[Endpoint]/? Action=DeleteLoadBalancerListener
&<Common Parameters>

Normal response examples

XML format


JSON format


Error response example

JSON format

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

Error codes

Click here to view the error codes.