このコマンドは、指定されたサービスで使用可能な操作 (メソッド) のリストを返します。該当する場合、このコマンドは、指定されたサービスのリソースに関する情報を返します。次の例では、クラスタハードウェアコンポーネントに、さらに調査および構成できるリソースがあります。
リクエストの例。このリクエストでは認証トークンを使用していることに注意してください。認証トークンを参照してください。
GET /api/hardware/v1 HTTP/1.1 Host: zfs-storage.example.com:215 X-Auth-Session: puPnHZKgSrUmXqYzOwFCrGcLOGwPODj
結果の例。簡潔にするために、この出力のほとんどを省略しています。
HTTP/1.1 200 OK Content-Type: application/json Content-Length: 204 X-Zfssa-Access-Api: 1.0 { "service": { "methods": [ { "path": "", "href": "/api/hardware/v1", "request": "GET", "description": "List the hardware service commands." }, { "path": "/cluster", "href": "/api/hardware/v1/cluster", "request": "GET", "description": "Get cluster properties and cluster resource list" }, { "path": "/cluster/resources/<resource:path>", "href": "/api/hardware/v1/cluster/resources/<resource:path>", "request": "GET", "description": "Get properties for the specified cluster resource" }, { "path": "/cluster/resources/<resource:path>", "href": "/api/hardware/v1/cluster/resources/<resource:path>", "request": "PUT", "description": "Modify the specified cluster resource" }, { "path": "/chassis", "href": "/api/hardware/v1/chassis", "request": "GET", "description": "List hardware chassis" } ], "version": "1.1", "name": "hardware", "uri": "https://hostname:215/api/hardware/v1" } }