Get node events

NAS File Storage REST API v7 Reference

Version
14.7.x
14.6.x
Audience
anonymous
Part Number
MK-92HNAS088-05

Retrieves a node’s events. Events include violated thresholds, alarms, traps, notifications, floods, reboots, and various errors. Note that this function can potentially return a lot of data, depending on the number of items in the event log.

HTTP request syntax (URI)

GET <base_URI>/v7/storage/nodes/{id}/events

Parameters

Name Type Required Values Description
id URI_PARAM Y string/number Specifies either a node object ID or an HNAS storage cluster node ID.

Return codes

Code Data Description
200 event Array of node events retrieved successfully.
400 No Data Missing or invalid request contents.
404 Error Message Requested resource not found.
500 Error message Error associated with the storage system.
501 No Data Server has not implemented the request operation on the resource.

Any HTTP status code other than 200 indicates that the API did not complete successfully.

Request example: Using a node object ID

curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v7/storage/nodes/313a3a3a4f49445f24232140255f56/events

Response example: Using a node object ID

HTTP/1.1 200 OK
{
   "events" : [
      {
         "category" : "SYSTEM",
         "clusterNodeId" : 1,
         "eventId" : 7217,
         "severity" : "INFO",
         "text" : "An administrator has licensed (allowed access to) SD 121.",
         "timeStamp" : 1485977870
      },
      {
         "category" : "SYSTEM",
         "clusterNodeId" : 1,
         "eventId" : 8517,
         "severity" : "INFO",
         "text" : "Unspanned SD 121 is healthy, primary and licensed.",
         "timeStamp" : 1485977870
      } 
    ]
}

Request example: Using an HNAS storage node ID

curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v7/storage/nodes/1/events

Response example: Using an HNAS storage node ID

HTTP/1.1 200 OK
{
   "events" : [
      {
         "category" : "SYSTEM",
         "clusterNodeId" : 1,
         "eventId" : 7217,
         "severity" : "INFO",
         "text" : "An administrator has licensed (allowed access to) SD 121.",
         "timeStamp" : 1485977870
      },
      {
         "category" : "SYSTEM",
         "clusterNodeId" : 1,
         "eventId" : 8517,
         "severity" : "INFO",
         "text" : "Unspanned SD 121 is healthy, primary and licensed.",
         "timeStamp" : 1485977870
      } 
   ]
}