IPsec tunnel
get
/v1/admin/statistics/ip_sec_tunnel
This API gets IPsec tunnel statistics.
Request
Query Parameters
Back to Top
Response
200 Response
OK
405 Response
Invalid request method
Examples
Example of Accessing the API with cURL
The following example shows how to get IPsec tunnel statistics by submitting a GET request on the REST resource using cURL. If the request requires a timestamp, use the timestamp from the response of the /login API. For more information about cURL, see Use cURL.
curl -X GET \
-b cookies.txt \
"https://$IPADDR/v1/admin/statistics/ip_sec_tunnel"
Example of the Response Headers
The following shows an example of the response headers.
HTTP/1.1 200 OK
Date: Wed, 16 Dec 2020 23:38:05 GMT
Server: Apache/2.4.6 () OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.40
X-UA-Compatible: IE=Edge,chrome=1
Content-Length: 39
Content-Type: application/json; charset=ISO-8859-1
Example of the Response Body
The following example shows the contents of the response body in JSON format.
{
"status": "success",
"data": "Disabled."
}