Skip to content

API výsledkov

Získanie výsledkov skenu

Vráti jednotlivé výsledky kontrol pre dokončený sken.

GET /scans/{scanId}/results

Parametre dopytu

ParameterTypPopis
pageintegerČíslo stránky (predvolené: 1)
limitintegerVýsledkov na stránku (predvolené: 50, max: 200)
resultstringFilter: passed, failed, skipped
severitystringFilter: critical, high, medium, low
frameworkstringFiltrovať podľa rámca: cis, eidsca, cisa, nis2

Príklad požiadavky

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

Príklad odpovede

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ískanie jedného výsledku

Vráti detail jedného výsledku kontroly.

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

Príklad požiadavky

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

Príklad odpovede

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"
  }
}

Referencia polí

PoleTypPopis
test_idstringJedinečný identifikátor kontroly (napr. CIS.M365.1.1.1)
titlestringNázov kontroly čitateľný človekom
resultstringpassed, failed alebo skipped
severitystringcritical, high, medium alebo low
frameworkstringRámec definujúci túto kontrolu (cis, eidsca, cisa, nis2)
help_urlstringOdkaz na oficiálnu dokumentáciu alebo referenciu štandardu
remediation_stepsstringPodrobné pokyny na opravu
source_toolstringTyp skenovacieho nástroja (compliance alebo exposure)
raw_outputobjectSurový výstup vyhodnotenia (pre niektoré kontroly môže byť null)
Bola táto stránka užitočná?