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

Configuring alert severity

You can set the alert severity using RESTful API requests.

About this task

To set the alert severity, perform the following steps in Curl or Postman:

Steps

  1. Log in to get the access token that is only valid for 5 minutes.
  2. In the following sample, replace the text MNO_GUI_IP, with the MNO user interface IP of your cluster.
    curl -i --insecure -X POST https://<MNO GUI IP>/rest/auth/login -H "accept: application/json" -H "Content-Type: application/json" -d "{\"username\": \"scaleio\",\"password\": \"scaleio\"}"
  3. Enter the administrator username and password.
  4. After running the request, use the access token that you received in the response and pass it in the authorization header of the next request. The request can be to modify an alert template, or any other rest request.
    The access token is valid for 5 minutes. You must refresh the access token after 5 minutes or rerun the login request to replace the token.
  5. In the sample code below, replace the <alert-template-id> with the alert code.
    curl --insecure -X PATCH https://<mno-gui-ip>/rest/v1/alert-templates/<alert-template-id> -H "accept: application/json" -H "Content-Type: application/json" -d "{\"severity\": \"INFORMATION\"}" -H "Authorization: Bearer <access token>”
  6. Replace the <mno-gui-ip> with the user interface IP.
  7. Place the access token that you received from the login response, right after "Authorization: Bearer".
    If using Curl, ensure that you replace the white space in the URL with %20 and % with %25.
    The body must include the new severity: severity : INFORMATION.

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: <>()\