> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Command Results

This endpoint returns all command results.

#### Sample Request

```
curl -X GET https://console.jumpcloud.com/api/commandresults \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key:{API_KEY}'
```

## Basic Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Fields    | Use a space separated string of field parameters to include the data in the response. If omitted, the default list of fields will be returned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | Filter    | A filter to apply to the query. See the supported operators below. For more complex searches,<br />see the related `/search/&lt;domain&gt;` endpoints,<br />e.g. `/search/systems`.<br /><br />**Filter structure**: `&lt;field&gt;:&lt;operator&gt;:&lt;value&gt;`.<br /><br />**field** = Populate with a valid field from an endpoint response.<br /><br />**operator** = Supported operators are:<br />- `$eq` (equals)<br />- `$ne` (does not equal)<br />- `$gt` (is greater than)<br />- `$gte` (is greater than or equal to)<br />- `$lt` (is less than)<br />- `$lte` (is less than or equal to)<br /><br />*Note: v1 operators differ from v2 operators.*<br /><br />*Note: For v1 operators, excluding the `$` will result in undefined behavior.*<br /><br />**value** = Populate with the value you want to search for. Is case sensitive.<br /><br />**Examples**<br />- `GET /users?filter=username:$eq:testuser`<br />- `GET /systemusers?filter=password_expiration_date:$lte:2021-10-24`<br />- `GET /systemusers?filter=department:$ne:Accounting`<br />- `GET /systems?filter[0]=firstname:$eq:foo&filter[1]=lastname:$eq:bar` - this will<br />   AND the filters together.<br />- `GET /systems?filter[or][0]=lastname:$eq:foo&filter[or][1]=lastname:$eq:bar` - this will<br />   OR the filters together. |
  | Sort      | Use space separated sort parameters to sort the collection.<br />Default sort is ascending. Prefix with `-` to sort descending.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter       | Description                                                         |
  | --------------- | ------------------------------------------------------------------- |
  | Limit           | The number of records to return at once. Limited to 100.            |
  | Organization ID | Organization identifier that can be obtained from console settings. |
  | Skip            | The offset into the records to return.                              |
</div>

## Example Output

```json theme={"dark"}
{
	"results": [
		{
			"_id": "string",
			"command": "string",
			"exitCode": 0,
			"name": "string",
			"requestTime": "2019-08-24T14:15:22Z",
			"responseTime": "2019-08-24T14:15:22Z",
			"sudo": true,
			"system": "string",
			"systemId": "string",
			"user": "string",
			"workflowId": "string"
		}
	],
	"totalCount": 0
}
```

## Workflow Library Example

[List Command Results with Jumpcloud and Send Results Via Email](https://library.blinkops.com/workflows/list-command-results-with-jumpcloud-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-command-results-with-jumpcloud-and-send-results-via-email/canvas" />
</div>
