Go to main content
Oracle® ZFS Storage Appliance RESTful API Guide, Release OS8.7.0

Exit Print View

Updated: July 2017
 
 

Get Pool

This command returns the properties from a single storage pool along with storage usage information for the pool. HTTP Status 200 (OK) is returned for a successful command.

Example Request:

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

Example Response:

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

{
    "pool": {
        "profile": "raidz1",
        "name": "gold",
        "usage": {
            "available": 2388000726016,
            "total": 2388001816576,
            "dedupratio": 100,
            "used": 1090560,
            "usage_data": 31744.0,
            "usage_snapshots": 0,
            "usage_total":31744.0,
            "metadata_available": 2350336521216.0,
            "metadata_used:" 638960716800.0
        },
        "peer": "00000000-0000-0000-0000-000000000000",
        "state": "online",
        "owner": "tanana",
        "asn": "2f4aeeb3-b670-ee53-e0a7-d8e0ae410749"
    }
}