Tsuru event webhook create
tsuru event webhook create¶
Creates a new webhook triggered when an event matches.
Synopsis¶
Creates a new webhook triggered when an event matches.
tsuru event webhook create <name> <url> [-d/--description <description>] [-t/--team <team>] [-m/--method <method>] [-b/--body <body>] [--proxy <url>] [-H/--header <name=value>]... [--insecure] [--error-only] [--success-only] [--target-type <type>]... [--target-value <value>]... [--kind-type <type>]... [--kind-name <name>]... [flags]
Options¶
-b, --body string The HTTP body sent in the request if method is either POST, PUT or PATCH, if unset defaults to the Event that triggered the webhook serialized as JSON. The API will try to parse the body as a Go template string with the event available as context.
-d, --description string A description on how the webhook will be used.
--error-only Only matches events with error.
-H, --header key=value The HTTP headers sent in the request.
--insecure Ignore TLS errors in the webhook request.
--kind-name string Kind Name for matching events.
--kind-type string Kind Type for matching events.
-m, --method string The HTTP Method used in the request, if unset defaults to POST.
--proxy string The proxy server URL used in the request. Supported schemes are http(s) and socks5.
--success-only Only matches events with success.
--target-type string Target Type for matching events.
--target-value string Target Value for matching events.
-t, --team string The team name responsible for this webhook.
-h, --help help for create
Options inherited from parent commands¶
--target string Tsuru server endpoint
--verbosity int Verbosity level: 1 => print HTTP requests; 2 => print HTTP requests/responses
SEE ALSO¶
- tsuru event webhook - Event webhooks allow integrating tsuru events with external systems.