Nutanix Resolve And Acknowledge Alerts | Nutanix Community
Skip to main content
Solved

Nutanix Resolve And Acknowledge Alerts

  • January 24, 2021
  • 2 replies
  • 419 views

Hi! After using 2 of API calls
https://www.nutanix.dev/reference/prism_element/v2/api/alerts/post-alerts-acknowledge-acknowledgealerts/
https://www.nutanix.dev/reference/prism_element/v2/api/alerts/post-alerts-resolve-resolvealerts/
i’ve received this response

{  "num_successful_updates": 1,  "num_failed_updates": 0,  "alert_status_list": [            {      "id": "0:0",      "successful": true,      "message": null    }        ]    }I wasn’t able to understand what the “id” field in “alert_status_list” means, if someone here could clarify I would really appreciate it.

Best answer by Alona

Hi TomNeeman,

You can use get/alerts to capture “id” and the “message”.

For example:

  "acknowledged_by_username": "N/A",
      "message": "{file_server_alert_msg}",
      "detailed_message": "",
      "alert_title": "{file_server_smart_alert_title}",
      "acknowledged_time_stamp_in_usecs": 1611711650534653,
      "resolved_time_stamp_in_usecs": 1611711650534645,
      "resolved_by_username": "N/A",
      "user_defined": false,
      "affected_entities": [
        {
          "entity_type": "file_server",
          "entity_type_display_name": null,
          "entity_name": null,
          "uuid": "fc071bd0-1234-417c-4567-fdaeebc68161",
          "id": "fc071bd0-1234-417c-4567-fdaeebc68161"

Let us know how you go.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

AnishWalia20
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 201 replies
  • January 25, 2021

Hey, @TomNeeman 

I think the ‘id’ here should be the alert ID or maybe it can be the status of the alert, ‘0’ for a successful operation and non-zero for a failure.


Alona
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 432 replies
  • Answer
  • January 27, 2021

Hi TomNeeman,

You can use get/alerts to capture “id” and the “message”.

For example:

  "acknowledged_by_username": "N/A",
      "message": "{file_server_alert_msg}",
      "detailed_message": "",
      "alert_title": "{file_server_smart_alert_title}",
      "acknowledged_time_stamp_in_usecs": 1611711650534653,
      "resolved_time_stamp_in_usecs": 1611711650534645,
      "resolved_by_username": "N/A",
      "user_defined": false,
      "affected_entities": [
        {
          "entity_type": "file_server",
          "entity_type_display_name": null,
          "entity_name": null,
          "uuid": "fc071bd0-1234-417c-4567-fdaeebc68161",
          "id": "fc071bd0-1234-417c-4567-fdaeebc68161"

Let us know how you go.