×
Opsview 6.8.x End of Support
With the release of Opsview 6.11.0 on February 2025, versions 6.8.x have reached their End of Support (EOS) status, according to our Support policy. This means that versions 6.8.x will no longer receive code fixes or security updates.
The documentation for version 6.8.9 and earlier versions will remain accessible for the time being, but it will no longer be updated or receive backports. We strongly recommend upgrading to the latest version of Opsview to ensure continued support and access to the latest features and security enhancements.
Set Service Status
URL: /rest/status
POST
— submits the new status of services.GET
,PUT
,DELETE
— unimplemented.
Other parameters are:
state
— the state that should be applied to the services listed in service_selection. Expects the numeric ID for state.comment
— free text comment that should be given to the state change.
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 On-Premises"]
["API", "Technical Reference"]
"1"