Stop a listener.

Note the following when calling this API:

  • After the API is successfully called, the listener changes to the stopped status.
  • If the status of the Server Load Balancer instance to which the listener belongs is locked, the API cannot be called.

Request parameters

Name Type Required Description
Action String Yes The action to perform.  Valid value:

StopLoadBalancerListener

RegionId String Yes The ID of the region where the SLB instance is located.

You can obtain the region ID by calling the DescribeRegions API.

LoadBalancerId String Yes The ID of the Server Load Balancer instance.
Listenerport Integer Yes The front-end port of the listener that is used to receive incoming traffic and distribute the traffic to the backend servers.

Valid value: 1-65535

Response parameters

Name Type Description
RequestId String The ID of the request.

Examples

Request example

https://slb.aliyuncs.com/?Action=StopLoadBalancerListener
&LoadBalancerId=lb-t4nj5vuz8ish9emfk1f20
&ListenerPort=80
&CommonParameters

Response example

  • XML format
    <? xml version="1.0" encoding="UTF-8"? >
    <StopLoadBalancerListenerResponse>
    	<RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>
    </StopLoadBalancerListenerResponse>
  • JSON format
    {
      "RequestId": " CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
    }