Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

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:

  • true—Attribute is enabled

  • false—Attribute is disabled

attrSelected

Boolean

Key to specify if an SNMP trap attribute is selected or not for inclusion in SNMP notification

Possible values:

  • true—SNMP trap attribute is included in the notification

  • false—SNMP trap attribute is not included in the notification

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

Sample JSON Input

Sample Output

Sample XML Output

Sample JSON Output