Apply a fix through a signed broker job, read it back, keep the state before for undo, audit and re-check
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/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
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
fix | path | string | required | Allowed values: "firewall" "rdp_nla" "smb1" "defender" "defender_signatures" "legacy_tls" "guest" "lockout" "iis_server_header" "iis_secure_headers" |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
Content type: application/json
open_listeningboolean optionalFirewall: also allow the ports programs listen on now
Example
{
"open_listening": true
}Responses
200 Result
Content type: application/json
actionstring requiredAllowed values:"scan""preview""apply""revert"fixstring optionalbeforeany optionalState read before (kept by the panel to undo)
afterany optionalState after
itemstring requiredbeforestring requiredafterstring required
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
Example
{
"action": "scan",
"fix": "string",
"before": null,
"after": null,
"changes": [
{
"item": "string",
"before": "string",
"after": "string"
}
],
"warnings": [
"string"
],
"reboot_required": true,
"reversible": true,
"passes": true,
"blocked": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required