cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1404
Views
0
Helpful
1
Replies

CISCO ASA REST API

kpgplusplus
Level 1
Level 1

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

1 Reply 1

girafskind
Level 1
Level 1

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.