Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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

    <snmpTrapAttribute uri="/api/juniper/servicenow/global-setting-management/snmp-configuration-management /snmpTrapAttributes/34570">
    	<id>34570</id>
    	<name>description</name>
    	<notifications>
    		[net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91bb, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91ba, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91b9, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91b6, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91b5, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c919b, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c919e, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c919f, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c919c, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c919d, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91b7, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91b8, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91bc, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91bd, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91be]
    	</notifications>
    	<attrEnabled>true</attrEnabled>
    	<attrSelected>false</attrSelected>
    </snmpTrapAttribute>
    

    Sample JSON Output

    {
      "snmpTrapAttribute": {
        "@uri": "/api/juniper/servicenow/global-setting-management/snmp-configuration-management /snmpTrapAttributes/34570",
        "id": "34570",
        "name": "description",
        "notifications": "
    [net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91bb, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91ba, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91b9, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91b6, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91b5, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c919b, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c919e, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c919f, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c919c, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c919d, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91b7, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91b8, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91bc, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91bd, net.juniper.jmp.aim.aimservice.TrapTemplate.AIMTrapNotificationMO@712c91be]
    ",
        "attrEnabled": "true",
        "attrSelected": "false"
      }
    }
    

    Modified: 2016-08-10