Cisco ASA API Setup

ASA Management Configuration

I have created a lab for an ASA using a single ASA to begin with. It’s a basic walkthrough to setup the ASA and the API.

Download and Transfer API Installer to ASA

The ASA API can be found here. I am running ASA 9.9, and I have used the file asa-restapi-7161-lfbff-k8.SPA. I have renamed it asa-api.SPA to make it easier to type in my tftp command.

I have used tftpd64 as my TFTP server. I have just set the directory as the Downloads folder. It’s nice and easy to use.

Back on the ASA I have used the following command to copy the file.

Configuring the API on the ASA

Cisco has a nice, easy to follow document that details the commands to use to install. I’ll dump the commands I used. Read the Cisco doc for full details.

Testing The API

Once complete, the ASA API should be working. It is important that the user to access the API has privilege level 15 to use the API fully.

  • Privilege level 3 or greater is required to invoke monitoring requests.
  • Privilege level 5 or greater is required for invoking GET requests.
  • Privilege level 15 is necessary for invoking PUT/POST/DELETE operations.

I have navigated to the physical interfaces page from my browser to see the management interface details. https://172.16.1.250/api/interfaces/physical

Cisco have published a list of the API endpoints.

Leave a Comment

Your email address will not be published. Required fields are marked *