API referenceSections

HardeningResult

HardeningResult object
  • action string required
    Allowed values: "scan" "preview" "apply" "revert"
  • fix string optional
  • before any optional

    State read before (kept by the panel to undo)

  • after any optional

    State after

  • changes array<HardeningChange> required
  • warnings array<string> required

    Codes: REBOOT_REQUIRED, OLD_CLIENTS_TLS, RDP_NLA_CLIENTS, SMB1_CLIENTS, FIREWALL_LISTENING_PORTS, LOCKOUT_ADMINS, HEADERS_SITE_CONFIG, NO_REVERT, ALREADY_APPLIED

  • reboot_required boolean required
  • reversible boolean required
  • passes boolean required
  • blocked string optional

    In a preview: the code an apply would be refused with

Used by

POST/api/v1/tenants/{tid}/servers/{id}/hardening/{fix}/previewWhat a fix would change, its warnings and whether it needs a restart; nothing is written
POST/api/v1/tenants/{tid}/servers/{id}/hardening/{fix}/applyApply 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}/revertPut back the state kept by the last apply; refused for Defender (never turned off)