시스템의 물리적 네트워크 장치를 나열합니다. 물리적 네트워크 장치에 수정할 수 있는 등록 정보가 없습니다.
|
|
모든 네트워크 장치를 나열합니다.
요청 예:
GET /api/network/v1/devices HTTP/1.1 Authorization: Basic ab6rt4psMWE= Host: example.zfssa.com:215 Accept: application/json
결과 예:
HTTP/1.1 200 OK Content-Type: application/json Content-Length: 412 X-Zfssa-Gns-Api: 1.0 { "devices": [{ "href": "/api/network/v1/devices/ixgbe0", .... }, { "href": "/api/network/v1/devices/ixgbe1", ... }, { "href": "/api/network/v1/devices/ixgbe2", ... }, { "href": "/api/network/v1/devices/ixgbe3", ... }] }
단일 네트워크 장치에서 등록 정보를 가져옵니다.
요청 예:
GET /api/network/v1/devices/ixgbe0 HTTP/1.1 Authorization: Basic ab6rt4psMWE= Host: example.zfssa.com:215 Accept: application/json
결과 예:
HTTP/1.1 200 OK Content-Type: application/json Content-Length: 178 X-Zfssa-Gns-Api: 1.0 { "devices": { "active": false, "device": "ixgbe0", "duplex": "full-duplex", "factory_mac": "0:21:28:a1:d9:68", "href": "/api/network/v1/devices/ixgbe0", "media": "Ethernet", "speed": "1000 Mbit/s", "up": true } }