Hitachi

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


5.21.5 Silence Revocation of Alertmanager

Description

Revokes (expires) silences created in Alertmanager.

Format
Request line
DELETE /api/v2/silence/silenceID HTTP/1.1

The silence ID can be a value to be retrieved by the "Get Alertmanager Silence List" API or a value returned as a return value of the "Create Alertmanager Silence" API.

Request header

Header name

Setup values

Host

Specifies 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

    Specifies host name or IPv4 address of Alertmanager.

  • Port number

    Specifies 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"
 
>