API call to stop a node

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
kiwibear62
Posts: 11
Joined: Fri Dec 31, 2021 2:09 pm

API call to stop a node

Post by kiwibear62 » Thu Nov 14, 2024 8:38 pm

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!

rusty725
Posts: 360
Joined: Thu Mar 29, 2018 4:19 pm

Re: API call to stop a node

Post by rusty725 » Fri Nov 15, 2024 7:17 am

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

Post Reply