Modify SNMP Traps
Use this API to modify SNMP trap attributes.
URI
https://[host]/api/juniper/servicenow/global-setting-management/snmp-configuration- management/modifySNMPTrap (HTTP method = PUT)
Consumes
application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.snmpTrapAttributes+xml;version=1;charset=UTF-8
application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.snmpTrapAttributes+json;version=1;charset=UTF-8
Request Elements
Element | Type | Description |
---|---|---|
snmpTrapAttribute | snmpTrapAttribute | An SNMP trap attribute |
name | String | Name of the SNMP attribute |
attrEnabled | Boolean | Key to specify if the SNMP trap attribute should be enabled or not for adding to a notification Possible values:
|
attrSelected | Boolean | Key to specify if an SNMP trap attribute is selected or not for inclusion in SNMP notification Possible values:
|
Produces
application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.servicenowmsg+xml;version=1
application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.servicenowmsg+json;version=1
Response Elements
Element | Type | Description |
---|---|---|
msg | String | Status message of the modify SNMP trap attributes job |
Sample Input
Sample XML Input
<snmpTrapAttributes> <snmpTrapAttribute> <name>serialNumber</name> <attrEnabled>false</attrEnabled> </snmpTrapAttribute> <snmpTrapAttribute> <name>product</name> <attrEnabled>false</attrEnabled> </snmpTrapAttribute> <snmpTrapAttribute> <name>caseID</name> <attrEnabled>false</attrEnabled> </snmpTrapAttribute> </snmpTrapAttributes>
Sample JSON Input
{ "snmpTrapAttributes": { "snmpTrapAttribute": [ { "name": "serialNumber", "attrEnabled": "false" }, { "name": "product", "attrEnabled": "false" }, { "name": "caseID", "attrEnabled": "false" } ] } }
Sample Output
Sample XML Output
<servicenowmsg> <msg>SNMP Trap configuration, Trap Attribute flags updated successfully </msg> </servicenowmsg>
Sample JSON Output
{ "servicenowmsg": { "msg": "SNMP Trap configuration, Trap Attribute flags updated successfully" } }