Skip to main content

sync_groups_hub_schemas

Creates, updates, deletes, gets or lists a sync_groups_hub_schemas resource.

Overview

Namesync_groups_hub_schemas
TypeResource
Idazure.sql.sync_groups_hub_schemas

Fields

The following fields are returned by SELECT queries:

Successfully get a sync group hub database schema.

NameDatatypeDescription
lastUpdateTimestring (date-time)Last update time of the database schema.
tablesarrayList of tables in the database full schema.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, serverName, databaseName, syncGroupName, subscriptionIdGets a collection of hub database schemas.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
databaseNamestringThe name of the database on which the sync group is hosted.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverNamestringThe name of the server.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.
syncGroupNamestringThe name of the sync group.

SELECT examples

Gets a collection of hub database schemas.

SELECT
lastUpdateTime,
tables
FROM azure.sql.sync_groups_hub_schemas
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND databaseName = '{{ databaseName }}' -- required
AND syncGroupName = '{{ syncGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;