VPN Status using API

Hello, attempting to pull status of VPN connection. Looking at the API documents there’s a documented way to enable or disable the connection but not something to view/display the status. What’s the best practice here?

/api/v1/system/network/vpn/openvpn/enable

Hi James,

Welcome to the Opto22 forums!

Best way to do that is to monitor the VPN IP address.
Here is a Node-RED flow that provides this (and other device health data).
You can get that IP a few different ways, so if Node-RED is not going to work for you, lets know what other options you have.

This endpoint will get you all the info that is on the network status page:

/api/v1/system/network

1 Like

Cool, so i’ll pull from that network object then. tx