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

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

Reboot
public reboot ( string $domain )
$domain string
    public function reboot($domain)
    {
        $domain = (string) $domain;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        try {
            $this->post('dedicated/server/' . $domain . '/reboot', array('Content-Type' => 'application/json;charset=UTF-8'))->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
    }