Skip to main content
Manages a Kosli action. Actions define webhook notifications triggered by environment compliance events.
Actions are identified internally by a server-assigned number. The name is used during import to look up the number.
Use this resource to configure automated notifications when environments change compliance state. Actions send webhooks to external services such as Slack or Microsoft Teams.

Example usage

Triggers

The triggers attribute must contain one or more of the following event types:
ON_SCALED_ARTIFACT keeps its historical name for backwards compatibility. Kosli no longer records scaling events, so this trigger fires on artifact changes.

Import

Actions can be imported using their name:

Schema

Required

  • environments (List of String) List of environment names this action monitors.
  • name (String) Name of the action. Must be unique within the organization. Changing this will force recreation of the resource.
  • triggers (List of String) List of trigger event types that activate this action. One or more of ON_STARTED_ARTIFACT, ON_EXITED_ARTIFACT, ON_SCALED_ARTIFACT, ON_ALLOWED_ARTIFACT, ON_COMPLIANT_ENV, ON_NON_COMPLIANT_ENV. See Triggers for what each one fires on.
  • webhook_url (String, Sensitive) Webhook URL to send notifications to.

Read-only

  • created_by (String) User who created the action.
  • last_modified_at (Number) Unix timestamp of when the action was last modified.
  • number (Number) Server-assigned numeric identifier for the action.
Last modified on October 5, 2026