All URIs are relative to https://console.jumpcloud.com/api
Method | HTTP request | Description |
---|---|---|
CommandTriggerWebhookPost | Post /command/trigger/{triggername} | Launch a command via a Trigger |
CommandTriggerWebhookPost(ctx, triggername, contentType, accept, optional) 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}\"
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
triggername | string | ||
contentType | string | [default to application/json] | |
accept | string | [default to application/json] | |
optional | map[string]interface{} | optional parameters | nil if no parameters |
Optional parameters are passed through a map[string]interface{}.
Name | Type | Description | Notes |
---|---|---|---|
triggername | string | ||
contentType | string | [default to application/json] | |
accept | string | [default to application/json] | |
xOrgId | string | [default to ] |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]