Laravel Hetzner Storagebox

PHP MIT

Production-ready Laravel package for integrating Hetzner Storage Box into Laravel applications using the native Storage facade and filesystem API.

Stars
19
Forks
0
Downloads
2,357
Open Issues
0
Files main

Repository Files

Loading file structure...
ENDPOINTS.md
# Hetzner Storage Box API Endpoints to SDK Methods Mapping

This document maps every endpoint in the Hetzner Console API for Storage Boxes to its corresponding SDK manager method.

## Storage Boxes

| HTTP Method | API Endpoint | SDK Method |
| ----------- | ------------ | ---------- |
| `GET` | `/storage_boxes` | `HetznerStorageBox::storageBoxes()->all()` |
| `POST` | `/storage_boxes` | `HetznerStorageBox::storageBoxes()->create($data)` |
| `GET` | `/storage_boxes/{id}` | `HetznerStorageBox::storageBoxes()->find($id)` |
| `PUT` | `/storage_boxes/{id}` | `HetznerStorageBox::storageBoxes()->update($id, $data)` |
| `DELETE` | `/storage_boxes/{id}` | `HetznerStorageBox::storageBoxes()->delete($id)` |
| `GET` | `/storage_boxes/{id}/folders` | `HetznerStorageBox::storageBoxes()->folders($id, $path)` |
| `GET` | `/storage_boxes/{id}/actions` | `HetznerStorageBox::storageBoxes()->actions($id)` |
| `POST` | `/storage_boxes/{id}/actions/change_protection` | `HetznerStorageBox::storageBoxes()->changeProtection($id, $delete)` |
| `POST` | `/storage_boxes/{id}/actions/change_type` | `HetznerStorageBox::storageBoxes()->changeType($id, $type)` |
| `POST` | `/storage_boxes/{id}/actions/reset_password` | `HetznerStorageBox::storageBoxes()->resetPassword($id, $password)` |
| `POST` | `/storage_boxes/{id}/actions/update_access_settings` | `HetznerStorageBox::storageBoxes()->updateAccessSettings($id, $settings)` |
| `POST` | `/storage_boxes/{id}/actions/rollback_snapshot` | `HetznerStorageBox::storageBoxes()->rollbackSnapshot($id, $snapshot)` |
| `POST` | `/storage_boxes/{id}/actions/enable_snapshot_plan` | `HetznerStorageBox::storageBoxes()->enableSnapshotPlan($id, $plan)` |
| `POST` | `/storage_boxes/{id}/actions/disable_snapshot_plan` | `HetznerStorageBox::storageBoxes()->disableSnapshotPlan($id)` |

## Storage Box Types

| HTTP Method | API Endpoint | SDK Method |
| ----------- | ------------ | ---------- |
| `GET` | `/storage_box_types` | `HetznerStorageBox::storageBoxTypes()->all()` |
| `GET` | `/storage_box_types/{id}` | `HetznerStorageBox::storageBoxTypes()->find($id)` |

## Actions

| HTTP Method | API Endpoint | SDK Method |
| ----------- | ------------ | ---------- |
| `GET` | `/storage_boxes/actions` | `HetznerStorageBox::actions()->all()` |
| `GET` | `/storage_boxes/actions/{id}` | `HetznerStorageBox::actions()->find($id)` |

## Locations

| HTTP Method | API Endpoint | SDK Method |
| ----------- | ------------ | ---------- |
| `GET` | `/locations` | `HetznerStorageBox::locations()->all()` |
| `GET` | `/locations/{id}` | `HetznerStorageBox::locations()->find($id)` |