Scalr\Service\OpenStack\Services\Network\V2\NetworkApi::getFloatingIp PHP Метод

getFloatingIp() публичный Метод

Lists details of the floating IP address associated with floating_IP_address_ID.
public getFloatingIp ( integer $floatingIpId ) : object
$floatingIpId integer The unique identifier associated with allocated floating IP address.
Результат 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;
    }