cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
45
Views
0
Helpful
0
Replies
Highlighted
Beginner

Multi-Context ASA Automation (REST-API)

I try to automate ASA management tasks and I'm very successful using the REST-API on ASAs.


Unfortunately this is limited to single context ASA (CSCve51857)

 

According to the documentation REST on multi context ASAs is limited to the CLI-API

.../api/cli?context=<context>

but I can't get it to work. I just receive "500 Internal Server Error" for code working fine on non-context ASA. BTW: ".../doc/" doesn't work either, but ".../api/tokenservices" does.

 

The only workaround I found is to fall back to

.../admin/exec/changeto+context+blah/put+command+here

and split my commands into small chunks.

 

This is not the way I like to program in 2020. It's not much better than writing expect scripts.

Is there another way to automate ASA with contexts?

 

Any help is appreciated. Thank you.

Everyone's tags (5)
CreatePlease to create content
Content for Community-Ad
Cisco Community May 2020 Spotlight Award Winners
This widget could not be displayed.