Notes - Fetching

Host input

opsview_rest --username=admin --password=password --data-format=json --pretty GET /rest/notes/host/7

Returns:

{
   "id" : "7",
   "note" : "This is a host note",
   "writeable" : "1"
}

Service Check input

opsview_rest --user=admin --password=password --pretty --data-format=json GET '/rest/notes/service?hostname=opsview-master&servicename=CPU Statistics'

Returns:

{
   "id" : "578",
   "note" : "This is a service check note",
   "writeable" : "1"
}

The note will be in a mini HTML format.

Error conditions: Invalid id or no permission on host - 404.

["Opsview"] ["API", "Technical Reference"]

Was this topic helpful?