Scalr\Tests\Functional\Api\Service\User\V1beta0\Controller\ServersTest::rebootServer PHP Method

rebootServer() public method

Reboots the server
public rebootServer ( string $serverId, boolean $hard = false ) : Scalr\Tests\Functional\Api\ApiTestResponse
$serverId string Server's UUID
$hard boolean optional
return Scalr\Tests\Functional\Api\ApiTestResponse
    public function rebootServer($serverId, $hard = false)
    {
        $uri = self::getUserApiUrl("/servers/{$serverId}/actions/reboot");
        return $this->request($uri, Request::METHOD_POST, [], ['hard' => $hard]);
    }