> ## 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.

# Get Command Result

This endpoint returns a specific command result.

#### Sample Request

```
curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \
  -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. |
  | ID        | The command ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter       | Description                                                         |
  | --------------- | ------------------------------------------------------------------- |
  | Organization ID | Organization identifier that can be obtained from console settings. |
</div>

## Example Output

```json theme={"dark"}
{
	"_id": "string",
	"command": "string",
	"files": [
		"string"
	],
	"name": "string",
	"organization": "string",
	"requestTime": "2019-08-24T14:15:22Z",
	"response": {
		"data": {
			"exitCode": 0,
			"output": "string"
		},
		"error": "string",
		"id": "string"
	},
	"responseTime": "2019-08-24T14:15:22Z",
	"sudo": true,
	"system": "string",
	"systemId": "string",
	"user": "string",
	"workflowId": "string",
	"workflowInstanceId": "string"
}
```

## Workflow Library Example

[Get Command Result with Jumpcloud and Send Results Via Email](https://library.blinkops.com/workflows/get-command-result-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/get-command-result-with-jumpcloud-and-send-results-via-email/canvas" />
</div>
