cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
800
Views
3
Helpful
4
Replies

vManage API - Mass device invalidation

smit0773
Level 1
Level 1

I would like to invalidate a a large number of devices via api.  I believe the call is "/certificate/device/invalidate" 

My issue is I don't know what to send to the API call.  There is no example, it just says 'string'.  I assumed it was the UUID, but that didn't work.  

I also can't find the call to validate devices as well. 

1 Accepted Solution

Accepted Solutions

Dan Frey
Cisco Employee
Cisco Employee

I am showing the invalidate process with these API urls and payloads.  I ran the process manually capturing the api data.

1st api call

https://192.168.0.156/dataservice/certificate/save/vedge/list
Request Method: POST
Status Code: 200 OK
payload: [{"chasisNumber":"UUID","serialNumber":"SERIAL_NUMBER","validity":"invalid"}]

2nd api is to push to controllers.

https://192.168.0.156/dataservice/certificate/vedge/list?action=push
Request Method: POST
Status Code: 200 OK
payload: {}

 

View solution in original post

4 Replies 4

Dan Frey
Cisco Employee
Cisco Employee

I am showing the invalidate process with these API urls and payloads.  I ran the process manually capturing the api data.

1st api call

https://192.168.0.156/dataservice/certificate/save/vedge/list
Request Method: POST
Status Code: 200 OK
payload: [{"chasisNumber":"UUID","serialNumber":"SERIAL_NUMBER","validity":"invalid"}]

2nd api is to push to controllers.

https://192.168.0.156/dataservice/certificate/vedge/list?action=push
Request Method: POST
Status Code: 200 OK
payload: {}

 

Where do you lookup this information?   There are several api calls just like this one that just say string and I would like to see the expected format.

Go through the process manually in the GUI with google chrome developer tools turned on to view the sequence of API calls, header info, and payload.

dev.jpg

smit0773
Level 1
Level 1

I hoped you had a link to a resource with the correct format.  Something is better than nothing, thanks for the help.

Review Cisco Networking for a $25 gift card