You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Description

Use this API to obtain the list of the devils running in the Dafne Control System. Possible arguments are:

  • all: get all devils;
  • comma_separated_devil_list: all requested devils;

Example Query

GET Query URI (All devils)
http://danteweb.lnf.infn.it:8000/devil/getDevilList/all


API Response
{
	"devilList": [{
		"number": 601,
		"host": "192.168.198.159",
		"tcpPort": 6342,
		"vncHost": "192.168.198.159",
		"vncPort": 5901
	}, {
		"number": 602,
		"host": "192.168.198.127",
		"tcpPort": 6342,
		"vncHost": "192.168.198.127",
		"vncPort": 5902
	}, {
		...
	}, {
		"number": 723,
		"host": "192.168.198.130",
		"tcpPort": 6343,
		"vncHost": "192.168.198.130",
		"vncPort": 5923
	}]
}
GET Query URI (devil list)
http://danteweb.lnf.infn.it:8000/devil/getDevilList/632,646
API Response
{
	"devilList": [{
		"number": 632,
		"host": "192.168.198.126",
		"tcpPort": 6342,
		"vncHost": "192.168.198.126",
		"vncPort": 5932
	}, {
		"number": 646,
		"host": "192.168.198.129",
		"tcpPort": 6345,
		"vncHost": "192.168.198.129",
		"vncPort": 5946
	}]
}
  • No labels