#Is is possible to use API to get ONTAP image for upgrade?
1 messages · Page 1 of 1 (latest)
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
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 😅
In BlueXP there's a (kind of) new feature called Software updates where you can actually update your on-prem systems entirely via BlueXP. And with this method it also downloads the image to the cluster. So there must be some way to push an image to a cluster. (Never tried it though.)
https://docs.netapp.com/us-en/bluexp-software-updates/index.html
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