Config - Notification Method

Object type: notificationmethod

Request URL: /rest/config/notificationmethod

Example GET Copied

    {
       "object" : {
          "namespace" : "com.opsview.notificationmethods.aql",
          "master" : "0",
          "name" : "AQL",
          "active" : "1",
          "notificationprofiles" : [
             {
                "ref" : "/rest/config/notificationprofile/12",
                "name" : "Non work hours sms"
             },
             {
                "ref" : "/rest/config/notificationprofile/3",
                "name" : "Default"
             }
          ],
          "id" : "1",
          "uncommitted" : "0",
          "command" : "submit_sms_aql -u '' -p '' -P ''",
          "contact_variables" : "PAGER",
          "variables" : [
            {
               "name" : "AQL_PASSWORD",
               "value" : "aqlpass"
            },
            {
               "name" : "AQL_PROXY_SERVER",
               "value" : "http://proxy.example.com"
            },
            {
               "name" : "AQL_USERNAME",
               "value" : "aqluser"
            }
         ]
       }
    }

Optional parameters:

["Opsview On-premises"] ["API", "Technical Reference"]

Was this topic helpful?