set_audit_retention
Set the audit log retention period for a Fabric data warehouse or SQL endpoint without toggling audit on/off. Specify workspace, warehouse, and number of days (1-3650).
Instructions
Update the audit log retention period without changing the audit enabled/disabled state.
Audit must already be enabled; if disabled, enable it first with enable_audit.
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. days: Retention period in days (1-3650). The API enforces its own upper bound.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| warehouse | Yes | ||
| workspace | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||