Unsuspend Server with Application API

Unsuspend the given server.

Usage

<?php
    $pterodactyl->unsuspendServer($serverId);

    //For a server instance
    $server->unsuspend();
?>

Parameters

Note

The serverId is the id of the server, not identifier, externalId or uuid.

Parameter Description Rules
serverId The id of the server

Returns

None

Throwing exception if failed.

Example

<?php
    try {
        $pterodactyl->unsuspendServer(14);
    } catch(\Exception $e){
        print_r($e->getMessage());
    }
?>
<?php
    try {
        $server = $pterodactyl->server(14);
        $server->unsuspend();
    } catch(\Exception $e){
        print_r($e->getMessage());
    }
?>