alerts.read. Creating, updating, testing, and deleting a connector requires alerts.manage.
Connector types
The type list returnsconnector_type and the capabilities of every type that the running backend registers. The types are email_smtp, lark_app, lark_webhook, slack_app, slack_webhook, and webhook.
config object of a connector depends on its type. Every timeout_secs defaults to 10 and accepts 1 through 60. URLs must be absolute http or https URLs.
Notification channels explains each provider and its targets.
Create a connector
config at rest. Responses replace the value of every key that holds a credential with ***. These keys are url, webhook_url, headers, and every key that ends in password, secret, or token. Other keys, such as host, from, and timeout_secs, stay readable.
status is unknown until the first test, then connected or error. last_test_status is success or failed. Routing skips a connector with the status error until a later test succeeds.
List and get connectors
id answers 404.
Update a connector
Send
*** for a masked key to keep the stored secret, or send a new plaintext value to replace it:
Test a connector
200, with sent set to false and the reason in error, for example unavailable: webhook request failed. The test also updates status, last_tested_at, last_test_status, and last_test_error of the connector.
Delete a connector
204 without a body. While a user endpoint, a notification policy, a fallback route, a scheduled log inspection, a status page, or Mole Agent in IM still references the connector, the call answers 409 with notify connector is referenced by user endpoints, policies, default routes, scheduled log inspections, status pages, or Mole Agent in IM. Move the references first.