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

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

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