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

ASA REST File/Firmware Transfer

wanstor
Level 1
Level 1

Hi

 

Is there a way to transfer firmware to the ASA using REST?  Either through specifying a location to boot in the configuration or uploading the file?

 

Thanks in advance

1 Accepted Solution

Accepted Solutions

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

There is no specific call in the API, but you could use the "POST /api/cli"call. Passing it a JSON object:

{
  "commands": [
    "copy /noconfirm tftp:10.10.20.1/asa942-11-smp-k8.bin flash:"
  ]
}

Implement some logic in your script to verify the presence of the file, and then change the boot variable using separate calls to /api/cli .

 

cheers,

Seb.

 

View solution in original post

1 Reply 1

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

There is no specific call in the API, but you could use the "POST /api/cli"call. Passing it a JSON object:

{
  "commands": [
    "copy /noconfirm tftp:10.10.20.1/asa942-11-smp-k8.bin flash:"
  ]
}

Implement some logic in your script to verify the presence of the file, and then change the boot variable using separate calls to /api/cli .

 

cheers,

Seb.

 

Review Cisco Networking products for a $25 gift card