Issue a Remote Command and Poll the Device
A 3-step recipe with Google Android. We can help you get access.
Recipe · 3 steps
Issue a Remote Command and Poll the Device
with Google Android · Information Technology Management
Send a remote command to one device and poll it until the device reports back.
- Read the device to confirm it exists and is manageable, and to capture the status report timestamp the poll below will compare against.
- Issue the command. This returns a long-running Operation rather than the command result, so success here means the command was accepted for delivery, not that the device has carried it out.
- Poll the device until it files a status report newer than the one captured before the command, which is the observable evidence the device checked in and acted.
What you'll need to have ready
- deviceName: The device resource name (e.g. enterprises/LC0123abcd/devices/3789123).
- commandType: The command to issue.
- duration: How long the command remains valid, as a duration (e.g. 600s).
- newPassword: The new password, used only when commandType is RESET_PASSWORD.
For your developer
Arazzo workflow google-android:issue-remote-command, 3 operations: getDevice → issueDeviceCommand → getDevice. Specs on APIs.io.