Hitachi

JP1 Version 13 JP1/Integrated Management 3 - Manager Command, Definition File and API Reference


5.22.5 Silence Revocation of Alertmanager

Description

Revokes (expires) silences created in Alertmanager.

Format
Request line
DELETE /api/v2/silence/silence-ID HTTP/1.1

For silence-ID, you can specify a value to be retrieved by the "Get silence list of Alertmanager" API or a value returned as a return value of the "Silence creation of Alertmanager" API.

Request header

Header name

Setup values

Host

Specify the value of the header for Alertmanager host to which API is connected, in the following format:

host-name-or-IP-address:port-number

":port-number" is optional.

  • host-name-or-IP-address

    Specify the host name or IPv4 address of Alertmanager.

  • port-number

    Specify the port number to use when connecting to Alertmanager.

This header is not optional.

Request message body

None

Response message body

None

Status codes

Status code

Message

Description

200

OK

Silence has successfully expired.

Other than 200

Other than OK

Silence failed to expire.

Examples

The following is an example of using this API using the OSS curl command.

>curl --request DELETE "http://localhost:20714/api/v2/silence/b37a053b-6172-46dd-8211-be808cc25e01"
 
>