API tracker result expire time

digiweb

Member
Mar 6, 2022
70
3
13
42
I'm calling the mail-related delivery records using the /api2/json/nodes/{node}/tracker/{id} section via the API.

The result is "null" for records older than 24 hours. Is there a setting for this?
 
what parameters do you use exactly?
 
you have to give the starttime and endtime as parameters too, else only the last 24hours will be searched
see
Code:
pmgsh help /nodes/{node}/tracker/someid --verbose
 
  • Like
Reactions: digiweb
I know this place. It doesn't say anything about showing the last 24 hours of data when no date is specified. I meant it.
 
yes it does, the docs of the parameters say:

endtime: Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.
starttime: Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.
 
  • Like
Reactions: digiweb

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!