# Get status

Launch stage: GA

`GET /api/1.2/contexts/status`

Gets the status for an execution context.

 After __Create__, poll this method until the status is `Running` or `Error`. Requests for a context
 that has been deleted fail with an error instead of returning a status.

API scopes: command-execution

## Query parameters

- `clusterId` (string, required)
  ID of the cluster that hosts the execution context.
  Example: `0123-456789-abcdefg1`
- `contextId` (string, required)
  ID of the execution context, as returned by __Create__.
  Example: `3f2a9c1e8b7d4a6f9e0c1b2d3a4f5e6d`

## Returns

- `id` (string, optional)
  ID of the execution context.
- `status` (string, optional)
  Current status of the execution context. `Pending` means the context is still initializing and does
   not accept commands yet, `Running` means it is ready, and `Error` means it failed: running commands
   may not complete and new commands may be rejected, so create a new context.
  Possible values:
  - `Running`
  - `Pending`
  - `Error`

## Response

```json
{
  "id": "3f2a9c1e8b7d4a6f9e0c1b2d3a4f5e6d",
  "status": "Running"
}
```

