[SDK reference](../../index.md) / [Models](../index.md) / [Compute](index.md)

# CommandRun

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Compute`  

One run of a command. Output is returned by `getCommandRun` only, from `offset`, so a page can follow a run as it streams.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `DurationMs` | `long?` | `durationMs` | The durationMs property |
| `EndTime` | `DateTimeOffset?` | `endTime` | The endTime property |
| `ExitCode` | `int?` | `exitCode` | The exitCode property |
| `Id` | `string?` | `id` | Run ID, `cr-…`. |
| `NextOffset` | `long?` | `nextOffset` | The offset to ask for next. |
| `Output` | `string?` | `output` | Standard output and error as the guest wrote them, from `offset`; at most 64 KiB are kept. |
| `OutputToLogs` | `bool?` | `outputToLogs` | The outputToLogs property |
| `RunAs` | `string?` | `runAs` | The runAs property |
| `ScriptDigest` | `string?` | `scriptDigest` | `sha256:` and the hex digest of the script. |
| `StartTime` | `DateTimeOffset?` | `startTime` | The startTime property |
| `StartedBy` | `string?` | `startedBy` | The principal that started it. |
| `State` | `string?` | `state` | RUNNING, SUCCEEDED (exit 0), FAILED (exit not 0), TIMED_OUT, CANCELLED or INTERRUPTED (the host stopped before it ended). |
| `TimeLimitSeconds` | `int?` | `timeLimitSeconds` | The timeLimitSeconds property |
| `Truncated` | `bool?` | `truncated` | True when output past 64 KiB was dropped. |
