Go to main content
Oracle® ZFS Storage Appliance RESTful API ガイド、Release OS8.6.x

印刷ビューの終了

更新: 2016 年 9 月
 
 

システム更新のアップロード

このコマンドは、新しいシステム更新イメージをアップロードします。

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

イメージがアップロードされ解凍されると、更新イメージのプロパティーが返されます。成功すると、HTTP ステータスが 201 (Created) に設定され、新しいイメージの相対的な場所がロケーションヘッダーで返されます。

結果の例:

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"
    }
}