**test
Hi Jay,
A follow up question if I may. What is the default timeframe for a request to GET /central/v1/notifications ?
As an example, I have two alerts with a severity level of Major in my default group. One of these occurred on the 20th February.
If I make a request to GET /central/v1/notifications with no other parameters than the token, I get no results, just an empty list. Likewise, if I only specify a severity level parameter = {"level": "Major"}, I get no results, just an empty list.
{
"count": 0,
"notifications": []
}
But, if I make a request with the following parameters:
{
"access_token": "my_token",
"from_timestamp: my_start_time,
"to_timestamp: my_stop_time,
}
Where start and stop are the 19th Feb and the 21st Feb, then I get the correct alert in the results.
{
"count": 1,
"notifications": [
{
"acknowledged": false,
"created_timestamp": 1582194484,
"description": "New AP with Name removed and MAC address removed detected, Group:default",
"group_name": "default",
"id": "removed",
"labels": [],
"severity": "Major",
"state": "Open",
"timestamp": 1582194484,
"type": "New AP detected"
}
]
}
So my question is, what is the default timeframe that the API returns results for when queried without timestamp parameters?
Cheers,
Conor
P.S. It would be fantastic if we could use Markdown in this forum. Would make writing code snippets so much nicer, both for author and reader. Is there a way I could suggest this to Aruba Airheads?