#How to get all IP addresses (decisions) belonging to a given range using an HTTP API?

1 messages · Page 1 of 1 (latest)

grizzled bronze
#

This can be done very easily via cscli using the --contained flag:
cscli decisions list -r 1.2.3.0/24 --contained
This command will display all IP addresses belonging to the specified range.

But I can't do the same using the HTTP API.
The /decisions endpoint has a contains parameter, but it doesn't seem to work. Either it does something else entirely, or it doesn't work at all.
There's nothing like that in /alerts, but I tried that too. Nothing works.

weary wolfBOT
#
Important Information

Thank you for getting in touch with your support request. To expedite a swift resolution, could you kindly provide the following information? Rest assured, we will respond promptly, and we greatly appreciate your patience. While you wait, please check the links below to see if this issue has been previously addressed. If you have managed to resolve it, please use run the command /resolve or press the green resolve button below.

Log Files

If you possess any log files that you believe could be beneficial, please include them at this time. By default, CrowdSec logs to /var/log/, where you will discover a corresponding log file for each component.

Guide Followed (CrowdSec Official)

If you have diligently followed one of our guides and hit a roadblock, please share the guide with us. This will help us assess if any adjustments are necessary to assist you further.

Screenshots

Please forward any screenshots depicting errors you encounter. Your visuals will provide us with a clear view of the issues you are facing.