Hello. After looking through the documentation, I’m unable to find a way to pull a device’s WAN status (whether the specific WAN ID is online or offline).
There’s a way to see it in InControl but I’m wanting to do some reporting via the API and this data is pertinent.
Please refer to the InControl2 API document. You should able to get the WAN status if you keep poll /rest/o/{organization_id}/g/{group_id}/d/{device_id} for about 5 seconds.
The start_num and limit is no. of record to retrieve, say if start_num = 10 & limit = 10, we would retrieve record 10 to 19, order by down time in descending order.
Shall you have any further question related to InControl2 API, please send email to “[email protected]”, we would response quicker and directly thru email, thanks.