Remote actions API
Trigger and query remote actions using the Nexthink API.
Triggers the execution of a remote action for a set of devices.
The ID of the remote action to execute
#ExampleRA
Nexthink Collector IDs of the devices that the remote action should be executed on
The amount of time in minutes before the execution will expire if a targeted device does not come online to process it.
60
OK - Successful execution.
Bad request - Invalid request, see the error code for details.
Unauthorized - No valid authentication credentials.
No permission - Not authorized to execute the remote action.
POST /api/v1/act/execute HTTP/1.1
Host: instance.api.region.nexthink.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 254
{
"remoteActionId": "#ExampleRA",
"params": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"devices": [
"text"
],
"expiresInMinutes": 60,
"triggerInfo": {
"externalSource": "ServiceNow, Jira, etc.",
"reason": "Fix teams issue on device remotely",
"externalReference": "SNOW-488783"
}
}
{
"requestId": "7fbd96a7-b717-43a7-8973-9c6adbca3a56",
"expiresInMinutes": 60
}
Retrieves the remote actions, including their configuration information.
OK - Successful listing.
Bad request - Invalid request, see the error code for details.
Unauthorized - No valid authentication credentials.
No permission - Not authorized to get remote action information.
GET /api/v1/act/remote-action HTTP/1.1
Host: instance.api.region.nexthink.cloud
Authorization: text
Accept: */*
[
{
"id": "text",
"uuid": "text",
"name": "text",
"description": "text",
"origin": "text",
"builtInContentVersion": "text",
"purpose": [
"DATA_COLLECTION"
],
"targeting": {
"apiEnabled": true,
"manualEnabled": true,
"workflowEnabled": true,
"manualAllowMultipleDevices": true
},
"scriptInfo": {
"executionServiceDelegate": "text",
"runAs": "LOCAL_SYSTEM",
"timeoutSeconds": 1,
"hasScriptWindows": true,
"hasScriptMacOs": true,
"inputs": [
{
"id": "text",
"name": "text",
"description": "text",
"usedByWindows": true,
"usedByMacOs": true,
"options": [
"text"
],
"allowCustomValue": true
}
],
"outputs": [
{
"id": "text",
"name": "text",
"type": "text",
"description": "text",
"usedByWindows": true,
"usedByMacOs": true
}
]
}
}
]
Retrieve the configuration of a specific remote action.
The nql-id of the remote action
#ExampleRA
OK - Remote action configuration retrieved.
Unauthorized - no valid authentication credentials.
No permission - Not authorized to get that information.
Not found - No remote action associated with that NQL ID.
GET /api/v1/act/remote-action/details?nql-id=text HTTP/1.1
Host: instance.api.region.nexthink.cloud
Authorization: text
Accept: */*
{
"id": "text",
"uuid": "text",
"name": "text",
"description": "text",
"origin": "text",
"builtInContentVersion": "text",
"purpose": [
"DATA_COLLECTION"
],
"targeting": {
"apiEnabled": true,
"manualEnabled": true,
"workflowEnabled": true,
"manualAllowMultipleDevices": true
},
"scriptInfo": {
"executionServiceDelegate": "text",
"runAs": "LOCAL_SYSTEM",
"timeoutSeconds": 1,
"hasScriptWindows": true,
"hasScriptMacOs": true,
"inputs": [
{
"id": "text",
"name": "text",
"description": "text",
"usedByWindows": true,
"usedByMacOs": true,
"options": [
"text"
],
"allowCustomValue": true
}
],
"outputs": [
{
"id": "text",
"name": "text",
"type": "text",
"description": "text",
"usedByWindows": true,
"usedByMacOs": true
}
]
}
}
Was this helpful?