Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Get Details of an SNMP Trap Attribute

 

Use this API to retrieve details of an SNMP trap attribute.

URI

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

URI Parameters

Parameter

Type

Required

Description

id

Integer

Yes

ID of the SNMP trap attribute for which details are to be retrieved

Consumes

None

Produces

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

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

Response Elements

Element

Type

Description

uri

String

URI of the SNMP trap attribute

href

String

Link to the SNMP trap attribute

key

Integer

ID of the SNMP trap attribute

name

String

Name of the 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

Sample Output

Sample XML Output

Sample JSON Output