API referenceSections

TLS, WAF and site security

16 operations. Open one for its parameters, request body, responses and examples.

MethodPathSummary
GET/api/v1/tenants/{tid}/letsencryptThe panel's certificate authority (ADR 0012, E1); provider administrators on the root tenant only
PUT/api/v1/tenants/{tid}/letsencryptTurn 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}/malwareScans 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/settingsDefault scan schedule for sites whose plan does not set one; provider tenant only
PUT/api/v1/tenants/{tid}/malware/settingsChange the defaults
PUT/api/v1/tenants/{tid}/sites/{id}/blocked-ips 202Replace the addresses the site refuses with 403 (ADR 0024)
POST/api/v1/tenants/{tid}/sites/{id}/certificate 202Start issuing a certificate; needs a verified hostname on a live site
PUT/api/v1/tenants/{tid}/sites/{id}/force-https 202Redirect plain HTTP to HTTPS; needs an active certificate and URL Rewrite
GET/api/v1/tenants/{tid}/sites/{id}/malwareThe site's scans and findings
POST/api/v1/tenants/{tid}/sites/{id}/malware/scans 202Scan the site with Defender and the panel's web shell rules (ADR 0084)
GET/api/v1/tenants/{tid}/sites/{id}/wafThe site's web application firewall (ADR 0106)
PUT/api/v1/tenants/{tid}/sites/{id}/wafApply 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/eventsRequests the site's firewall blocked or would have blocked, newest first (kept 30 days)
GET/api/v1/tenants/{tid}/waf/defaultsThe provider's firewall defaults for sites of its servers (ADR 0106)
PUT/api/v1/tenants/{tid}/waf/defaultsReplace them; sites already set up keep their own values