이 명령은 시스템에서 모든 스토리지 풀의 등록 정보를 나열합니다. 성공한 명령에 대해 HTTP 상태 200(OK)이 반환됩니다. HTTP 본문은 각 풀을 설명하는 JSON 객체 목록을 포함합니다. 등록 정보 이름은 다음 표에 나와 있습니다.
|
요청 예:
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": "platinum",
"peer": "00000000-0000-0000-0000-000000000000",
"state": "online",
"owner": "zfs-storage",
"asn": "2f4aeeb3-b670-ee53-e0a7-d8e0ae410749"
}, {
"profile": "raidz1",
"name": "gold",
"peer": "00000000-0000-0000-0000-000000000000",
"state": "online",
"owner": "zfs-storage",
"asn": "2f4aeeb3-b670-ee53-e0a7-d8e0ae410749"
}]
}