Set Service Status

URL: /rest/status

Other parameters are:

Example input Copied

For /rest/status?svc.serviceid=1&svc.serviceid=2:

    {
       "new_state" : "0",
       "comment" : "This is a known unknown"
    }

Example output Copied

    {
       "summary" : {
          "num_services" : "2",
          "num_hosts" : "0"
       },
       "list" : {
          "hosts" : [],
          "services" : [
             {
                "id" : "1",
                "hostname" : "host1",
                "servicename" : "service on host1"
             },
             {
                "id" : "2",
                "hostname" : "host2",
                "servicename" : "service on host2"
             }
          ]
       }
    }
["Opsview"] ["API", "Technical Reference"]

Was this topic helpful?