My last post has been removed by an admin.
Don't really know why but I'll post it again.
We are currently trying to get some endpoints of the Eve NG REST API working but kinda seem to get it not right.
Certain endpoints such as:
- labs/<lab-path>/nodes/start -> does not work. API responds with an 400 BAD REQUEST and we don't quite know why
- labs/<lab-path>/nodes/<node_id>/start -> API responds with an 200 but in the lab nothing has changed
- labs/<lab-path>/nodes/<node_id>/stop -> API responds with an 400 BAD REQUEST and we also don't quite know why
- labs/<lab-path>/nodes/stop -> API responds with an 200 but in the lab nothing has changed
Hope anybody had similar issues and knows how to fix them.
Looking forward to your replies.
Problems with Eve Ng REST API
Moderator: mike
-
- Posts: 533
- Joined: Wed Mar 15, 2017 1:54 pm
Re: Problems with Eve Ng REST API
1. global stop/start is not supported anymore due to network interconnections sequence required...
2. Pro edition requires stopmode arg with stop
3. Use your browser with developer tools to see how API works, that's the best approach....
Regards,
E.
2. Pro edition requires stopmode arg with stop
3. Use your browser with developer tools to see how API works, that's the best approach....
Regards,
E.
-
- Posts: 2
- Joined: Wed Feb 12, 2020 2:35 pm
Re: Problems with Eve Ng REST API
Hi ecze,
thanks for your reply.
1. Okay we will leave out stop and start all operations for now.
2. Okay we will look into the stopmode arg
3. Thank you for the information we will test this later and see if we have any errors in the api requests
But one thing is still bugging us.
If we do a labs/<lab-path>/nodes/<node_id>/start operation the api responds with a 200 but when looking at the lab in the web interface the node hasn't been started.
Do you have any idea what could be wrong here ?
Best regards
unkn0wn
thanks for your reply.
1. Okay we will leave out stop and start all operations for now.
2. Okay we will look into the stopmode arg
3. Thank you for the information we will test this later and see if we have any errors in the api requests
But one thing is still bugging us.
If we do a labs/<lab-path>/nodes/<node_id>/start operation the api responds with a 200 but when looking at the lab in the web interface the node hasn't been started.
Do you have any idea what could be wrong here ?
Best regards
unkn0wn
-
- Posts: 533
- Joined: Wed Mar 15, 2017 1:54 pm
Re: Problems with Eve Ng REST API
Check the files under /opt/unetlab/data/Logs/....
E.
E.