SNMP notification consumer management

Prev Next

Adds, updates, deletes, and enables SNMP notification consumers.

API URL

GET https://<host>/wsapis/v2.0.0/devicemgmt/notification/snmp/consumers

SET https://<host>/wsapis/v2.0.0/devicemgmt/notification/snmp/consumers -d <payload>

Payload

JSON containing variables listed in API response.

Example: {"enabled:"true"}

Sample curl requests

GET - curl -skH "$Token" "https://10.128.43.157/wsapis/v2.0.0/devicemgmt/notification/snmp/consumers"

CREATE/UPDATE - curl -skH "$Token" "https://10.2.140.114/wsapis/v2.0.0/devicemgmt/notification/snmp/consumers?operation=create" -d '{"name": "snmp_sink1", "notification": "all-events", "address": "10.2.6.77", "enable": false, "community": "fireeye"}'

DELETE single - curl -gsk -H "$c" https://10.128.59.86/wsapis/v2.0.0/devicemgmt/notification/snmp/consumer/aaaa?operation=delete -XPOST

DELETE multiple - curl -skH "$Token" "https://10.2.140.114/wsapis/v2.0.0/devicemgmt/notification/snmp/consumers?operation=delete" -d '["snmp_sink1"]'

DELETE all - curl -qgsSkH --no-progress-bar --header "$T" -H 'Accept: application/json' -H 'Content-Type: application/json' "https://10.18.59.86/wsapis/v2.0.0/devicemgmt/notification/snmp/recipients?operation=delete" -X POST

Availability

This command is available on the following appliances:

  • Network Security

  • Email Security — Server

  • File Protect

  • Malware Analysis

Authentication

Standard WSAPI authentication

Response mime type

application/json