Run Task Now
Use this API Call to query our Data Extraction API to extract data gathered by N-sight RMM.This section shows the service name and parameters needed in the API Call query, and provides examples of some queries and system responses. For more information, see Data Extraction API.
API Call Frequency — Each API call uses system resources when querying and returning data. To avoid performance issues, do not send automated API calls using a frequency less than 90 seconds. We may contact you if we detect API activity that negatively impacts system performance.
Service name: task_run_now |
|
URL |
https://SERVER/api/?apikey=yourAPIkey&service=task_run_now &required_parameters=required_parameters [&optional_parameters=optional_parameters] |
Description |
Set an Automated Task to run now and return the time until the task starts. |
Parameter | Description | Type | Required | Options | Default |
---|---|---|---|---|---|
describe | Optional. Returns a description of the service. | boolean | no | true | 0 |
checkid | The identifier for the Automated Task | number | yes | 0 | 0 |
Example Service Call - task_run_now |
https://SERVER/api/?apikey=yourAPIkey&service=task_run_now&checkid=CHECKID |
Example Response |
<?xml version="1.0" ?> <result created="2012-04-26T18:30:04+01:00" host="SERVER" status="OK"> <message time="15">15 minutes</message> </result> |
Fields Description |
|||
Field |
Type |
Can Be Empty |
Description |
@time |
string |
no |
Number of minutes until Automated Task runs |
message |
string |
no |
Textual representation of time until Automated Task run |
Example Associated Service Calls | ||
Parameter | Call | URL Format |
CheckID | list_checks | https://SERVER/api/?apikey=yourAPIkey&service=list_checks&deviceid=DEVICEID |
DeviceID | list_devices_at_client |
https://SERVER/api/?apikey=yourAPIkey&service=list_devices_at_client&clientid=CLIENTID&devicetype=server |
list_servers |
https://SERVER/api/?apikey=yourAPIkey&service=list_servers&siteid=SITEID |
|
list_workstations |
https://SERVER/api/?apikey=yourAPIkey&service=list_workstations&siteid=SITEID |
|
SiteID | list_sites | https://SERVER/api/?apikey=yourAPIkey&service=list_sites&clientid=CLIENTID |
ClientID | list_clients | https://SERVER/api/?apikey=yourAPIkey&service=list_clients |
Where do you want to go?
- View information on Automated Tasks.
- Review Run Automated Task Now.
- Generate an API key and view the server URLs.