Skip to main content
Solved

Strange response querying IPsec tunnels in API

  • March 3, 2023
  • 3 replies
  • 81 views

Forum|alt.badge.img+7

Hello,

I'm trying to query IPsec tunnel status via API v2, but the response I get via the swagger UI is 

{"status": 405, "result": "method not allowed, please remove IPSec tunnels from webui to proceed further"}

 

The token is good as other endpoints work and the /api/v2/steering/ipsec/ endpoint is allowed for this token.

Any clue why I'm getting this response?

 

-JD

Best answer by rclavero

Hi John,

once API is enabled for tenant, then you cannot use web UI to create or manage tunnels. 

In other words, if you want to monitor the tunnels using an API call, it's required to create those tunnels using the api, too. 

hth,

Roberto

This topic has been closed for replies.

3 replies

Forum|alt.badge.img+10
  • New Member III
  • Answer
  • March 15, 2023

Hi John,

once API is enabled for tenant, then you cannot use web UI to create or manage tunnels. 

In other words, if you want to monitor the tunnels using an API call, it's required to create those tunnels using the api, too. 

hth,

Roberto


Forum|alt.badge.img+4
  • New Member III
  • September 6, 2023

Hi @rclavero 

Just to confirm, if the IPSEC tunnel was created in the web UI i cannot use the API V2 to query the IPSEC tunnel list?

 

Thanks

TP


Forum|alt.badge.img+4
  • New Member III
  • November 23, 2023

If i wan't to monitor the bandwidth from my GRE tunnel or IPSEC and if both was been created in the UI i will not be able to use the API!?