This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Restart VPN with API

I am trying to restart a vpn connection using the xg API 

So far I have come up with this xml syntax:

<Set operation="update">
 
<!-- Activate the vpn connection -->
<VPNIPSecConnection>
<Connection>
<Name>TunnelName</Name>
</Connection>
</VPNIPSecConnection>
</Set>

 

This works well if the tunnel is turned off - but I have a tunnel which I need to force down then back up with the API and this does not accomplish that. 

Any suggestions? 



This thread was automatically locked due to age.
  • As far as I can tell there is no complete set of documentation on the XG API anywhere! 

    I do not understand why because the API is so powerful and the documentation is more than halfway done! It seems like the guy writing just quit halfway through and Sophos never finished it!!

     

    I managed to work out a script to automate this - I created a blog post detailing the steps HERE. Hope that it helps - I plan to keep adding API tricks to the blog so keep checking back if your into that kind of thing!