Skip to content

API výsledků

API výsledků slouží k načítání nálezů ze skenů.

Získání výsledků skenu

Vrací jednotlivé výsledky kontrol pro dokončený sken.

GET /scans/{scanId}/results

Parametry dotazu

ParametrTypPopis
pageintegerČíslo stránky (výchozí: 1)
limitintegerPočet výsledků na stránku (výchozí: 50, max: 200)
resultstringFiltr: passed, failed, skipped
severitystringFiltr: critical, high, medium, low
frameworkstringFiltr podle frameworku: cis, eidsca, cisa, nis2

Příklad požadavku

bash
curl "https://api.aether365.io/scans/scan_abc123/results?result=failed&severity=critical" \
  -H "Authorization: Bearer <token>"

Příklad odpovědi

json
{
  "success": true,
  "data": [
    {
      "id": "result_001",
      "scan_id": "scan_abc123",
      "test_id": "CIS.M365.1.1.1",
      "title": "Ensure multifactor authentication is enabled for all users in administrative roles",
      "result": "failed",
      "severity": "critical",
      "framework": "cis",
      "help_url": "https://www.cisecurity.org/benchmark/microsoft_365",
      "remediation_steps": "1. Sign in to the Azure portal...",
      "source_tool": "compliance"
    }
  ],
  "meta": {
    "total": 12,
    "page": 1,
    "limit": 50
  }
}

Získání jednoho výsledku

Vrací detail jednoho jednotlivého výsledku kontroly.

GET /scans/{scanId}/results/{testId}

Příklad požadavku

bash
curl https://api.aether365.io/scans/scan_abc123/results/CIS.M365.1.1.1 \
  -H "Authorization: Bearer <token>"

Příklad odpovědi

json
{
  "success": true,
  "data": {
    "id": "result_001",
    "scan_id": "scan_abc123",
    "test_id": "CIS.M365.1.1.1",
    "title": "Ensure multifactor authentication is enabled for all users in administrative roles",
    "result": "failed",
    "severity": "critical",
    "framework": "cis",
    "help_url": "https://www.cisecurity.org/benchmark/microsoft_365",
    "remediation_steps": "1. Sign in to the Azure portal as a Global Administrator.\n2. Navigate to Microsoft Entra ID > Security > Conditional Access.\n3. Create or update a policy requiring MFA for all administrator roles.",
    "raw_output": {},
    "source_tool": "compliance"
  }
}

Reference polí

PoleTypPopis
test_idstringJedinečný identifikátor kontroly (např. CIS.M365.1.1.1)
titlestringSrozumitelný název kontroly
resultstringpassed, failed nebo skipped
severitystringcritical, high, medium nebo low
frameworkstringFramework definující kontrolu (cis, eidsca, cisa, nis2)
help_urlstringOdkaz na oficiální dokumentaci nebo referenci benchmarku
remediation_stepsstringPodrobné pokyny k nápravě
source_toolstringTyp skenovacího nástroje (compliance nebo exposure)
raw_outputobjectSurový výstup vyhodnocení (u některých kontrol může být null)
Byla tato stránka užitečná?