Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 2.31 KB

CommandTriggersApi.md

File metadata and controls

50 lines (33 loc) · 2.31 KB

\CommandTriggersApi

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

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}\"

Required Parameters

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

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 ]

Return type

(empty response body)

Authorization

x-api-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]