Hey! These docs are for version 6.3, which is no longer officially supported. Click here for the latest version, 6.7!

Rest API Config endpoint for attributes

Object type: attribute

Request URL: /rest/config/attribute

Example GET:

{
   "object" : {
      "name" : "PROCESS",
      "id" : "6",
      "arg1" : "",
      "arg2" : "",
      "arg3" : "",
      "arg4" : "",
      "value" : "",
      "servicechecks" : [
         {
            "ref" : "/rest/config/servicecheck/92",
            "name" : "Processes"
         },
         {
            "ref" : "/rest/config/servicecheck/93",
            "name" : "Windows Processes"
         }
      ]
   }
}

Note: When saving attributes, you cannot add a host attribute nor amend the list of service checks using an attribute. If you want to amend a service check so that it is no longer using multiple attributes, you have to edit the service check itself.

Note: arg1 to arg4 and value are available from Opsview 3.11.0.