Vai al contenuto
GET /v1/meta

Spec

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

Risposta di esempio

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

{
    "data": {
        "notes": "Disk size in TB (or any consistent unit for capacity). RAID 5 needs ≥3 disks, RAID 6 ≥4, RAID 10 an even number ≥4. Rebuild speed in MB/s (decimal TB by default).",
        "service": "raid-api",
        "formulae": {
            "raid0": "n·d (tol 0)",
            "raid1": "d (tol n−1)",
            "raid5": "(n−1)·d (tol 1)",
            "raid6": "(n−2)·d (tol 2)",
            "raid10": "(n/2)·d (tol ≥1)"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/compare": "Compare RAID 0/1/5/6/10 for the same disks and size.",
            "GET /v1/rebuild": "Rebuild time for a single disk at a given rebuild speed.",
            "GET /v1/capacity": "Usable/raw capacity, efficiency and fault tolerance for a RAID level."
        },
        "description": "RAID array calculator: usable capacity, fault tolerance and efficiency by level, a level comparison, and disk-rebuild time."
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:13.797Z",
        "request_id": "6ac034e5-b56d-439b-852c-d43e4d4e4d10"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}