Sync Groups - Create Or Update
Hiermee maakt of werkt u een synchronisatiegroep bij.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}?api-version=2023-08-01
URI-parameters
| Name | In | Vereist | Type | Description |
|---|---|---|---|---|
|
database
|
path | True |
string |
De naam van de database waarop de synchronisatiegroep wordt gehost. |
|
resource
|
path | True |
string |
De naam van de resourcegroep die de resource bevat. U kunt deze waarde verkrijgen via de Azure Resource Manager-API of de portal. |
|
server
|
path | True |
string |
De naam van de server. |
|
subscription
|
path | True |
string |
De abonnements-id waarmee een Azure-abonnement wordt geïdentificeerd. |
|
sync
|
path | True |
string |
De naam van de synchronisatiegroep. |
|
api-version
|
query | True |
string |
De API-versie die moet worden gebruikt voor de aanvraag. |
Aanvraagbody
| Name | Type | Description |
|---|---|---|
| properties.conflictLoggingRetentionInDays |
integer (int32) |
Bewaarperiode voor conflictlogboekregistratie. |
| properties.conflictResolutionPolicy |
Conflictoplossingsbeleid van de synchronisatiegroep. |
|
| properties.enableConflictLogging |
boolean |
Als conflictlogboekregistratie is ingeschakeld. |
| properties.hubDatabasePassword |
string |
Wachtwoord voor de databasereferentie van de synchronisatiegroephub. |
| properties.hubDatabaseUserName |
string |
Gebruikersnaam voor de databasereferentie van de synchronisatiegroephub. |
| properties.interval |
integer (int32) |
Synchronisatie-interval van de synchronisatiegroep. |
| properties.schema |
Synchronisatieschema van de synchronisatiegroep. |
|
| properties.syncDatabaseId |
string |
ARM-resource-id van de synchronisatiedatabase in de synchronisatiegroep. |
| properties.usePrivateLinkConnection |
boolean |
Als u een Private Link-verbinding gebruikt, is ingeschakeld. |
| sku |
De naam en capaciteit van de SKU. |
Antwoorden
| Name | Type | Description |
|---|---|---|
| 200 OK |
De synchronisatiegroep is bijgewerkt. |
|
| 201 Created |
De synchronisatiegroep is gemaakt. |
|
| 202 Accepted |
Het maken of bijwerken van de synchronisatiegroep wordt uitgevoerd. Kopteksten Location: string |
|
| Other Status Codes |
Foutreacties: ***
|
Voorbeelden
| Create a sync group |
| Update a sync group |
Create a sync group
Voorbeeldaanvraag
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187?api-version=2023-08-01
{
"properties": {
"interval": -1,
"conflictResolutionPolicy": "HubWin",
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
"hubDatabaseUserName": "hubUser",
"usePrivateLinkConnection": true
}
}
Voorbeeldrespons
{
"properties": {
"interval": -1,
"lastSyncTime": "0001-01-01T08:00:00Z",
"conflictResolutionPolicy": "HubWin",
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
"hubDatabaseUserName": "hubUser",
"syncState": "NotReady",
"usePrivateLinkConnection": true,
"privateEndpointName": "PE_67FDBBD6-B2D8-4014-9CC6-C68ABBCFD481_syncgroupcrud-8475"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
"name": "syncgroupcrud-3187",
"type": "Microsoft.Sql/servers/databases/syncGroups"
}
{
"properties": {
"interval": -1,
"lastSyncTime": "0001-01-01T08:00:00Z",
"conflictResolutionPolicy": "HubWin",
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
"hubDatabaseUserName": "hubUser",
"syncState": "NotReady",
"usePrivateLinkConnection": true,
"privateEndpointName": "PE_67FDBBD6-B2D8-4014-9CC6-C68ABBCFD481_syncgroupcrud-8475"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
"name": "syncgroupcrud-3187",
"type": "Microsoft.Sql/servers/databases/syncGroups"
}
Update a sync group
Voorbeeldaanvraag
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187?api-version=2023-08-01
{
"properties": {
"interval": -1,
"conflictResolutionPolicy": "HubWin",
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
"hubDatabaseUserName": "hubUser",
"usePrivateLinkConnection": true
}
}
Voorbeeldrespons
{
"properties": {
"interval": -1,
"lastSyncTime": "0001-01-01T08:00:00Z",
"conflictResolutionPolicy": "HubWin",
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
"hubDatabaseUserName": "hubUser",
"syncState": "NotReady",
"usePrivateLinkConnection": true,
"privateEndpointName": "PE_67FDBBD6-B2D8-4014-9CC6-C68ABBCFD481_syncgroupcrud-3187"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
"name": "syncgroupcrud-3187",
"type": "Microsoft.Sql/servers/databases/syncGroups"
}
{
"properties": {
"interval": -1,
"lastSyncTime": "0001-01-01T08:00:00Z",
"conflictResolutionPolicy": "HubWin",
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
"hubDatabaseUserName": "hubUser",
"syncState": "NotReady",
"usePrivateLinkConnection": true,
"privateEndpointName": "PE_67FDBBD6-B2D8-4014-9CC6-C68ABBCFD481_syncgroupcrud-3187"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
"name": "syncgroupcrud-3187",
"type": "Microsoft.Sql/servers/databases/syncGroups"
}
Definities
| Name | Description |
|---|---|
|
Error |
Aanvullende informatie over de resourcebeheerfout. |
|
Error |
De foutdetails. |
|
Error |
Foutreactie |
| Sku |
Een ARM-resource-SKU. |
|
Sync |
Conflictoplossingsbeleid van de synchronisatiegroep. |
|
Sync |
Een Azure SQL Database-synchronisatiegroep. |
|
Sync |
Eigenschappen van synchronisatiegroepschema. |
|
Sync |
Eigenschappen van tabel in synchronisatiegroepschema. |
|
Sync |
Eigenschappen van kolom in de synchronisatiegroepstabel. |
|
Sync |
Synchronisatiestatus van de synchronisatiegroep. |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
| Name | Type | Description |
|---|---|---|
| info |
object |
De aanvullende informatie. |
| type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
De fout bevat aanvullende informatie. |
|
| code |
string |
De foutcode. |
| details |
De foutdetails. |
|
| message |
string |
Het foutbericht. |
| target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
| Name | Type | Description |
|---|---|---|
| error |
Het foutobject. |
Sku
Een ARM-resource-SKU.
| Name | Type | Description |
|---|---|---|
| capacity |
integer (int32) |
Capaciteit van de specifieke SKU. |
| family |
string |
Als de service verschillende generaties hardware heeft, voor dezelfde SKU, kan die hier worden vastgelegd. |
| name |
string |
De naam van de SKU, meestal een letter + cijfercode, bijvoorbeeld P3. |
| size |
string |
Grootte van de specifieke SKU |
| tier |
string |
De laag of editie van de specifieke SKU, bijvoorbeeld Basic, Premium. |
SyncConflictResolutionPolicy
Conflictoplossingsbeleid van de synchronisatiegroep.
| Waarde | Description |
|---|---|
| HubWin | |
| MemberWin |
SyncGroup
Een Azure SQL Database-synchronisatiegroep.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource-id. |
| name |
string |
Resourcenaam. |
| properties.conflictLoggingRetentionInDays |
integer (int32) |
Bewaarperiode voor conflictlogboekregistratie. |
| properties.conflictResolutionPolicy |
Conflictoplossingsbeleid van de synchronisatiegroep. |
|
| properties.enableConflictLogging |
boolean |
Als conflictlogboekregistratie is ingeschakeld. |
| properties.hubDatabasePassword |
string |
Wachtwoord voor de databasereferentie van de synchronisatiegroephub. |
| properties.hubDatabaseUserName |
string |
Gebruikersnaam voor de databasereferentie van de synchronisatiegroephub. |
| properties.interval |
integer (int32) |
Synchronisatie-interval van de synchronisatiegroep. |
| properties.lastSyncTime |
string (date-time) |
Laatste synchronisatietijd van de synchronisatiegroep. |
| properties.privateEndpointName |
string |
De naam van het privé-eindpunt van de synchronisatiegroep als private link-verbinding is ingeschakeld. |
| properties.schema |
Synchronisatieschema van de synchronisatiegroep. |
|
| properties.syncDatabaseId |
string |
ARM-resource-id van de synchronisatiedatabase in de synchronisatiegroep. |
| properties.syncState |
Synchronisatiestatus van de synchronisatiegroep. |
|
| properties.usePrivateLinkConnection |
boolean |
Als u een Private Link-verbinding gebruikt, is ingeschakeld. |
| sku |
De naam en capaciteit van de SKU. |
|
| type |
string |
Resourcetype. |
SyncGroupSchema
Eigenschappen van synchronisatiegroepschema.
| Name | Type | Description |
|---|---|---|
| masterSyncMemberName |
string |
Naam van hoofdsynchronisatielid waaruit het schema afkomstig is. |
| tables |
Lijst met tabellen in synchronisatiegroepschema. |
SyncGroupSchemaTable
Eigenschappen van tabel in synchronisatiegroepschema.
| Name | Type | Description |
|---|---|---|
| columns |
Lijst met kolommen in synchronisatiegroepschema. |
|
| quotedName |
string |
De naam van de schematabel van de synchronisatiegroep. |
SyncGroupSchemaTableColumn
Eigenschappen van kolom in de synchronisatiegroepstabel.
| Name | Type | Description |
|---|---|---|
| dataSize |
string |
Gegevensgrootte van de kolom. |
| dataType |
string |
Gegevenstype van de kolom. |
| quotedName |
string |
De naam van de kolom met de synchronisatiegroeptabel. |
SyncGroupState
Synchronisatiestatus van de synchronisatiegroep.
| Waarde | Description |
|---|---|
| NotReady | |
| Error | |
| Warning | |
| Progressing | |
| Good |