# LegacyTask

- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/LegacyTask#SCHEMA_REPRESENTATION)

Task is an instruction to the remote agent to perform an action.

| JSON representation |
|---|
| ``` { "id": string, "created": string, "updated": string, "status": string, "type": string, "key": string, "data": string, "results": string, "agent": string, "admin": string } ``` |

| Fields ||
|---|---|
| `id` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. Id of the task. |
| `created` | `string` Output only. The time when the task was created. |
| `updated` | `string` Output only. The time when the task was updated. |
| `status` | `string` Output only. The status of the task. |
| `type` | `string` Output only. The type of the task. |
| `key` | `string` Output only. The encrypted key of the task. |
| `data` | `string` Output only. The data of the task. |
| `results` | `string` Output only. The results of the task. |
| `agent` | `string` Output only. The agent that should run the task. |
| `admin` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The admin that created the task. |