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

Multi-Context ASA Automation (REST-API)

ANDREAS LIEBE
Level 1
Level 1

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.

0 Replies 0