Upgrade the Nodegrid OS via API

Upgrade the Nodegrid OS via API

API endpoint can be used to upgarde the Nodegrid ISO.

Endpoint - /system/toolkit/upgrade 
Request - POST

If you are upgrading locally by copying an ISO image file in /var/sw/ then use this payload information,

"image-location": "upgrade-local",
"filename": "Nodegrid.iso",
"if_downgrading": "restore ",
"format_partitions_before_upgrade": " " 
Filename would be the name of the file you copied in /var/sw/

If you are upgrading via remote server then,

"image-location": "upgrade-remote",
"username": "username",
"password": "****",
"url": "http://<server_ip>:80/Nodegrid.iso",
"if_downgrading": " ",
"format_partitions_before_upgrade": " " 

If you are using ftp, you can use ftp://<server_ip>:21/Nodegrid.iso as url.

Note: If you are downgrading the version, If_downgrading value would be restore else it will apply factory default config.