vw_long_term_retention_policies
Creates, updates, deletes, gets or lists a vw_long_term_retention_policies
resource.
Overview
Name | vw_long_term_retention_policies |
Type | View |
Id | azure.sql.vw_long_term_retention_policies |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
JSON_EXTRACT(properties, '$.makeBackupsImmutable') as "make_backups_immutable",
JSON_EXTRACT(properties, '$.backupStorageAccessTier') as "backup_storage_access_tier",
JSON_EXTRACT(properties, '$.weeklyRetention') as "weekly_retention",
JSON_EXTRACT(properties, '$.monthlyRetention') as "monthly_retention",
JSON_EXTRACT(properties, '$.yearlyRetention') as "yearly_retention",
JSON_EXTRACT(properties, '$.weekOfYear') as "week_of_year",
subscriptionId,
resourceGroupName,
serverName,
databaseName,
policyName
FROM azure.sql.long_term_retention_policies
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND serverName = 'replace-me' AND databaseName = 'replace-me';
SELECT
json_extract_path_text(properties, '$.makeBackupsImmutable') as "make_backups_immutable",
json_extract_path_text(properties, '$.backupStorageAccessTier') as "backup_storage_access_tier",
json_extract_path_text(properties, '$.weeklyRetention') as "weekly_retention",
json_extract_path_text(properties, '$.monthlyRetention') as "monthly_retention",
json_extract_path_text(properties, '$.yearlyRetention') as "yearly_retention",
json_extract_path_text(properties, '$.weekOfYear') as "week_of_year",
subscriptionId,
resourceGroupName,
serverName,
databaseName,
policyName
FROM azure.sql.long_term_retention_policies
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND serverName = 'replace-me' AND databaseName = 'replace-me';