public getFloatingIp ( integer $floatingIpId ) : object | ||
$floatingIpId | integer | The unique identifier associated with allocated floating IP address. |
return | object | Returns details of the floating IP address. |
public function getFloatingIp($floatingIpId)
{
$result = null;
$response = $this->getClient()->call($this->service, sprintf('/floatingips/%s', $floatingIpId));
if ($response->hasError() === false) {
$result = json_decode($response->getContent());
$result = $result->floatingip;
}
return $result;
}