Manage interfaces of the system
The endpoints are applicable for IOTA Core10 system only.
Path: /interfaces
Method: GET
Minimum user role: viewer
Response:
[
{
"id": 1,
"name": "Port 1",
"capture_enabled": false,
"can_change_capture_state": true,
"capture_session": null,
"type": "sfp",
"speed": "Unknown",
"state": {
"status": "idle",
"comment": "",
"last_error_time": 0,
"last_error": ""
},
"statistics": {
"received_packets_per_second": 0,
"received_bytes_per_second": 0,
"received_packets": 0,
"received_bytes": 0,
"received_missed": 0,
"received_dropped": 0,
"received_sw_dropped_pkts": 0,
"write_packets": 0,
"write_bytes": 0
}
},
...
]id - unique ID of the interfacename - human-readable name of the interfacecapture_enabled - if the capture is enabled on this interfacecan_change_capture_state - if it is allowed to enable/disable capture on this interfacecapture_session - id of the capture_session this interface belongs to; can be null or numeric valuetype - type of the interfacespeed - string value of the speed of this interfacestate - object with the current state of this interfacestatistics - object with statistics of this interfacePath: /interfaces/{ID}
Method: PUT
Minimum user role: operator
Request body:
{
"capture_enabled": true
}Response:
{
"message": "Success",
"data": {
"id": 2,
"name": "Port 2",
"capture_enabled": true,
"can_change_capture_state": true,
"capture_session": 1,
"type": "sfp",
"speed": "Unknown",
"state": {
"status": "capturing",
"comment": "",
"last_error_time": 0,
"last_error": ""
}
}
}notes:
capture_enabled is mandatory and only field which must be provided in the requestcapture_enabled field if can_change_capture_state of the interface is true/interfaces/{ID}DELETEoperatormessage/interfacesDELETEoperatormessageThere are some validations during the requests processing: * The interface {ID} must be in a range 1…6.