Go to main content

Oracle® ZFS Storage Appliance RESTful API ガイド、Release OS8.8.x

印刷ビューの終了

更新: 2021 年 8 月
 
 

プールからのストレージの削除

このコマンドは、プールにストレージを追加するコマンドに似ています。ストレージを削除すると、キャッシュおよびログストレージデバイスが既存のプールから削除されます。目的のタイプ、シャーシ番号、およびプールから削除するストレージデバイスの数を含む本文と一緒に、href pool/remove を送信します。

リクエストの例:

PUT /api/storage/v1/pools/p1/remove HTTP/1.1
Host: zfs-storage.example.com:215
Authorization: Basic Tm8gcGVla2luZyE=
Content-Type: application/json
Accept: application/json
{
    "0-cache" : 2
}  

結果例:

HTTP/1.1 202 Accepted  

削除可能なデバイスの数を表示するには、props 問合せパラメータを true に設定します。

リクエストの例:

PUT /api/storage/v1/pools/p1/remove?props=true HTTP/1.1
Host: zfs-storage.example.com
Authorization: Basic Tm8gcGVla2luZyE=
Content-Type: application/json
Accept: application/json

結果例:

HTTP/1.1 200 OK
Content-Type: application/json

{
      "props": [
          {
              "choices": [
                  "0",
                  "1",
                  "2"
              ],
              "type": "ChooseOne",
              "name": "0-cache",
              "label": "Chassis 0 cache"
          },
          {
              "choices": [
                  "0",
                  "1",
                  "2"
              ],
              "type": "ChooseOne",
              "name": "1-log",
              "label": "Chassis 1 log"
          }
      ]
}