---
title: CommandCompletionEvent
slug: jetstream-v3/commandcompletionevent
docTags: 
createdAt: 2024-01-23T15:46:02.761Z
---

## About

CommandCompletionEvent is published when a command has been completed on a device. The CommandCompletionEvent will include any output parameters, exceptions, and device extensions for completing the command.

## Fields

| **Property**                                                           | **Details**                                                                                                                                                                                                                                                                                                                  |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Type**<br />string                                                   | The type of Jetstream event.                                                                                                                                                                                                                                                                                                 |
| **EventId**<br />string<br />Unique                                    | The ID assigned to the event.                                                                                                                                                                                                                                                                                                |
| **EventTime**<br />string                                              | The time that the event occurred.<br />The value is expressed in UTC.<br />This value is expressed in the following format: yyyy-MM-ddTHH\:mm\:ssZ                                                                                                                                                                           |
| **Version**<br />int                                                   | The Jetstream version of the event.                                                                                                                                                                                                                                                                                          |
| **Device**<br />string                                                 | The name of the device.                                                                                                                                                                                                                                                                                                      |
| **CommandId**<br />string<br />Unique                                  | The ID assigned to the command that was queued.                                                                                                                                                                                                                                                                              |
| **CommandName**<br />string                                            | The name of the command that was queued.                                                                                                                                                                                                                                                                                     |
| **Verb**<br />string                                                   | The HTTP verb the API endpoint was called with.                                                                                                                                                                                                                                                                              |
| **User**<br />string                                                   | The username of the user that called the endpoint.                                                                                                                                                                                                                                                                           |
| **OutputParameterList**<br />list (keyvaluepair<br />(string, string)) | A list of values that is returned from the device.<br />This can be empty on both successful and failed commands.                                                                                                                                                                                                            |
| **ExceptionList**<br />list (keyvaluepair<br />(string, string))       | A list of exceptions that occurred while completing the command.<br />If the command was successfully completed, this will be empty.<br />The most common exception is a command timeout, for example:<br />"Key":"CommandTimedOut",<br />"Value":"Command timed out after 1440 minutes. Queued Time = 3/8/2021 11:54:01 PM" |

## Example

### Published CommandCompletionEvent for [Sync Device Credentials](docId\:L7Ik_rA1wcy3PhHm0fWQS)

:::BlockQuote
\{
&#x20;   "CommandId": "0093fac7-1d82-430a-8bd2-0562c2067037",
&#x20;   "CommandName": "SyncCredentials",
&#x20;   "OutputParameterList": \[],
&#x20;   "ExceptionList": \[],
&#x20;   "Device": "MyDeviceName",
&#x20;   "ReceivedTime": "2018-05-16T21:17:13Z",
&#x20;   "Type": "CommandCompletionEvent",
&#x20;   "EventId": "59236a58-2581-4f10-be5c-44c11e681794",
&#x20;   "EventTime": "2018-05-16T21:17:12Z",
&#x20;   "Version": 2
}
:::

### Published CommandCompletionEvent for [Get All RFID Tags](docId:7oNVTnTDTfl9pTDal2NVo)

:::BlockQuote
\{
&#x20;   "CommandId": "6f05b39a-a7a8-4bff-b694-00117af4a6d4",
&#x20;   "CommandName": "GetEPCListCommand",
&#x20;   "OutputParameterList": \[
&#x20;       \{
&#x20;           "Key": "EPC",
&#x20;           "Value": "AD4424044149CB775C0000CB"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "EPC",
&#x20;           "Value": "AD44240441498F755B0000C5"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "EPC",
&#x20;           "Value": "AD4424044149A3795C0000C7"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "EPC",
&#x20;           "Value": "AD4424044149F1765B0000CF"
&#x20;       }
&#x20;   ],
&#x20;   "ExceptionList": \[],
&#x20;   "Device": "MyDeviceName",
&#x20;   "ReceivedTime": "2018-05-17T16:23:10Z",
&#x20;   "Type": "CommandCompletionEvent",
&#x20;   "EventId": "c5ec82de-2284-4156-aa09-092669115b27",
&#x20;   "EventTime": "2018-05-17T16:23:08Z",
&#x20;   "Version": 2
}
:::

### Published CommandCompletionEvent for [Restart a Device](docId\:Ww54Y7kIQnfVYk8zyqakv)

:::BlockQuote
\{
&#x20;   "CommandId": "0a80f878-8cdf-4265-beb9-2649e3affe36",
&#x20;   "CommandName": "ResetCommand",
&#x20;   "OutputParameterList": \[],
&#x20;   "ExceptionList": \[],
&#x20;   "Device": "MyDeviceName",
&#x20;   "ReceivedTime": "2018-05-17T20:05:06Z",
&#x20;   "Type": "CommandCompletionEvent",
&#x20;   "EventId": "d8fc5071-c933-4b6a-b735-225b413e4894",
&#x20;   "EventTime": "2018-05-17T20:05:29Z",
&#x20;   "Version": 2
}
:::

### Published CommandCompletionEvent for [Lockdown a Device](docId\:vBOyeOHCjLpY_7ZR-aFgZ)

:::BlockQuote
\{
&#x20;   "CommandId": "6bd4b8fb-d964-4d00-ae0a-e3943d58e004",
&#x20;   "CommandName": "Lockdown",
&#x20;   "OutputParameterList": \[],
&#x20;   "ExceptionList": \[],
&#x20;   "Device": "MyDeviceName",
&#x20;   "ReceivedTime": "2018-05-18T00:31:36Z",
&#x20;   "Type": "CommandCompletionEvent",
&#x20;   "EventId": "a0a1a21b-7537-4a75-9eee-cb2e9688f146",
&#x20;   "EventTime": "2018-05-18T00:31:35Z",
&#x20;   "Version": 2
}
:::

### Published CommandCompletionEvent for [Unlock a Device's Door](docId:1_Ro5CpawEzhguxFHOfai)

:::BlockQuote
\{
&#x20;   "CommandId": "2b50fff0-e84c-42c1-b294-9eb6895684c3",
&#x20;   "CommandName": "UnlockDoor",
&#x20;   "OutputParameterList": \[],
&#x20;   "ExceptionList": \[],
&#x20;   "Device": "MyDeviceName",
&#x20;   "ReceivedTime": "2018-05-18T03:22:54Z",
&#x20;   "Type": "CommandCompletionEvent",
&#x20;   "EventId": "4aa5df90-bfea-49f7-8d69-bce6ba9e21fb",
&#x20;   "EventTime": "2018-05-18T03:22:52Z",
&#x20;   "Version": 2
}
:::

### Published CommandCompletionEvent for [Get a Device's Policy Parameters](docId\:G6S4NzG5DSGAf_dCAGbTb)

:::BlockQuote
\{
&#x20;   "CommandId": "e8498582-9ae3-4e82-a1f0-005ecce1ec7c",
&#x20;   "CommandName": "GetConfigValuesCommand",
&#x20;   "OutputParameterList": \[
&#x20;       \{
&#x20;           "Key": "aggregateeventscancount",
&#x20;           "Value": "2"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "aggregateeventscantime",
&#x20;           "Value": "10"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "antenna1rxsensitivity",
&#x20;           "Value": "50"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "antenna1txpower",
&#x20;           "Value": "30"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "antenna2rxsensitivity",
&#x20;           "Value": "50"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "antenna2txpower",
&#x20;           "Value": "30"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "antenna3rxsensitivity",
&#x20;           "Value": "50"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "antenna3txpower",
&#x20;           "Value": "30"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "antenna4rxsensitivity",
&#x20;           "Value": "50"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "antenna4txpower",
&#x20;           "Value": "30"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "commandpollinterval",
&#x20;           "Value": "60"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "dns",
&#x20;           "Value": "0.0.0.0"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "dooropentimelimit",
&#x20;           "Value": "300"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "gateway",
&#x20;           "Value": "0.0.0.0"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "ip",
&#x20;           "Value": "0.0.0.0"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "jetstreamdeviceurl",
&#x20;           "Value": "https\://us-device.tersosolutions.com/v1.0/device/"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "lockdownhightemp",
&#x20;           "Value": "127"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "lockdownonacpowerfailure",
&#x20;           "Value": "0"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "lockdownonhightemp",
&#x20;           "Value": "0"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "lockdownonreaderfailure",
&#x20;           "Value": "0"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "logentryeventhightemp",
&#x20;           "Value": "127"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "logentryeventlowtemp",
&#x20;           "Value": "-128"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "logentrylevel",
&#x20;           "Value": "warning"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "numberofantennas",
&#x20;           "Value": "4"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "objecteventscancount",
&#x20;           "Value": "2"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "objecteventscantime",
&#x20;           "Value": "10"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "subnet",
&#x20;           "Value": "0.0.0.0"
&#x20;       }
&#x20;   ],
&#x20;   "ExceptionList": \[],
&#x20;   "Device": "MyDeviceName",
&#x20;   "ReceivedTime": "2018-05-18T20:55:12Z",
&#x20;   "Type": "CommandCompletionEvent",
&#x20;   "EventId": "c13a2d94-fb86-421d-9969-f56e3a44b280",
&#x20;   "EventTime": "2018-05-18T20:55:18Z",
&#x20;   "Version": 2
}
:::

### Published CommandCompletionEvent for [Set a Device's Policy Parameters](docId\:g2EhiBF-dqNWC4nH0cX1w)

:::BlockQuote
\{
&#x20;   "CommandId": "2bf00848-b06a-4820-86fc-58c12e08ee3e",
&#x20;   "CommandName": "SetConfigValuesCommand",
&#x20;   "OutputParameterList": \[],
&#x20;   "ExceptionList": \[],
&#x20;   "Device": "MyDeviceName",
&#x20;   "ReceivedTime": "2018-05-19T01:16:23Z",
&#x20;   "Type": "CommandCompletionEvent",
&#x20;   "EventId": "93723c89-cb44-44f0-8d86-87ede0fb3ba6",
&#x20;   "EventTime": "2018-05-19T01:16:19Z",
&#x20;   "Version": 2
}
:::

## Version Changes

- Replaced CommandCompletionEvents for Get All Passes, Add and/or Remove Passes, and Replace All Passes with the CommandCompletionEvents for Sync Device Credentials.
- Removed CommandCompletionEvent for Update Agent Firmware.
- Addition of the Version property.

