server, Server::class); try { return $this->getHttpClient()->post( sprintf('/api/servers/%s/power', $this->server->uuid), ['json' => ['action' => $action]] ); } catch (TransferException $exception) { throw new DaemonConnectionException($exception); } } }