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

    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

    <snmpTrapAttributes>
    <snmpTrapAttribute>
    <name>serialNumber</name>
    <attrEnabled>false</attrEnabled>
    </snmpTrapAttribute>
    <snmpTrapAttribute>
    <name>product</name>
    <attrEnabled>false</attrEnabled>
    </snmpTrapAttribute>
    <snmpTrapAttribute>
    <name>caseID</name>
    <attrEnabled>false</attrEnabled>
    </snmpTrapAttribute>
    </snmpTrapAttributes>
    

    Sample JSON Input

    {
      "snmpTrapAttributes": {
        "snmpTrapAttribute": [
          {
            "name": "serialNumber",
            "attrEnabled": "false"
          },
          {
            "name": "product",
            "attrEnabled": "false"
          },
          {
            "name": "caseID",
            "attrEnabled": "false"
          }
        ]
      }
    }
    

    Sample Output

    Sample XML Output

    <servicenowmsg>
    <msg>SNMP Trap configuration, Trap Attribute flags updated successfully
    </msg>
    </servicenowmsg>
    

    Sample JSON Output

    {
      "servicenowmsg": { "msg": "SNMP Trap configuration, Trap Attribute flags updated successfully" }
    
    }
    

    Modified: 2016-08-11