You are here

Programmatically deleting service checks via the API (or by other means)

2 posts / 0 new
Last post
Quang Le
quang_1's picture
Programmatically deleting service checks via the API (or by other means)

I'm trying to delete a bunch of service checks using the API, but it would appear that this is not possible;

e.g

opsview_rest --username=admin --password=admin -pretty --data-format=json DELETE 'config/servicecheck/servicecheck/766'

gives me

Method DELETE not implemented for http://localhost:3000/rest/api_version

 

Is there some other way to do this, or is manually via the GUI the only way? 

 

 

Duncan Ferguson
dferguson's picture
You have 'servicecheck' in

You have 'servicecheck' in your URI twice -

opsview_rest --username=admin --password=initial --data-format=json DELETE config/servicecheck/3
{
   "success" : "1"
}

  Duncs