Replication Links - Get
Gets a database replication link.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}?api-version=2014-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
database
|
path | True |
string |
The name of the database to get the link for. |
link
|
path | True |
string |
The replication link ID to be retrieved. |
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
server
|
path | True |
string |
The name of the server. |
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
api-version
|
query | True |
string |
The API version to use for the request. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
Examples
Get a replication link
Sample request
Sample response
{
"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
}
}
Definitions
Name | Description |
---|---|
Replication |
Represents a database replication link. |
Replication |
The role of the database in the replication link. |
Replication |
The replication state for the replication link. |
ReplicationLink
Represents a database replication link.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
location |
string |
Location of the server that contains this firewall rule. |
name |
string |
Resource name. |
properties.isTerminationAllowed |
boolean |
Legacy value indicating whether termination is allowed. Currently always returns true. |
properties.partnerDatabase |
string |
The name of the partner database. |
properties.partnerLocation |
string |
The Azure Region of the partner database. |
properties.partnerRole |
The role of the partner database in the replication link. |
|
properties.partnerServer |
string |
The name of the server hosting the partner database. |
properties.percentComplete |
integer |
The percentage of seeding complete for the replication link. |
properties.replicationMode |
string |
Replication mode of this replication link. |
properties.replicationState |
The replication state for the replication link. |
|
properties.role |
The role of the database in the replication link. |
|
properties.startTime |
string |
The start time for the replication link. |
type |
string |
Type of resource this is. |
ReplicationRole
The role of the database in the replication link.
Name | Type | Description |
---|---|---|
Copy |
string |
|
NonReadableSecondary |
string |
|
Primary |
string |
|
Secondary |
string |
|
Source |
string |
ReplicationState
The replication state for the replication link.
Name | Type | Description |
---|---|---|
CATCH_UP |
string |
|
PENDING |
string |
|
SEEDING |
string |
|
SUSPENDED |
string |