set_time_travel_retention
Change the time-travel retention period on a Fabric warehouse or SQL Analytics Endpoint. Specify workspace, item, and days (1-120) to alter the database setting.
Instructions
Set the time-travel retention period on a warehouse.
Executes ALTER DATABASE CURRENT SET TIME_TRAVEL_RETENTION_PERIOD = <n> DAYS
and returns the effective settings read back after the change.
The time-travel retention feature is primarily a Data Warehouse concept. Running this on a SQL Analytics Endpoint is allowed but may be a no-op.
Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. days: Retention period in days. Must be in the range 1-120 (inclusive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | ||
| item | Yes | ||
| days | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||