Live usage snapshot (CPU, memory, disk, uptime)
دسترسی لازم:
vm:read
محدودیت نرخ: خواندن پارامترهای مسیر (۱)
-
uuidstring - الزامی Server UUID (from GET /api/v1/vms)
پاسخها (۶)
-
200
Snapshot
data:
statuscpu_pctmem_mbmax_mem_mbdisk_mbmax_disk_mbuptime_sects - 401 unauthenticated — Authorization header missing or not "Bearer …"; token_invalid — token unknown, expired, revoked or the account is not active
- 403 scope_missing — the token lacks vm:read (details.required_scope)
- 404 not_found — unknown server or owned by another account
- 429 rate_limited — read limit reached; wait Retry-After seconds (details.retry_after_sec)
- 503 compute_unavailable — the server platform did not answer; retry later
نمونهٔ curl
$refs.sc.clientWidth + 1">
curl
curl \
-H "Authorization: Bearer $IRANCLAUD_TOKEN" \
"https://iranclaud.ir/api/v1/vms/YOUR_UUID/metrics"