OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: mehdi_fa on March 03, 2020, 05:41:11 pm

Title: Api issue on module ipsec
Post by: mehdi_fa on March 03, 2020, 05:41:11 pm
Hi there,

I'm trying to use the ipsec module API as described by documentation but I'm facing issue when calling the endpoint.

OPNsense version: 19.1.10

What've tried: curl -XGET -v -k -u "$key":"$secret" "https://myOPNsense/api/ipsec/key_pairs/searchItem"

What is returned: {"message":"controller OPNsense\\Core\\Api\\IndexController not found","status":400}

Is the API fully implemented ? or is it a bug already fixed in earlier version ?

thanks !
Title: Re: Api issue on module ipsec
Post by: mimugmail on March 04, 2020, 09:30:59 am
IPsec is not API enabled yet ... the guys are currently working on API-enabling Firewall rules.
Title: Re: Api issue on module ipsec
Post by: mehdi_fa on March 05, 2020, 10:38:10 am
thanks !  :)