I am in the process of automating ontap upgrades for both 7mode and cmode systems and I am checking to see if there is a SDK equivalent to transfer the image file (*_image.tgz) to the filer using SDK ( I am using Python).
The only method I'm aware of is to make the images available via http(s) then download them to the system(s) using the system-image-fetch-package API for clustered Data ONTAP. I don't see an equivalent for 7-mode, but you could use the system-cli API to execute the CLI commands.
Hope that helps.
If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.