Vai al contenuto
GET /v1/rebuild

Rebuild time

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/raid-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}