Viewing information about VPNs

You can use GET requests to list VPNs and view information about VPNs.

After logon, use this request to list all defined VPNs:

GET http://localhost:8082/7.2.1/elements/vpn

Note: In all examples, the VPN's ID number is 5.

After logon, use this request to view information about a VPN:

GET http://localhost:8082/7.2.1/elements/vpn/5

This request returns a 200 HTTP status response code and this result:

{
    "key":5
    "link":[
													{
             "href":"http://127.0.0.1:8082/7.2.1/elements/vpn/5/gateway_tree_nodes/central",
             "rel":"central_gateway_node"
             },
             
             {
             "href":"http://127.0.0.1:8082/7.2.1/elements/vpn/5/gateway_tree_nodes/satellite",
             "rel":"satellite_gateway_node"
             },
             
             {
             "href":"http://127.0.0.1:8082/7.2.1/elements/vpn/5/gateway_tree_nodes/mobile",
             "rel":"mobile_gateway_node"
             },
             
             {
             "href":"http://127.0.0.1:8082/7.2.1/elements/vpn/5/open",
             "rel":"open"
             },
             
             {
             "href":"http://127.0.0.1:8082/7.2.1/elements/vpn/5/save",
             "rel":"save"
             },
             
             {
             "href":"http://127.0.0.1:8082/7.2.1/elements/vpn/5/close",
             "rel":"close"
             },
             
             {
             "href":"http://127.0.0.1:8082/7.2.1/elements/vpn/5/validate",
             "rel":"validate"
             },
             
             {
             "href":"http://127.0.0.1:8082/7.2.1/elements/vpn/5/tunnels",
             "rel":"gateway_tunnel"
             },
             
             {
             "href":"http://127.0.0.1:8082/7.2.1/elements/vpn/5",
             "rel":"self",
             "type":"vpn"
             }],

    "mobile_vpn_topology_mode":"None",
    "name":"Corporate VPN",
    "nat":false,
    "read_only":false,
    "system":false,
    "vpn_profile":"http://127.0.0.1:8082/7.2.1/elements/vpn_profile/1"
}