work work on hetzner integration

This commit is contained in:
Andras Bacsai committed 2025-10-09 16:54:13 +02:00
1 parent f85a4f04d9
commit bf5c08d071
16 files changed
+628 -79

No files matched your search

+14
View File
@@ -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}");