vw_sync_members
Creates, updates, deletes, gets or lists a vw_sync_members
resource.
Overview
Name | vw_sync_members |
Type | View |
Id | azure.sql.vw_sync_members |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
JSON_EXTRACT(properties, '$.databaseType') as "database_type",
JSON_EXTRACT(properties, '$.syncAgentId') as "sync_agent_id",
JSON_EXTRACT(properties, '$.sqlServerDatabaseId') as "sql_server_database_id",
JSON_EXTRACT(properties, '$.syncMemberAzureDatabaseResourceId') as "sync_member_azure_database_resource_id",
JSON_EXTRACT(properties, '$.usePrivateLinkConnection') as "use_private_link_connection",
JSON_EXTRACT(properties, '$.privateEndpointName') as "private_endpoint_name",
JSON_EXTRACT(properties, '$.serverName') as "server_name",
JSON_EXTRACT(properties, '$.databaseName') as "database_name",
JSON_EXTRACT(properties, '$.userName') as "user_name",
JSON_EXTRACT(properties, '$.password') as "password",
JSON_EXTRACT(properties, '$.syncDirection') as "sync_direction",
JSON_EXTRACT(properties, '$.syncState') as "sync_state",
subscriptionId,
resourceGroupName,
serverName,
databaseName,
syncGroupName,
syncMemberName
FROM azure.sql.sync_members
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND serverName = 'replace-me' AND databaseName = 'replace-me' AND syncGroupName = 'replace-me';
SELECT
json_extract_path_text(properties, '$.databaseType') as "database_type",
json_extract_path_text(properties, '$.syncAgentId') as "sync_agent_id",
json_extract_path_text(properties, '$.sqlServerDatabaseId') as "sql_server_database_id",
json_extract_path_text(properties, '$.syncMemberAzureDatabaseResourceId') as "sync_member_azure_database_resource_id",
json_extract_path_text(properties, '$.usePrivateLinkConnection') as "use_private_link_connection",
json_extract_path_text(properties, '$.privateEndpointName') as "private_endpoint_name",
json_extract_path_text(properties, '$.serverName') as "server_name",
json_extract_path_text(properties, '$.databaseName') as "database_name",
json_extract_path_text(properties, '$.userName') as "user_name",
json_extract_path_text(properties, '$.password') as "password",
json_extract_path_text(properties, '$.syncDirection') as "sync_direction",
json_extract_path_text(properties, '$.syncState') as "sync_state",
subscriptionId,
resourceGroupName,
serverName,
databaseName,
syncGroupName,
syncMemberName
FROM azure.sql.sync_members
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND serverName = 'replace-me' AND databaseName = 'replace-me' AND syncGroupName = 'replace-me';