Replication Links - Get
获取数据库复制链接。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}?api-version=2014-04-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
database
|
path | True |
string |
要获取其链接的数据库的名称。 |
|
link
|
path | True |
string |
要检索的复制链接 ID。 |
|
resource
|
path | True |
string |
包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
|
server
|
path | True |
string |
服务器的名称。 |
|
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
|
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
还行 |
示例
Get a replication link
示例请求
示例响应
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-8931/providers/Microsoft.Sql/servers/sqlcrudtest-2137/databases/testdb/replicationLinks/f0550bf5-07ce-4270-8e4b-71737975973a",
"name": "f0550bf5-07ce-4270-8e4b-71737975973a",
"type": "Microsoft.Sql/servers/databases/replicationLinks",
"location": "Japan East",
"properties": {
"partnerServer": "sqlcrudtest-1932",
"partnerDatabase": "testdb",
"partnerLocation": "Japan East",
"role": "Secondary",
"partnerRole": "Primary",
"replicationMode": "ASYNC",
"startTime": "2017-02-10T01:37:49.153Z",
"percentComplete": 100,
"replicationState": "CATCH_UP",
"isTerminationAllowed": true
}
}
定义
| 名称 | 说明 |
|---|---|
|
Replication |
表示数据库复制链接。 |
|
Replication |
复制链接中数据库的角色。 |
|
Replication |
复制链接的复制状态。 |
ReplicationLink
表示数据库复制链接。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| location |
string |
包含此防火墙规则的服务器的位置。 |
| name |
string |
资源名称。 |
| properties.isTerminationAllowed |
boolean |
指示是否允许终止的旧值。 当前始终返回 true。 |
| properties.partnerDatabase |
string |
伙伴数据库的名称。 |
| properties.partnerLocation |
string |
合作伙伴数据库的 Azure 区域。 |
| properties.partnerRole |
复制链接中伙伴数据库的角色。 |
|
| properties.partnerServer |
string |
托管伙伴数据库的服务器的名称。 |
| properties.percentComplete |
integer (int32) |
复制链接的种子设定完成百分比。 |
| properties.replicationMode |
string |
此复制链接的复制模式。 |
| properties.replicationState |
复制链接的复制状态。 |
|
| properties.role |
复制链接中数据库的角色。 |
|
| properties.startTime |
string (date-time) |
复制链接的开始时间。 |
| type |
string |
这是的资源类型。 |
ReplicationRole
复制链接中数据库的角色。
| 值 | 说明 |
|---|---|
| Primary | |
| Secondary | |
| NonReadableSecondary | |
| Source | |
| Copy |
ReplicationState
复制链接的复制状态。
| 值 | 说明 |
|---|---|
| PENDING | |
| SEEDING | |
| CATCH_UP | |
| SUSPENDED |