vw_sync_agents
Creates, updates, deletes, gets or lists a vw_sync_agents
resource.
Overview
Name | vw_sync_agents |
Type | View |
Id | azure.sql.vw_sync_agents |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
JSON_EXTRACT(properties, '$.name') as "name",
JSON_EXTRACT(properties, '$.syncDatabaseId') as "sync_database_id",
JSON_EXTRACT(properties, '$.lastAliveTime') as "last_alive_time",
JSON_EXTRACT(properties, '$.state') as "state",
JSON_EXTRACT(properties, '$.isUpToDate') as "is_up_to_date",
JSON_EXTRACT(properties, '$.expiryTime') as "expiry_time",
JSON_EXTRACT(properties, '$.version') as "version",
subscriptionId,
resourceGroupName,
serverName,
syncAgentName
FROM azure.sql.sync_agents
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND serverName = 'replace-me';
SELECT
json_extract_path_text(properties, '$.name') as "name",
json_extract_path_text(properties, '$.syncDatabaseId') as "sync_database_id",
json_extract_path_text(properties, '$.lastAliveTime') as "last_alive_time",
json_extract_path_text(properties, '$.state') as "state",
json_extract_path_text(properties, '$.isUpToDate') as "is_up_to_date",
json_extract_path_text(properties, '$.expiryTime') as "expiry_time",
json_extract_path_text(properties, '$.version') as "version",
subscriptionId,
resourceGroupName,
serverName,
syncAgentName
FROM azure.sql.sync_agents
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND serverName = 'replace-me';