Ovh\Dedicated\Server\ServerClient::getBootOptions PHP Méthode

getBootOptions() public méthode

Get boot options
public getBootOptions ( $domain, $bootId ) : mixed
$domain
$bootId
Résultat mixed
    public function getBootOptions($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 . '/option')->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }