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

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

.. not tested
public getBootOptionsProperties ( $domain, $bootId, $option ) : object
$domain -> Server that this applies to
$option -> option this applies to
Результат object result set throws BadMethodCallException if any param is not defined usual handling for 400/404 errors
    public function getBootOptionsProperties($domain, $bootId, $option)
    {
        $domain = (string) $domain;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        $bootId = (string) $bootId;
        if (!$bootId) {
            throw new BadMethodCallException('Parameter $bootId is missing.');
        }
        $option = (string) $option;
        if (!$option) {
            throw new BadMethodCallException('Parameter $option is missing.');
        }
        try {
            $r = $this->get('dedicated/server/' . $domain . '/boot/' . $bootId . '/option/' . $option)->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }