enable_audit
Enable SQL auditing on a warehouse or SQL analytics endpoint, with optional log retention from 0 to 3650 days.
Instructions
Enable SQL auditing on a warehouse or SQL analytics endpoint.
CAUTION: The pre-flight GET used to round-trip the existing action-group list is eventually consistent and may lag a recent PATCH by several minutes. If the action-group list was changed within that window, this call may silently revert it. Space audit writes at least a few minutes apart.
Args: workspace: Workspace name or GUID. warehouse: Warehouse or SQL analytics endpoint name or GUID. retention_days: Log retention in days (0-3650; 0 = unlimited). Default 0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| warehouse | Yes | ||
| workspace | Yes | ||
| retention_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||