Description
Use this API to obtain the information about the devils running in the Dafne Control System. Possible arguments are:
- all: get all devils information;
- comma_separated_devil_list: all requested devils information;
In case of positive execution, this is the format of the response object:
- cacheHit: <bool>
- devilList: <list of dict>
- number: <int>
- host: <str>
- tcpPort: <int>
- vncHost: <str>
- vncPort: <int>
- elementList: <list of str>
Example Query (ALL DEVILS)
GET Query URI
http://danteweb.lnf.infn.it:8000/devil/getInfo/all
API Response
{ "cacheHit": false, "devilList": [{ "number": 601, "host": "192.168.198.159", "tcpPort": 6342, "vncHost": "192.168.198.159", "vncPort": 5901, "elementList": ["SER19001", "SER19002", "SER19003", "RFSA1001", "RFSEL001", "RFSPS001"] }, { "number": 602, "host": "192.168.198.127", "tcpPort": 6342, "vncHost": "192.168.198.127", "vncPort": 5902, "elementList": ["SER73005", "QUATE104", "QUATE105", "QUAPS208", "QUAI2026", "QUAI2017", "QUAES101", "QUAES102", "QUAPS101", "QUAPS102", "QUAI1023", "QUAI1014"] }, { ... }, { "number": 723, "host": "192.168.198.130", "tcpPort": 6343, "vncHost": "192.168.198.130", "vncPort": 5923, "elementList": ["DCTEL002", "DCTPS002"] }] }
Example Query (DEVIL LIST)
GET Query URI
http://danteweb.lnf.infn.it:8000/devil/getInfo/632,646
API Response
{ "cacheHit": true, "devilList": [{ "number": 632, "host": "192.168.198.126", "tcpPort": 6342, "vncHost": "192.168.198.126", "vncPort": 5932, "elementList": ["SER48007", "SPTEL102", "SPTEL101", "SPTPL102", "SPTPL101"] }, { "number": 646, "host": "192.168.198.129", "tcpPort": 6345, "vncHost": "192.168.198.129", "vncPort": 5946, "elementList": ["SER48006", "SIMPL101", "DHRPS102", "DUMMY011", "DUMMY012", "DHRPL101", "DHRPL202", "DHSPL201", "DHSPS202", "DHRPS201"] }] }