vw_targets
Creates, updates, deletes, gets or lists a vw_targets
resource.
Overview
Name | vw_targets |
Type | View |
Id | azure.db_watcher.vw_targets |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
JSON_EXTRACT(properties, '$.targetType') as "target_type",
JSON_EXTRACT(properties, '$.targetAuthenticationType') as "target_authentication_type",
JSON_EXTRACT(properties, '$.targetVault') as "target_vault",
JSON_EXTRACT(properties, '$.connectionServerName') as "connection_server_name",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
subscriptionId,
resourceGroupName,
watcherName,
targetName
FROM azure.db_watcher.targets
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND watcherName = 'replace-me';
SELECT
json_extract_path_text(properties, '$.targetType') as "target_type",
json_extract_path_text(properties, '$.targetAuthenticationType') as "target_authentication_type",
json_extract_path_text(properties, '$.targetVault') as "target_vault",
json_extract_path_text(properties, '$.connectionServerName') as "connection_server_name",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
subscriptionId,
resourceGroupName,
watcherName,
targetName
FROM azure.db_watcher.targets
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND watcherName = 'replace-me';