vw_long_term_retention_backups
Creates, updates, deletes, gets or lists a vw_long_term_retention_backups
resource.
Overview
Name | vw_long_term_retention_backups |
Type | View |
Id | azure.sql.vw_long_term_retention_backups |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
JSON_EXTRACT(properties, '$.serverName') as "server_name",
JSON_EXTRACT(properties, '$.serverCreateTime') as "server_create_time",
JSON_EXTRACT(properties, '$.databaseName') as "database_name",
JSON_EXTRACT(properties, '$.databaseDeletionTime') as "database_deletion_time",
JSON_EXTRACT(properties, '$.backupTime') as "backup_time",
JSON_EXTRACT(properties, '$.backupExpirationTime') as "backup_expiration_time",
JSON_EXTRACT(properties, '$.backupStorageRedundancy') as "backup_storage_redundancy",
JSON_EXTRACT(properties, '$.requestedBackupStorageRedundancy') as "requested_backup_storage_redundancy",
JSON_EXTRACT(properties, '$.isBackupImmutable') as "is_backup_immutable",
JSON_EXTRACT(properties, '$.backupStorageAccessTier') as "backup_storage_access_tier",
subscriptionId,
resourceGroupName,
locationName,
longTermRetentionServerName,
longTermRetentionDatabaseName,
backupName
FROM azure.sql.long_term_retention_backups
WHERE subscriptionId = 'replace-me' AND locationName = 'replace-me';
SELECT
json_extract_path_text(properties, '$.serverName') as "server_name",
json_extract_path_text(properties, '$.serverCreateTime') as "server_create_time",
json_extract_path_text(properties, '$.databaseName') as "database_name",
json_extract_path_text(properties, '$.databaseDeletionTime') as "database_deletion_time",
json_extract_path_text(properties, '$.backupTime') as "backup_time",
json_extract_path_text(properties, '$.backupExpirationTime') as "backup_expiration_time",
json_extract_path_text(properties, '$.backupStorageRedundancy') as "backup_storage_redundancy",
json_extract_path_text(properties, '$.requestedBackupStorageRedundancy') as "requested_backup_storage_redundancy",
json_extract_path_text(properties, '$.isBackupImmutable') as "is_backup_immutable",
json_extract_path_text(properties, '$.backupStorageAccessTier') as "backup_storage_access_tier",
subscriptionId,
resourceGroupName,
locationName,
longTermRetentionServerName,
longTermRetentionDatabaseName,
backupName
FROM azure.sql.long_term_retention_backups
WHERE subscriptionId = 'replace-me' AND locationName = 'replace-me';