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

ASA REST API and Multicontext

kerrymilestone
Level 1
Level 1

ref:

http://www.cisco.com/c/en/us/td/docs/security/asa/api/qsg-asa-api.pdf

 

In the above document, there is no mention about multiconext.  Should the agent go in the system context, or each admin context.  There is also no mention of contexts being in routed or transparent mode, or are the queries built up similar to the favourite 'ol wget

wget -q --user=liketoseeplease --password=yesyoucansee  "https://192.168.257.1/admin/exec/changeto context MYCONTEXT/sh arp" -O -

I'm also going to assume, that this will install fine in an ASA Service Module?

Sorry to ask, but I don't have a spare ASA to 'play' with to post answers.

 

Many thanks,

Kerry

 

 

1 Reply 1

kerrymilestone
Level 1
Level 1

ahhh.... so, in release notes for 9.4

 

 

Limited multiple-context support

The REST API agent can now be enabled in multi-context mode; the CLI commands can be issued only in system-context mode (same commands as single-context mode).

Pass-through CLI API commands can be used to configure any context, as follows.

https://<asa_admin_context_ip>/api/cli?context=<context_name>
 

If the context parameter is not present, it is assumed that the request is directed to the admin context.

Review Cisco Networking for a $25 gift card