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:
|
attrSelected | Boolean | Key to specify if an SNMP trap attribute is selected or not for inclusion in SNMP notification Possible values:
|
objectID | Integer | ID of the incident for which the SNMP trap is sent |
Sample Output
Sample XML Output
</snmpTrapAttributes> <snmpTrapAttribute href= "/api/juniper/servicenow/global-setting-management/snmp-configuration-management/snmpTrapAttributes/394144" uri="/api/juniper/servicenow/global-setting-management/snmp-configuration-management/snmpTrapAttributes/394144" key="394144"> <name>ObjectId</name> <notifications> [net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c917b, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c917c, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c917d] </notifications> <attrEnabled>true</attrEnabled> <attrSelected>false</attrSelected> </snmpTrapAttribute> </snmpTrapAttributes>
Sample JSON Output
{ "@href": "/api/juniper/servicenow/global-setting-management/snmp-configuration-management/snmpTrapAttributes/394144", "@uri": "/api/juniper/servicenow/global-setting-management/snmp-configuration-management/snmpTrapAttributes/394144", "@key": "394144", "name": "ObjectId", "notifications": "[net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c917b, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c917c, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c917d]", "attrEnabled": true, "attrSelected": false }