Get the CrowdSec integration status
Returns whether the integration is on, whether bans and alerts are available, whether the LAPI answers and whether /ws/crowdsec streams changes. Unlike the other CrowdSec endpoints, it answers while the integration is off, with every field false.
session<token>Session cookie authentication.
Request fulfilled, document follows
application/json- response
Whether the CrowdSec integration is on and what it can do.
enabled*booleanTrue when CROWDSEC_LAPI_URL and CROWDSEC_BOUNCER_API_KEY are set.
lapiReachable*booleanWhether the LAPI answered the last decision stream poll. Before the first poll, or with no poller, GeoMetrikks asks the LAPI during this request.
liveUpdates?booleanWhether /ws/crowdsec streams decision changes. False when the scheduler is off or the server runs without its database.
falsewriteEnabled*booleanTrue when CROWDSEC_MACHINE_ID and CROWDSEC_MACHINE_PASSWORD are set too. Banning, unbanning and the alert endpoints need them. This does not test the credentials.
curl -X GET 'https://geometrikks.example.com/api/v1/crowdsec/status'{ "enabled": true, "lapiReachable": true, "liveUpdates": false, "writeEnabled": true}Count the active CrowdSec decisions by origin and scenario GET
Returns how many decisions are active across every origin, blocklists included, with the count per origin and the ten scenarios with the most decisions.
Unban an IP or range through CrowdSec POST
Deletes every active decision on exactly that IP or range, from any origin, and returns how many it deleted. An IP keeps a Range decision that covers it, so unban the range for that. Answers 403 when the server has no CrowdSec machine credentials, CROWDSEC_MACHINE_ID and CROWDSEC_MACHINE_PASSWORD. Needs a Read/write API key or a browser session.