EVE-NG RestAPI labs/nodes URL output problem

Moderator: mike

Post Reply
mpergament
Posts: 1
Joined: Fri May 31, 2019 9:58 am

EVE-NG RestAPI labs/nodes URL output problem

Post by mpergament » Fri May 31, 2019 10:03 am

Hi,

curl -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' http://10.83.30.218/api/labs/Lab1.unl/nodes/1
{"code":200,"status":"success","message":"Successfully listed node (60025).","data":{"console":"telnet","config":"1","delay":0,"left":996,"icon":"AristaSW.png","image":"veos-lab-4.22.0F","name":"vEOS1","status":2,"template":"veos","type":"qemu","top":357,"url":"\/html5\/#\/client\/MzI3NjkAYwBteXNxbA==?token=0EBB6D048696E03507EF09C6DED6379DC9B88471F7114FC0B0730F3E41DFF53B","cpulimit":0,"cpu":1,"ethernet":8,"ram":4096,"uuid":"b5e56893-c41f-4959-95af-45954d14f7d3","qemu_options":"","qemu_version":"","qemu_arch":"","qemu_nic":""}}

According to the documentation it should be rather something useful: "url": "telnet://127.0.0.1:32769"

Any comments would be highly appreciated!

viets
Posts: 6
Joined: Mon Aug 14, 2017 5:37 pm

Re: EVE-NG RestAPI labs/nodes URL output problem

Post by viets » Fri May 31, 2019 9:06 pm

Hi,

I had the same issue and found the solution 10 minutes ago. While you login, set the html5 var to -1 (=native)

curl -k -s -b /tmp/cookie -c /tmp/cookie -X POST -d '{"username":"admin","password":"eve","html5":"-1"}' https://192.168.0.8/api/auth/login

kind regards
Viets

Post Reply