i want to use Rest Api to get the watcher status from NTSERVICES Probe

Document ID : KB000100024
Last Modified Date : 04/06/2018
Show Technical Document Details
Question:
I want to use Rest Api to get the watcher status from NTSERVICES Probe to check if it's stop or start how can i read this status via Rest Api ?
Answer:
This information is available via the probe callback list_profilestatus
This callback supplies nested data so you need to use the callback2 REST call

below are 2 example code snippets to run this via web services in xml and in json

xml
XML 

POST /rest/probe/<domain>/<hub>/<robot>/ntservices/callback2/list_profilestatus HTTP/1.1 
Host: <UMP server address> 
Content-Type: application/xml 
Accept: application/xml 

<nimPds> 
<nimInt key="state">1</nimInt>nimInt> 
</nimPds>

json
POST /rest/probe/<domain>/<hub>/<robot>/ntservices/callback2/list_profilestatus HTTP/1.1 
Host: <UMP server address> 
Content-Type: application/json 
Accept: application/json 

{"nimInt":{"@key":"state","$":"1"}}