mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-17 04:15:02 +00:00
work work on hetzner integration
This commit is contained in:
1 parent
f85a4f04d9
commit
bf5c08d071
16 files changed
+628
-79
No files matched your search
@@ -89,6 +89,20 @@ class HetznerService
|
||||
return $response['server'] ?? [];
|
||||
}
|
||||
|
||||
public function getServer(int $serverId): array
|
||||
{
|
||||
$response = $this->request('get', "/servers/{$serverId}");
|
||||
|
||||
return $response['server'] ?? [];
|
||||
}
|
||||
|
||||
public function powerOnServer(int $serverId): array
|
||||
{
|
||||
$response = $this->request('post', "/servers/{$serverId}/actions/poweron");
|
||||
|
||||
return $response['action'] ?? [];
|
||||
}
|
||||
|
||||
public function deleteServer(int $serverId): void
|
||||
{
|
||||
$this->request('delete', "/servers/{$serverId}");
|
||||
|
||||
Reference in new issue
Block a user