detach_load_balancer_from_subnets ( $load_balancer_name, $subnets, $opt )

Removes subnets from the set of configured subnets in the VPC for the LoadBalancer.

After a subnet is removed all of the EndPoints registered with the LoadBalancer that are in the removed subnet will go into the OutOfService state. When a subnet is removed, the LoadBalancer will balance the traffic among the remaining routable subnets for the LoadBalancer.

Access

public

Parameters

Parameter

Type

Required

Description

$load_balancer_name

string

Required

The name associated with the LoadBalancer to be detached. The name must be unique within the client AWS account.

$subnets

string
array

Required

A list of subnet IDs to remove from the set of configured subnets for the LoadBalancer. Pass a string for a single value, or an indexed array for multiple values.

$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.

Source

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

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

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

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback