Go to main content

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

印刷ビューの終了

更新: 2018 年 11 月
 
 

プールの一覧表示

このコマンドは、システム上のすべてのストレージプールのプロパティーを一覧表示します。成功したコマンドに対し、HTTP ステータス 200 (OK) が返されます。HTTP 本文には、JSON オブジェクトのリストが含まれ、各プールについて説明しています。次の表に、プロパティー名を示します。


注 -  depth 問合せパラメータおよび match_property-name=value 問合せパラメータはサポートされていません。
表 58  ストレージプールのプロパティー
プロパティー
説明
pool
string
ターゲットのプール名
profile
string
データデバイスのプロファイル
state
string
プールの状態: onlineofflineexported
asn
string
プールを所有するアプライアンスのシリアル番号
peer
string
クラスタ化されたシステムにおいて、ピアノードの ASN
owner
string
プールを所有するシステムのホスト名

リクエストの例:

GET /api/storage/v1/pools HTTP/1.1
Host: zfs-storage.example.com
Accept: application/json

レスポンスの例:

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

{
    "pools": [{
        "profile": "mirror3",
            "name": "m1",
            "peer": "00000000-0000-0000-0000-000000000000",
        "state": "online",
        "owner": "zfs-storage",
        "asn": "2f4aeeb3-b670-ee53-e0a7-d8e0ae410749"
    }, {
        "profile": "raidz1",
        "name": "r1",
        "peer": "00000000-0000-0000-0000-000000000000",
        "state": "online",
        "owner": "zfs-storage",
        "asn": "2f4aeeb3-b670-ee53-e0a7-d8e0ae410749"
    }]
}