Configure Webhooks
Certain actions in SE2 can trigger webhooks to notify other services of the event. The receivers of webhooks get contextually relevant information about the request SE2 receiver. By default, no webhooks are configured.
You can set your own webhooks in the se2-config.yaml
file that subo
created for you in your suborbital/config
directory.
Configuration options
The webhooks
stanza in se2-config.yaml
consists of a top level webhooks
object with a list of entries.
Each entry has an id
referencing the builder.function.promoted
hook point and a list of one or more HTTP targets
, which consist of a url
, method
, and dictionary of headers
(optional).
Examples
A simple inline example:
An example with shared headers and multiple targets for a single hook point:
Hook points
Devs at work Stay tuned for more hook points!
builder.function.promoted
Description Runs when an end user successfully deploys a plugin.
Sample response(JSON):