Skip Navigation Links | |
Exit Print View | |
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
This command uploads a new system update image.
Example Upload Command Using curl:
curl --user root:letmein -k --data-binary @nas@2013.08.24,1-0.pkg.gz \ --header "Content-Type: application/octet-stream" \ https://zfssa.example.com/api/system/v1/updates
After the image is uploaded and is unpacked, the properties of the update image are returned. The HTTP status is set to 201 (Created) on success and the relative location of the new image is returned in the location header.
Example Results:
HTTP/1.1 201 Created X-Zfssa-Appliance-Api: 1.0 Content-Length: 541 Content-Type: application/json Location: /api/system/v1/updates/nas@2013.08.24,1-0 { "update": { "date": "Sat Aug 24 2013 17:54:23 GMT+0000 (UTC)", "href": "/api/system/v1/updates/nas@2013.08.24,1-0", "status": "current", "version": "2013.08.24,1-0", "update_deferred", "on_request" } }