Remote Actions NQL examples

This list of NQL examples is designed to help you execute remote actions on demand. Go through the queries below and pick the one most similar to your use case, copy it, and adjust it accordingly.

chevron-rightReturn all devices.hashtag
devices
chevron-rightReturn a specific device.hashtag
devices 
| where name == "Device-Name"
| list name
chevron-rightReturn all remote action executions in the system and sort them from the newest to the oldest.hashtag
remote_action.executions
|list remote_action.name, device.name, trigger_method ,time, status, status_details, outputs
|sort time desc
chevron-rightReturn executions of a specific remote action in the last hour sorted from newest to oldest.hashtag

Replace Remote-Action-Name with the name of the remote action you are looking for.

remote_action.executions during past 60min
|where remote_action.name == "Remote-Action-Name"
|list remote_action.name, device.name, trigger_method, time, status, status_details, outputs
|sort time desc
chevron-rightReturn remote action executions for a specific device in the last hour sorted from newest to oldest.hashtag

Replace Device-Name with the name of the device you are looking for.

remote_action.executions during past 60min
|where device.name == "Device-Name" 
|list remote_action.name, device.name, trigger_method, time, status, status_details, outputs
|sort time desc
chevron-rightGet the values from the last successful execution of a remote action, for example: #Get_Battery_Status.hashtag
chevron-rightReturn the battery health status of the windows device.hashtag
chevron-rightReturn all triggered remote actions for a specific internal source.hashtag
chevron-rightReturn all triggered remote actions for a specific trigger method.hashtag

Last updated

Was this helpful?