Viewing information about gateway-to-gateway tunnels
You can use GET requests to list the tunnels between gateways in a VPN, and to view information about a specific gateway-to-gateway tunnel.
After opening the VPN topology, use this request to list the gateway-to-gateway tunnels in the VPN:
GET http://localhost:8082/7.0/elements/vpn/5/tunnels
This request returns a 200 HTTP status response code and this result:
{
"result":
[
{
"href":"http://127.0.0.1:8082/7.0/elements/vpn/5/tunnels/ADcAOw==",
"name":"Gateway Tunnel 55-59",
"type":"gateway_tunnel"
},
]}
Use this request to view information about a specific gateway-to-gateway tunnel:
GET http://localhost:8082/7.0/elements/vpn/5/tunnels/ADcAOw==
This request returns a 200 HTTP status response code and this result:
{
"enabled":true,
"gateway_node_1":"http://localhost:8082/7.0/elements/vpn/5/gateway_tree_nodes/satellite/55",
"gateway_node_2":"http://localhost:8082/7.0/elements/vpn/5/gateway_tree_nodes/central/59",
"key":0,
"link":[
{
"href":"http://localhost:8082/7.0/elements/vpn/5/tunnels/ADcAOw==",
"rel":"self",
"type":"gateway_tunnel"
},
{
"href":"http://localhost:8082/7.0/elements/vpn/5/tunnels/ADcAOw==/endpoints",
"rel":"gateway_endpoint_tunnel",
"type":"gateway_endpoint_tunnel"
}
],
"preshared_key":"*****"
}