Delete events REST API

Use this REST API to delete events.

Delete single event

Table 1. Delete single event
REST API information Value Description
URI /admin/events/<event_id>  
Method DELETE  
Returns 202 Accepted.
400 The event was not deleted successfully.
500 Platform System Manager encountered an internal error while processing the request.

Deletes a single event, specified by the <event ID> parameter.

Delete all events

Table 2. Delete all events
REST API information Value Description
URI /admin/events  
Method DELETE  
Returns 202 Accepted.
400 The event was not deleted successfully.
500 Platform System Manager encountered an internal error while processing the request.

Deletes all events.

Delete events

Table 3. Delete events
REST API information Value Description
URI /admin/events?<filters>  
Method DELETE  
Returns 202 Accepted.
400 The event was not deleted successfully.
500 Platform System Manager encountered an internal error while processing the request.

Deletes filtered events.

CAUTION:
Ensure that you filter the events based on the parameters listed below. Otherwise, the REST API will delete all events.
The following are some parameters that you can use for filtering events:
hidden
If 1, delete all hidden events.
If 0, delete all unhidden events.
msg_text
The message text of the event.
severity
The severity of the event. The following values are valid:
  • Critical
  • Warning
  • Informational
       
state
The state of the event. The following values are valid:
  • active
  • closed
       
type
The type of the event. The following values are valid:
  • Chassis Management Module
  • Chassis Network Switch
  • Chassis Node
  • Chassis SAN Switch
  • Compute Node
  • Ethernet Switch Port
  • Flex Chassis
  • LDAP
  • Logon
  • Management Node
  • Cloud Pak System Software
  • Cloud Pak System System
  • Cloud Pak System Systems Manager
  • Security Monitoring
  • Storage Subsystem
  • Switch
  • Systemlogs
  • Top of Rack Switch
  • Virtual Machine Instance
  • Virtual Management Instance
  • Virtual Systems Manager
  • Workload
  • Workload Monitoring
       
In addition, you can use the fuzzy parameter as documented in System management.