Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Get SNMP Trap Attributes

 

Use this API to retrieve attributes of an SNMP trap.

URI

https://[host]/api/juniper/servicenow/global-setting-management/snmp-configuration- management/snmpTrapAttributes (HTTP method = GET)

Consumes

None

Produces

  • application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.snmpTrapAttributes+xml;version=1

  • application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.snmpTrapAttributes+json;version=1

Response Elements

Element

Type

Description

uri

String

URI of the collection of SNMP trap attributes

size

Integer

Number of records in the collection of SNMP trap attributes

snmpTrapAttribute

snmpTrapAttribute

An SNMP trap attribute

href

String

Link to an SNMP trap attribute

key

Integer

ID of an SNMP trap attribute

name

String

Name of an SNMP trap attribute

notifications

String

Service Now notification associated with the SNMP trap 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

objectID

Integer

ID of the incident for which the SNMP trap is sent

Sample Output

Sample XML Output

Sample JSON Output