Swagger UI lists unsupported API endpoints?
Hi,
I'am trying to gather the status of VPN connections via API on my TZ 400 running 6.5.4.7 but
/api/sonicos/reporting/tunnel-interfaces/vpn/status
always returns
{ "status": { "success": false, "info": [ { "level": "error", "code": "E_INVALID_API_CALL", "message": "API endpoint is incomplete." } ] } }
Does this mean the endpoint is not supported on Gen 6? Then why it's listed in the first place in the Swagger UI?
Another dream crushed to have the VPN status reported back to ZABBIX, because SNMP lacks this information and now API?
--Michael@BWC
Best Answers
-
John_Lasersohn Moderator
One of our Sr. engineer created a bug report about this earlier today. It is Gen6-2130 and is assigned to a developer.
5 -
Jaime SonicWall Employee
Hi Michael,
API support on Gen6 is limited. I can confirm that endpoint is not supported on Gen6. It is supported on Gen7. The API link within the SonicOS management UI should direct you to the correct API documentation on Swagger, however if you are running 6.5.4.7-83n the Gen7 API is being presented instead. While we work to fix that, you can reach the correct Swagger API page by simply changing the version= in your browser's address bar to 6.5.4.6-79n. Alternatively, here's a link you can use:
6
Answers
Hi @Jaime
thanks for the information, even it's very unfortunate, last chance to get the VPN status back into ZABBIX gone.
Next stop, Gen7.
--Michael@BWC