public deleteFloatingIp ( integer $floatingIpId ) : boolean | ||
$floatingIpId | integer | Floating IP address ID |
return | boolean | Returns true on success or throws an exception |
public function deleteFloatingIp($floatingIpId)
{
$result = false;
$response = $this->getClient()->call($this->service, sprintf('/floatingips/%s', $floatingIpId), null, 'DELETE');
if ($response->hasError() === false) {
$result = true;
}
return $result;
}