이 명령은 풀에 스토리지를 추가하는 명령과 유사합니다. 스토리지를 제거하면 기존 풀에서 캐시 및 로그 스토리지 장치가 제거됩니다. 풀에서 제거할 스토리지 장치 수, 유형 및 섀시 번호가 포함된 본문과 함께 href에 <pool>/remove를 보냅니다.
요청 예:
PUT /api/storage/v1/pools/p1/remove HTTP/1.1
Host: zfs-storage.example.com
Authorization: Basic abhadbfsMWE=
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 abhadbfsMWE=
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"
}
]
}