You can call the StopLoadBalancerListener API to stop a listener.

Before you call the API, note the following:

  • After the API is successfully called, the listener changes to the stopped status.
  • If the status of the SLB instance to which the listener belongs is locked, the API cannot be called.
Note If you stop the listener, your services will be disrupted. Exercise caution when performing this action.


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 StopLoadBalancerListener

The action to perform. Valid value:StopLoadBalancerListener

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 region to which the SLB instance belongs.

You can query the region ID by referring to the list ofregions and zonesor by calling theDescribeRegionsAPI.

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=StopLoadBalancerListener
&<Common request parameters>

Normal response examples

XML format


JSON format


Error response example

JSON format

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

Error codes

See common error codes.