Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell PowerFlex 4.5.x Alerts and Events Reference Guide

PDF

Manually clearing an alert

This section lists the procedure to clear an alert manually.

About this task

To clear an alert, perform the following steps:

Steps

  1. Log in and get the access token and use it in the next API calls as the access token.
  2. Fetch the id of the alert, if you do not have it. To fetch the ID, you can use the "get alerts" request.
    Get alerts filtered by name, resource id and cleared timestamp
     curl --insecure -H GET "https://<host>/rest/v1/alerts?filter=name eq <alertname>&filter=resource_id eq <resource_id>&filter=cleared_timestamp eq  \"0001-01-01%2000:00:00.000000\""  -H "accept: application/json" -H "Authorization: Bearer <access_token>"

    If using curl, replace every white space with %20.

    The filter can be applied to almost any field and multiple filters can be used together, it is an "and" relation between them.

    In the response you get, locate the specific alert you want to clear and copy the ID field to use it in the next API call—clear an alert.

  3. To clear an alert, use the POST method:
    Clear API
    https://{{host}}/rest/v1/alerts/<alert_id>/clear
    example :  
    
    curl -i --insecure -X POST "https://localhost:8443/rest/v1/alerts/0000000000000001/clear" -H "accept: application/json" -H "Authorization: Bearer <access_token>"

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\