11-17-2017 03:47 AM - edited 02-21-2020 06:46 AM
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
Solved! Go to Solution.
11-17-2017 04:16 AM
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.
11-17-2017 04:16 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide