Reload - Request Format

URL: /rest/reload

Requires RELOADVIEW. This also requires RELOADACCESS for the POST method.

Parameters Copied

Returned data Copied

If a reload is already in progress then the status code will be set to 409 with returned data of:

Examples Copied

Fetch the current status Copied

$ opsview_rest --token-file /path/to/opsview_restapi_token --pretty GET reload
{
   "auditlog_entries" : "0",
   "average_duration" : "30",
   "configuration_status" : "uptodate",
   "lastupdated" : "1519680052",
   "messages" : [
      {
         "detail" : "Missing required variable EMAIL for contact admin for notification method Email - ignoring this notification",
         "monitoringserver" : "Master Monitoring Server",
         "severity" : "warning"
      },        
      {
         "detail": "Missing required variable EMAIL for contact user for notification method Email - ignoring this notification",
         "severity"; "warning",
         "monitoringserver" : "Master Monitoring Server",
      }
   ],
   "server_status" : "4"
}

Initiate a reload with changelog enabled Copied

$ opsview_rest --token-file /path/to/opsview_restapi_token --pretty POST "reload?changelog=Creating new users"
{
   "auditlog_entries" : "0",
   "average_duration" : "30",
   "configuration_status" : "uptodate",
   "lastupdated" : "1519680351",
   "messages" : [],
   "server_status" : "0"
}
["Opsview On-premises"] ["API", "Technical Reference"]

Was this topic helpful?