vw_restorable_database_accounts
Creates, updates, deletes, gets or lists a vw_restorable_database_accounts
resource.
Overview
Name | vw_restorable_database_accounts |
Type | View |
Id | azure.cosmos_db.vw_restorable_database_accounts |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
location as location,
type as type,
JSON_EXTRACT(properties, '$.accountName') as "account_name",
JSON_EXTRACT(properties, '$.creationTime') as "creation_time",
JSON_EXTRACT(properties, '$.oldestRestorableTime') as "oldest_restorable_time",
JSON_EXTRACT(properties, '$.deletionTime') as "deletion_time",
JSON_EXTRACT(properties, '$.apiType') as "api_type",
JSON_EXTRACT(properties, '$.restorableLocations') as "restorable_locations",
subscriptionId,
location,
instanceId
FROM azure.cosmos_db.restorable_database_accounts
WHERE subscriptionId = 'replace-me';
SELECT
id as id,
name as name,
location as location,
type as type,
json_extract_path_text(properties, '$.accountName') as "account_name",
json_extract_path_text(properties, '$.creationTime') as "creation_time",
json_extract_path_text(properties, '$.oldestRestorableTime') as "oldest_restorable_time",
json_extract_path_text(properties, '$.deletionTime') as "deletion_time",
json_extract_path_text(properties, '$.apiType') as "api_type",
json_extract_path_text(properties, '$.restorableLocations') as "restorable_locations",
subscriptionId,
location,
instanceId
FROM azure.cosmos_db.restorable_database_accounts
WHERE subscriptionId = 'replace-me';