Get the firewall state and rules of a server
دسترسی لازم:
vm:firewall:read
محدودیت نرخ: خواندن پارامترهای مسیر (۱)
-
uuidstring - الزامی Server UUID (from GET /api/v1/vms)
پاسخها (۶)
-
200
Enabled flag, default policies and rules (pos = position used by DELETE)
data:
enabledpolicy_inpolicy_outrules - 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:firewall: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/firewall"