このコマンドは、システム上のすべてのストレージプールのプロパティーを一覧表示します。成功したコマンドに対し、HTTP ステータス 200 (OK) が返されます。HTTP 本文には、JSON オブジェクトのリストが含まれ、各プールについて説明しています。次の表に、プロパティー名を示します。
|
リクエストの例:
GET /api/storage/v1/pools HTTP/1.1 Host: zfs-storage.example.com:215 Accept: application/json
結果例:
HTTP/1.1 200 OK Content-Type: application/json { "pools": [{ "profile": "mirror3", "name": "m1", "peer": "peer-hostname", "state": "online", "owner": "system-hostname", "asn": "appliance-serial-number", "scrub_schedule": "30 days" }, { "profile": "raidz1", "name": "r1", "peer": "peer-hostname", "state": "online", "owner": "system-hostname", "asn": "appliance-serial-number", "scrub_schedule": "30 days" }] }