Command Triggers

Launch a command via a Trigger

This endpoint allows you to launch a command based on a defined trigger.

Sample Requests

Launch a Command via a Trigger

curl --silent \
     -X 'POST' \
     -H "x-api-key: {API_KEY}" \
     "https://console.jumpcloud.com/api/command/trigger/{TriggerName}"

Launch a Command via a Trigger passing a JSON object to the command

curl --silent \
     -X 'POST' \
     -H "x-api-key: {API_KEY}" \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/json' \
     -d '{ "srcip":"192.168.2.32", "attack":"Cross Site Scripting Attempt" }' \
     "https://console.jumpcloud.com/api/command/trigger/{TriggerName}"
post/command/trigger/{triggername}

Request

Headers

x-org-idstring

Request body

object required

Response

OK

triggeredstring[]

Changes

No recorded changes to this operation across all 1 revision of this API.