CISCO ASA REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 05:59 AM
Hi,
I am new to CISCO ASA and I have been trying to use ASA's REST API to get some information on AnyConnect Connection Profiles. Basically group policies, IP pools, etc.
I tried to hit the endpoint: /api/objects/networkobjects. But it returns, empty range or even if I tried.
/api/vpn/systemoptions, I get the following:
$VAR1 = '{"selfLink":"https://X.X.X.X:443/api/objects/networkobjects","rangeInfo":{"offset":0,"limit":0,"total":0},"items":[]}';
Could you please tell me what I can do to get the results? What am I doing wrong?
Thanks,
KPG
- Labels:
-
VPN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2020 03:37 AM
Hi, there's a lot of things that could be wrong.
Are you using a browser, Postman, Python, etc?
Have you looked into the REST API webinterface?
https://[ASAIP]:[port]/doc/
There you can see examples on POST, GET etc, and also the request itself. Even the request in Python, Perl and Javascript.
