I'm currently working on a project that involves monitoring user data in a system through a REST API. Specifically, I need to retrieve the total download and upload statistics for users, as well as their uptime.
In the past, I was able to access this information using the /user-manager/user/monitor 1,2,3 command. However, I'm now looking for a way to achieve the same results programmatically using the REST API.
I have tried using the following curl request:
Code: Select all
curl --location 'https://router/rest/user-manager/user/monitor' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic aXJhbjgwLWFwaTpxMTMy' \
--data '{"numbers":1}'
I've read through the API documentation, but I couldn't find any specific endpoints or methods related to user monitoring. I'm wondering if there's an alternative endpoint or a specific API call that allows me to obtain this data?
If anyone has experience working with this particular REST API or has encountered a similar challenge, I would greatly appreciate your guidance. Any code examples, API references, or pointers in the right direction would be incredibly helpful.
Thank you in advance for your support!