Elastic Load Balancing
Developer Guide (API Version 2012-06-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Delete a Listener from Your Load Balancer

This section describes how to delete a listener from your existing load balancer. Before you get started, be sure you've done the following:

The following sections include instructions for deleting a listener from the specified port of your existing load balancer using the AWS Management Console, command line interface (CLI), or the Query API. In this example, you delete a listener from port 80 of your load balancer MyLoadBalancer.

Using the AWS Management Console

To delete a listener from your load balancer

  1. Sign in to the AWS Management Console and open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. On the Amazon EC2 console Resources page, in the EC2 Dashboard pane, under NETWORK & SECURITY, click Load Balancers.

  3. On the Load Balancers page, select your load balancer.

  4. The bottom pane displays the details of your load balancer.

  5. Click the Listeners tab.

  6. In the Listeners pane, click Edit.

  7. In the Edit Listeners page, click the delete icon next to the listener you want to delete.

  8. Click Save.

Using the Command Line Interface

To delete a listener from your load balancer

  1. Enter the command elb-delete-lb-listeners as in the following example.

    PROMPT> elb-delete-lb-listeners MyLoadBalancer lb-ports 80

  2. Enter the command elb-describe-lbs as in the following example to view the updated details of your load balancer MyLoadBalancer.

    PROMPT> elb-describe-lbs MyLoadBalancer

    The operation returns a list of updated configurations of your load balancer.

Using the Query API

To delete a listener from your load balancer

Call DeleteLoadBalancerListeners with the following parameters:

  • LoadBalancerPorts = 80

  • LoadBalancerName = MyLoadBalancer

Call DescribeLoadBalancers as in the following example to view the updated configuration information of your load balancer.

  • LoadBalancerName = MyLoadBalancer

The operation returns a list of updated configurations of your load balancer.

For detailed descriptions of this Elastic Load Balancing API action, see the DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference.