Vai al contenuto
GET /v1/compare

Compare RAID levels

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/compare" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/raid-api/v1/compare", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/raid-api/v1/compare");
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/compare",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Levels that need more (or an even number of) disks than provided are omitted.",
        "inputs": {
            "disks": 6,
            "disk_size": 4,
            "raw_capacity": 24
        },
        "levels": [
            {
                "level": "RAID 0",
                "usable_capacity": 24,
                "efficiency_percent": 100,
                "fault_tolerance_disks": 0
            },
            {
                "level": "RAID 1",
                "usable_capacity": 4,
                "efficiency_percent": 16.67,
                "fault_tolerance_disks": 5
            },
            {
                "level": "RAID 5",
                "usable_capacity": 20,
                "efficiency_percent": 83.33,
                "fault_tolerance_disks": 1
            },
            {
                "level": "RAID 6",
                "usable_capacity": 16,
                "efficiency_percent": 66.67,
                "fault_tolerance_disks": 2
            },
            {
                "level": "RAID 10",
                "usable_capacity": 12,
                "efficiency_percent": 50,
                "fault_tolerance_disks": 1
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:13.550Z",
        "request_id": "23820bf6-38b7-4334-80e1-ec780ddc5953"
    },
    "status": "ok",
    "message": "Compare RAID levels",
    "success": true
}