03-22-2018 07:10 AM - edited 03-01-2019 04:07 AM
Hello all,
I would like to know if there is any way to clean all services (no-services command) by using the northbound REST API.
I didn't find anything related to this in the doc and I didn't see anything either by using the http://<ip>:8080/api/<running/config> -X GET command but I am asking anyway, just in case.
Thanks in advance.
Kind regards
Solved! Go to Solution.
03-22-2018 09:11 AM
Hello, to delete all service instances of services below services:
curl -v -X DELETE -u admin:admin http://localhost:8080/api/running/services/
or to delete all instance of a given service, e.g. l2vpn
curl -v -X DELETE -u admin:admin http://localhost:8080/api/running/services/l2vpn
Please be careful that is really what you want...
-Larry
03-22-2018 09:11 AM
Hello, to delete all service instances of services below services:
curl -v -X DELETE -u admin:admin http://localhost:8080/api/running/services/
or to delete all instance of a given service, e.g. l2vpn
curl -v -X DELETE -u admin:admin http://localhost:8080/api/running/services/l2vpn
Please be careful that is really what you want...
-Larry
03-22-2018 09:54 AM
Thank you Larry!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide