#Is is possible to use API to get ONTAP image for upgrade?

1 messages · Page 1 of 1 (latest)

gentle mist
#

Hi All.
We are using Ansible for automation upgrades,
Is it possible to use API to get the ONTAP image?
Or the only way is to download from the support site?

dull sinew
#

not sure what you mean by downloading it from the support site.
If you mean it has to be downloaded from the support site and then uploaded to the netapp, no there is no way to do that.
Once you download it from the netapp support site you can put it somewhere on your network or anything that has ftp/http access and get it from there on each node

https://docs.netapp.com/us-en/ontap-restapi/ontap/post-cluster-software-download.html
https://docs.netapp.com/us-en/ontap-restapi/ontap/post-cluster-software-upload.html

we typically download the images from support and put them on a dedicated 'maintenance' server that contains patches/updates for every product we have
\OS\NetApp\Ontap\9.15.1p17
\OS\Microsoft\Server\2022
\patch\Trellix\AVS\3.1.1p3

etc, etc

And then we get those images from the netapp cluster via API/GUI as needed for the updates

But the image has to be pulled from support with an active account with permissions, you can't automate that

harsh swan
#

Downloading the image directly from NetApp was possible in the past (DataONTAP 7.x days). You just gave it the download URL and provided your NOW account as login. It's a bit sad that this doesn't work anymore 😅

rotund prairie
vestal plaza
#

It was added to 9.6 and it publicly documented. I can't provide a direct link, but search this swagger interface for upload.
https://docs.netapp.com/us-en/ontap-restapi/ontap/swagger-ui/index.html
I referenced this page to assemble a powershell equvelent:
https://stackoverflow.com/questions/42395638/how-to-use-invoke-restmethod-to-upload-jpg
The tried it out in Lab on Demand here:
For Customers: https://labondemand.netapp.com/lab/ontapupgrade-hol
For employees and partners: https://labondemand.netapp.com/lab/ontapupgrade