Ask the community

Strange response querying IPsec tunnels in API

JohnD
New Contributor II

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

1 Solution
rclavero
Netskope
Netskope

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

View solution in original post

3 Replies 3
rclavero
Netskope
Netskope

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

tpimpao
New Contributor II

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

tpimpao
New Contributor II

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!?

Subscribe
Top Liked Authors
Labels

In order to view this content, you will need to sign in to your account. Simply click the "Sign In" button below

Sign In