commands
Creates, updates, deletes, gets or lists a commands
resource.
Overview
Name | commands |
Type | Resource |
Id | googleadmin.directory.commands |
Fields
The following fields are returned by SELECT
queries:
- get
Successful response
Name | Datatype | Description |
---|---|---|
commandExpireTime | string (google-datetime) | The time at which the command will expire. If the device doesn't execute the command within this time the command will become expired. |
commandId | string (int64) | Unique ID of a device command. |
commandResult | object | The result of the command execution. (id: DirectoryChromeosdevicesCommandResult) |
issueTime | string (google-datetime) | The timestamp when the command was issued by the admin. |
payload | string | The payload that the command specified, if any. |
state | string | Indicates the command state. |
type | string | The type of the command. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | customerId , deviceId , commandId | Gets command data a specific command issued to the device. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
commandId | string | |
customerId | string | |
deviceId | string |
SELECT
examples
- get
Gets command data a specific command issued to the device.
SELECT
commandExpireTime,
commandId,
commandResult,
issueTime,
payload,
state,
type
FROM googleadmin.directory.commands
WHERE customerId = '{{ customerId }}' -- required
AND deviceId = '{{ deviceId }}' -- required
AND commandId = '{{ commandId }}' -- required;