你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Sync Groups - Get
获取同步组。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}?api-version=2023-08-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
database
|
path | True |
string |
托管同步组的数据库的名称。 |
resource
|
path | True |
string |
包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
server
|
path | True |
string |
服务器的名称。 |
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
sync
|
path | True |
string |
同步组的名称。 |
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功检索指定的同步组。 |
|
Other Status Codes |
错误响应: ***
|
示例
Get a sync group
示例请求
GET 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,
"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"
}
定义
名称 | 说明 |
---|---|
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Sku |
ARM 资源 SKU。 |
Sync |
同步组的冲突解决策略。 |
Sync |
Azure SQL 数据库同步组。 |
Sync |
同步组架构的属性。 |
Sync |
同步组架构中表的属性。 |
Sync |
同步组表中列的属性。 |
Sync |
同步组的同步状态。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
Sku
ARM 资源 SKU。
名称 | 类型 | 说明 |
---|---|---|
capacity |
integer (int32) |
特定 SKU 的容量。 |
family |
string |
如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 |
name |
string |
SKU 的名称,通常为字母 + 数字代码,例如 P3。 |
size |
string |
特定 SKU 的大小 |
tier |
string |
特定 SKU 的层或版本,例如基本 SKU、高级版。 |
SyncConflictResolutionPolicy
同步组的冲突解决策略。
值 | 说明 |
---|---|
HubWin | |
MemberWin |
SyncGroup
Azure SQL 数据库同步组。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
资源名称。 |
properties.conflictLoggingRetentionInDays |
integer (int32) |
冲突日志记录保持期。 |
properties.conflictResolutionPolicy |
同步组的冲突解决策略。 |
|
properties.enableConflictLogging |
boolean |
如果启用了冲突日志记录。 |
properties.hubDatabasePassword |
string |
同步组中心数据库凭据的密码。 |
properties.hubDatabaseUserName |
string |
同步组中心数据库凭据的用户名。 |
properties.interval |
integer (int32) |
同步组的同步间隔。 |
properties.lastSyncTime |
string (date-time) |
同步组的上次同步时间。 |
properties.privateEndpointName |
string |
如果启用了专用链接连接,则同步组的专用终结点名称。 |
properties.schema |
同步组的同步架构。 |
|
properties.syncDatabaseId |
string |
同步组中同步数据库的 ARM 资源 ID。 |
properties.syncState |
同步组的同步状态。 |
|
properties.usePrivateLinkConnection |
boolean |
如果启用了专用链接连接。 |
sku |
SKU 的名称和容量。 |
|
type |
string |
资源类型。 |
SyncGroupSchema
同步组架构的属性。
名称 | 类型 | 说明 |
---|---|---|
masterSyncMemberName |
string |
架构所在的主同步成员的名称。 |
tables |
同步组架构中的表列表。 |
SyncGroupSchemaTable
同步组架构中表的属性。
名称 | 类型 | 说明 |
---|---|---|
columns |
同步组架构中的列列表。 |
|
quotedName |
string |
同步组架构表的带引号名称。 |
SyncGroupSchemaTableColumn
同步组表中列的属性。
名称 | 类型 | 说明 |
---|---|---|
dataSize |
string |
列的数据大小。 |
dataType |
string |
列的数据类型。 |
quotedName |
string |
同步组表列的带引号名称。 |
SyncGroupState
同步组的同步状态。
值 | 说明 |
---|---|
Error | |
Good | |
NotReady | |
Progressing | |
Warning |