Skip to main content

Support SNMP traphosts host endpoint overview

Contributors

Overview

Defines, retrieves or deletes an individual SNMP traphost.

Examples

Retrieves an individual traphost in the cluster

# The API:
GET "/api/support/snmp/traphosts/{host}"

# The call
curl -H "accept: application/hal+json" -X GET "https://<mgmt-ip>/api/support/snmp/traphosts/10.235.36.62"

# The response
{
"host": "scspr0651011001.gdl.englab.netapp.com",
"ip_address": "10.235.36.62",
"user": {
  "name": "public",
  "_links": {
    "self": {
      "href": "/api/support/snmp/users/800003150558b57e8dbd9ce9119d82005056a7b4e5/public"
    }
  }
},
"_links": {
  "self": {
    "href": "/api/support/snmp/traphosts/10.235.36.62"
  }
}
}

Deletes an individual traphost in the cluster

# The API:
DELETE "/api/support/snmp/traphosts/{host}"

# The call:
curl -H "accept: application/json" -H "Content-Type: application/json" -X DELETE "https://<mgmt-ip>/api/support/snmp/traphosts/3ffe:ffff:100:f102::1"

# The response:
200 OK
{}