HardeningResult
HardeningResult objectactionstring requiredAllowed values:"scan""preview""apply""revert"fixstring optionalbeforeany optionalState read before (kept by the panel to undo)
afterany optionalState after
warningsarray<string> requiredCodes: REBOOT_REQUIRED, OLD_CLIENTS_TLS, RDP_NLA_CLIENTS, SMB1_CLIENTS, FIREWALL_LISTENING_PORTS, LOCKOUT_ADMINS, HEADERS_SITE_CONFIG, NO_REVERT, ALREADY_APPLIED
reboot_requiredboolean requiredreversibleboolean requiredpassesboolean requiredblockedstring optionalIn a preview: the code an apply would be refused with
Used by
| POST | /api/v1/tenants/{tid}/servers/{id}/hardening/{fix}/preview | What a fix would change, its warnings and whether it needs a restart; nothing is written |
| POST | /api/v1/tenants/{tid}/servers/{id}/hardening/{fix}/apply | Apply a fix through a signed broker job, read it back, keep the state before for undo, audit and re-check |
| POST | /api/v1/tenants/{tid}/servers/{id}/hardening/{fix}/revert | Put back the state kept by the last apply; refused for Defender (never turned off) |