unassign_private_ip_addresses ( $network_interface_id, $private_ip_address, $opt )

Access

public

Parameters

Parameter

Type

Required

Description

$network_interface_id

string

Required

$private_ip_address

string
array

Required

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/ec2.class.php | Toggle source view (12 lines) | View on GitHub

public function unassign_private_ip_addresses($network_interface_id, $private_ip_address, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['NetworkInterfaceId'] = $network_interface_id;
    
    // Required list (non-map)
    $opt = array_merge($opt, CFComplexType::map(array(
        'PrivateIpAddress' => (is_array($private_ip_address) ? $private_ip_address : array($private_ip_address))
    )));

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

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback