Skip to main content

Get Command

This endpoint returns a specific command based on the command ID.

Sample Request

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

Basic Parameters

ParameterDescription
FieldsUse a space seperated string of field parameters to include the data in the response. If omitted, the default list of fields will be returned.
IDThe command ID.

Advanced Parameters

ParameterDescription
Organization IDOrganization identifier that can be obtained from console settings.

Example Output

{
"command": "string",
"commandRunners": [
"string"
],
"commandType": "linux",
"files": [
"string"
],
"launchType": "string",
"listensTo": "string",
"name": "string",
"organization": "string",
"schedule": "string",
"scheduleRepeatType": "string",
"scheduleYear": 0,
"shell": "string",
"sudo": true,
"systems": [
"string"
],
"template": "string",
"timeToLiveSeconds": 0,
"timeout": "string",
"trigger": "string",
"user": "string"
}

Workflow Library Example

Get Command with Jumpcloud and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop