API VPN FortiClient

I am trying to access FortiClient VPN using its API.

I can create a VPN connection using the native FortiClient GUI. Using the API, I cannot get any results from the existing connections.

API documentation can be found at: http://docs.fortinet.com/uploaded/files/1199/FortiClient_Admin_Guide.pdf p.63

I am trying to get a list of available tunnels, for example with no results:

using System;
using FCCOMINTDLLLib;
namespace ConsoleApplication4
{
    class Program
    {
        static void Main(string[] args)
        {
            FCCOMINTDLLLib.VPN vpn = new VPNClass();
            var tunnels = vpn.GetTunnelList();
        }
    }
}

      

How to fill a variable with a tunnels

list of connections to be returned by the callGetTunnelList();

+3


source to share





All Articles