cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
338
Views
2
Helpful
2
Replies

RESTAPI: no services

JM Montenot
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

lmanor
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

lmanor
Cisco Employee
Cisco Employee

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

Thank you Larry!