API tracker result expire time

digiweb

Member
Mar 6, 2022
46
3
8
40
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?
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
8,062
992
163
34
Vienna
what parameters do you use exactly?
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
8,062
992
163
34
Vienna
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

digiweb

Member
Mar 6, 2022
46
3
8
40
worked. thank you.
I wish they would specify such details in the api documentation.
 

digiweb

Member
Mar 6, 2022
46
3
8
40
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.
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
8,062
992
163
34
Vienna
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 your own in 60 seconds.

Buy now!