Ovh\Dedicated\Server\ServerClient::getIps PHP Метод

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

Get IPs
public getIps ( $domain ) : Guzzle\Http\EntityBodyInterface | string
$domain
Результат Guzzle\Http\EntityBodyInterface | string
    public function getIps($domain)
    {
        $domain = (string) $domain;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        try {
            $r = $this->get('dedicated/server/' . $domain . '/ips')->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }