Page 1 of 1

API call to stop a node

Posted: Thu Nov 14, 2024 8:38 pm
by kiwibear62
If I use the url documented in the EVE-NG API to stop a node, it fails with "Request not valid".

http://127.0.0.1/api/labs/User1/Lab%201 ... des/1/stop

If I remove the "/User1", like I did to get the 'start' call to work, then it just returns some HTML (and not JSON).

I used the developer tools to spy on a stop call and I got...

https://192.168.4.100/api/labs/Apstra%2 ... 1616520539

Does anyone know what 'stopmode' is? And what values are acceptable?

Thanks!

Re: API call to stop a node

Posted: Fri Nov 15, 2024 7:17 am
by rusty725
unl_wrapper -a stop -T PODID -F <FULLPATHOFLAB> -D DEVICE ID

unl_wrapper -a stop -T 0 -m 0 -F /opt/unetlab/labs/abc.unl -D 5