Skip to Content
ReferenceAPI referenceCrowdSec

List every range under an active decision

GET
/api/v1/crowdsec/banned-ranges

Returns each CIDR that holds a Range decision from any origin, once, with the strongest decision type on it and when that decision ends. GeoMetrikks bans a single-address DROP network with an Ip decision, so that network shows as its /32 or /128 while the decision lasts.

Authorization

cookiesession<token>

Session cookie authentication.

Response Body

Request fulfilled, document follows

application/json
  1. response
[index: integer]?

A range under an active decision.

GeoMetrikks bans a single-address DROP network with an Ip decision, and that network shows as its /32 or /128.

Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/crowdsec/banned-ranges'
Example Response200
[  {    "expiresAt": "2019-08-24T14:15:22Z",    "type": "string",    "value": "string"  }]