get service는 사용 가능한 모든 명령 목록을 포함하여 해당 서비스에 대한 정보를 반환합니다.
요청 예:
GET /api/appliance/v1 HTTP/1.1 Host: zfs-storage.example.com X-Auth-Session: guigqpQRE4g89ngb
응답 예:
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 204
X-Zfssa-Access-Api: 1.0
{
"service": {
"name": "appliance",
"methods": [
{
"description": "Get appliance RESTful services",
"path": "/apis",
"request": "GET"
},
{
"description": "Get appliance RESTful service properties",
"path": "/apis/<api:path>",
"request": "GET"
},
{
"description": "Create a new alert threshold watch",
"path": "/alerts/thresholds",
"request": "POST"
}, ... ]
}
}