TLS, WAF and site security
16 operations. Open one for its parameters, request body, responses and examples.
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/tenants/{tid}/letsencrypt | The panel's certificate authority (ADR 0012, E1); provider administrators on the root tenant only |
| PUT | /api/v1/tenants/{tid}/letsencrypt | Turn on Let's Encrypt (or switch between production and staging) with the administrator's acceptance of its Subscriber Agreement; audited (acme.enable). ACME_SET_BY_SETUP when setup.json chose the CA. Not for API keys |
| GET | /api/v1/tenants/{tid}/malware | Scans and findings of every site of the tenant |
| POST | /api/v1/tenants/{tid}/malware/findings/{fid} | Quarantine, restore or delete (from quarantine only) a finding's file; never automatic |
| GET | /api/v1/tenants/{tid}/malware/settings | Default scan schedule for sites whose plan does not set one; provider tenant only |
| PUT | /api/v1/tenants/{tid}/malware/settings | Change the defaults |
| PUT | /api/v1/tenants/{tid}/sites/{id}/blocked-ips 202 | Replace the addresses the site refuses with 403 (ADR 0024) |
| POST | /api/v1/tenants/{tid}/sites/{id}/certificate 202 | Start issuing a certificate; needs a verified hostname on a live site |
| PUT | /api/v1/tenants/{tid}/sites/{id}/force-https 202 | Redirect plain HTTP to HTTPS; needs an active certificate and URL Rewrite |
| GET | /api/v1/tenants/{tid}/sites/{id}/malware | The site's scans and findings |
| POST | /api/v1/tenants/{tid}/sites/{id}/malware/scans 202 | Scan the site with Defender and the panel's web shell rules (ADR 0084) |
| GET | /api/v1/tenants/{tid}/sites/{id}/waf | The site's web application firewall (ADR 0106) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/waf | Apply the site's firewall settings; turning it on needs URL Rewrite, ARR and a plan that includes it |
| GET | /api/v1/tenants/{tid}/sites/{id}/waf/events | Requests the site's firewall blocked or would have blocked, newest first (kept 30 days) |
| GET | /api/v1/tenants/{tid}/waf/defaults | The provider's firewall defaults for sites of its servers (ADR 0106) |
| PUT | /api/v1/tenants/{tid}/waf/defaults | Replace them; sites already set up keep their own values |