delete_load_balancer_listeners ( $load_balancer_name, $load_balancer_ports, $opt )

Deletes listeners from the LoadBalancer for the specified port.

Access

public

Parameters

Parameter

Type

Required

Description

$load_balancer_name

string

Required

The mnemonic name associated with the LoadBalancer.

$load_balancer_ports

integer

Required

The client port number(s) of the LoadBalancerListener(s) to be removed.

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Examples

Delete a load balancer listener.

$elb = new AmazonELB();

$response = $elb->delete_load_balancer_listeners('my-load-balancer', array(80, 65533));

// Success?
var_dump($response->isOK());
Result:
bool(true)

Related Methods

Source

Method defined in services/elb.class.php | Toggle source view (12 lines) | View on GitHub

public function delete_load_balancer_listeners($load_balancer_name, $load_balancer_ports, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['LoadBalancerName'] = $load_balancer_name;
    
    // Required list (non-map)
    $opt = array_merge($opt, CFComplexType::map(array(
        'LoadBalancerPorts' => (is_array($load_balancer_ports) ? $load_balancer_ports : array($load_balancer_ports))
    ), 'member'));

    return $this->authenticate('DeleteLoadBalancerListeners', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback