Check the documentation:

https://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/icinga2-api#icinga2-api-actions-remove-downtime

A GET won't work. You have to send a POST including the accept header...

-Gerald

On 01/02/2017 12:15, Christian Moreno Moreno wrote:
Hi!

I tried to delete one downtime (only one of the services and not all
services from the host) but I get the next error:

curl -k -s -H 'Accept: application/json' --cert downtimes_user.crt --key
downtimes_user.key
'https://icinga-01.xxx:5665/v1/actions/remove-downtime?downtime=bx46.xxx!ping4'
| python -m json.tool
{
    "error": 404.0,
    "status": "The requested path 'v1/actions/remove-downtime' could not
be found or the request method is not valid for this path."


I tried to with:

/v1/actions/remove-downtime?type=Service%22&filter=host.name
<http://host.name>==%22bx46.xxx&service.name
<http://service.name>==%22ping4'

but same result...

Many Thanks,

Christian

Christian Moreno Moreno
System Engineer Offers

idealo internet GmbH
Ritterstraße 11
10969 Berlin, Deutschland
Tel.: +49 (0)30 40 30 10 33
Fax: +49 (0)30 221 94 33 <tel:%2B49%20%280%2930%20221%2094%2033> - 21
E-Mail: christian.mor...@idealo.de <mailto:christian.mor...@idealo.de>
Geschäftsführer:
Dr. Albrecht von Sonntag, Dr. Philipp-Christopher Peitsch
HRB 76749 – Amtsgericht Berlin-Charlottenburg
idealo Logo <http://www.idealo.de/>







_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to