getHttpClient()->post(sprintf('/api/servers/%s/transfer', $this->server->uuid), [ 'json' => [ 'server_id' => $this->server->uuid, 'url' => $targetNode->getConnectionAddress() . '/api/transfers', 'token' => 'Bearer ' . $token->toString(), 'server' => [ 'uuid' => $this->server->uuid, 'start_on_completion' => false, ], ], ]); } catch (GuzzleException $exception) { throw new DaemonConnectionException($exception); } } }