Skip to main content

List Commands

This endpoint returns all commands.

Sample Request

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

Basic Parameters

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

Advanced Parameters

ParameterDescription
LimitThe number of records to return at once. Limited to 100.
Organization IDOrganization identifier that can be obtained from console settings.
SkipThe offset into the records to return.

Example Output

{
"totalCount": 1,
"results": [
{
"name": "commandName",
"command": "exmapleCommand",
"commandType": "mac",
"launchType": "manual",
"listensTo": "",
"schedule": "immediate",
"trigger": "",
"scheduleRepeatType": "day",
"organization": "12a345b67887bf8dc618765f9",
"scheduleYear": 0,
"template": "",
"_id": "12a345ac67805c374abee09b",
"id": "12a345ac67805c374abee09b"
}
]
}

Workflow Library Example

List Commands with Jumpcloud and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop