TheHive-Project / TheHive

TheHive: a Scalable, Open Source and Free Security Incident Response Platform
https://thehive-project.org
GNU Affero General Public License v3.0
3.28k stars 604 forks source link

[Question] List cases for last 7 days/ values for range= key. #2467

Open cyber-urvesh opened 11 months ago

cyber-urvesh commented 11 months ago

Request Type

Question

Work Environment

Question Answer
Virtualized Env. True
vCPU 32
TheHive version / git hash 4.x, hash of the commit
Package Type RPM, DEB, Docker, Binary, From source
Database Cassandra
Index type Lucene
Attachments storage Loca
Browser type & version If applicable

Question

So I am trying to the below API : /api/case?range=all

Now here range=all returns list of all the cases. Now I am not able to find a parameter or key-value that would give me cases in last 7 days. So if I want to make a time-based search, e..g list of cases in last 7 days. How would we do that?

I tried using range=last7days but it did not work.

What all values "range=" supports? Any way to list cases for 7 days only.