Viewing information about endpoint-to-endpoint tunnels
You can use GET requests to list the tunnels between endpoints in a VPN, and to view information about a specific endpoint-to-endpoint tunnel.
After opening the VPN topology, use this request to list the endpoint-to-endpoint tunnels for a specific gateway:
GET http://localhost:8082/7.1/elements/vpn/5/tunnels/ADcAOw==/endpoints
The request returns a 200 HTTP status response code and this result:
{
"result":
[
{
"href":"http://localhost:8082/7.1/elements/vpn/5/tunnels/ADcAOw==/endpoints/AGoAcg==",
"name":"Gateway EndPoint Tunnel 106-114",
"type":"gateway_endpoint_tunnel"
},
]
}
Use this request to view information about a specific endpoint-to-endpoint tunnel:
GET http://localhost:8082/7.1/elements/vpn/5/tunnels/ADcAOw==/endpoints/AGoAcg==
The request returns a 200 HTTP status response code and this result:
{
"enabled":true,
"endpoint_1":"http://localhost:8082/7.1/elements/fw_cluster/1554/internal_gateway/55/internal_endpoint/106",
"endpoint_2":"http://localhost:8082/7.1/elements/fw_cluster/1563/internal_gateway/59/internal_endpoint/114",
"key":0,
"link":[
{
"href":"http://localhost:8082/7.1/elements/vpn/5/tunnels/ADcAOw==/endpoints/AGoAcg==",
"rel":"self",
"type":"gateway_endpoint_tunnel"
}
]
}