I am getting the below when using valid Gateway IDs on the GET /api/gateways/{gateway_id}/pings/last API.
{
“error”: “object does not exist”,
“message”: “object does not exist”,
“code”: 5,
“details”: []
}
I am able to GET using api/gateways without any issue. I have tried with multiple Gateway IDs which have been returned using the api/gateways. Just for clarity I have been using single Gateway IDs e.g. c0ee40ffff294cf5
Has anyone seen this before or have I missed something obvious?
Thanks for your reply - I am assuming that ‘last seen’ time in the main application server portal is pulling the last ping time? In the portal all the Gateway IDs I have been testing have been seen in ‘a few seconds ago’
I am trying to pull the ‘last seen’ for each Gateway into a clients Portal. Maybe this is the wrong way to be doing it?
The ping you are trying to get isn’t related to gateway stats, is related to gateway discovery. On the other hand, just getting a gateway will give you a lastSeenAt with the response, while /api/gateways/{gateway_id}/stats lets you retrieve stats.