Zum Inhalt springen
GET /v1/rebuild

Rebuild time

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/raid-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/raid-api/v1/rebuild" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/raid-api/v1/rebuild", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/raid-api/v1/rebuild");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/raid-api/v1/rebuild",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Rebuild time = disk bytes / rebuild speed. Larger disks widen the window where a second failure causes data loss (relevant for RAID 5/6).",
        "inputs": {
            "binary": false,
            "disk_size_tb": 4,
            "rebuild_speed_mb_s": 100
        },
        "rebuild_days": 0.46296,
        "rebuild_hours": 11.1111,
        "rebuild_seconds": 40000
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:13.649Z",
        "request_id": "2dc957ce-7fe9-41d4-b990-f317428fee2a"
    },
    "status": "ok",
    "message": "Rebuild time",
    "success": true
}