Replication Links - List By Database
Hiermee haalt u een lijst met replicatiekoppelingen op in de database.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks?api-version=2021-11-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
database
|
path | True |
string |
De naam van de database. |
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. |
api-version
|
query | True |
string |
De API-versie die moet worden gebruikt voor de aanvraag. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De lijst met replicatiekoppelingen is opgehaald. |
|
Other Status Codes |
Foutreacties: ***
|
Voorbeelden
List replication links on server on database.
Voorbeeldaanvraag
Voorbeeldrespons
{
"value": [
{
"properties": {
"partnerServer": "testsvr",
"partnerDatabase": "tetha-db",
"partnerLocation": "Japan East",
"role": "Primary",
"partnerRole": "Secondary",
"replicationMode": "ASYNC",
"startTime": "2018-06-21T08:11:46.907Z",
"percentComplete": 100,
"replicationState": "CATCH_UP",
"isTerminationAllowed": true,
"linkType": "GEO"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/sourcesvr/databases/tetha-db/replicationLinks/fb92de60-eb87-4a58-b250-3362d0cfdf26",
"name": "fb92de60-eb87-4a58-b250-3362d0cfdf26"
},
{
"properties": {
"partnerServer": "targetsvr",
"partnerDatabase": "tetha-db",
"partnerLocation": "Japan East",
"role": "Primary",
"partnerRole": "Secondary",
"replicationMode": "ASYNC",
"startTime": "2018-06-21T08:11:34.423Z",
"percentComplete": 100,
"replicationState": "CATCH_UP",
"isTerminationAllowed": true,
"linkType": "GEO"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/sourcesvr/databases/tetha-db/replicationLinks/6ad1eefc-18a2-4fcb-94f3-4b654ba788d7",
"name": "6ad1eefc-18a2-4fcb-94f3-4b654ba788d7"
}
]
}
Definities
Name | Description |
---|---|
Replication |
Een replicatiekoppeling. |
Replication |
Een lijst met replicatiekoppelingen. |
Replication |
Koppelingstype (GEO, BENOEMD, STAND-BY). |
Replication |
Lokale replicatierol. |
Replication |
Replicatiestatus (IN BEHANDELING, SEEDING, CATCHUP, ONDERBROKEN). |
ReplicationLink
Een replicatiekoppeling.
Name | Type | Description |
---|---|---|
id |
string |
Resource-id. |
name |
string |
Resourcenaam. |
properties.isTerminationAllowed |
boolean |
Of de gebruiker momenteel de koppeling mag beëindigen. |
properties.linkType |
Koppelingstype (GEO, BENOEMD, STAND-BY). |
|
properties.partnerDatabase |
string |
Resourcepartnerdatabase. |
properties.partnerLocation |
string |
Locatie van resourcepartner. |
properties.partnerRole |
Partnerreplicatierol. |
|
properties.partnerServer |
string |
Bronpartnerserver. |
properties.percentComplete |
integer |
Voltooiingspercentage seeding voor de koppeling. |
properties.replicationMode |
string |
Replicatiemodus. |
properties.replicationState |
Replicatiestatus (IN BEHANDELING, SEEDING, CATCHUP, ONDERBROKEN). |
|
properties.role |
Lokale replicatierol. |
|
properties.startTime |
string |
Tijdstip waarop de koppeling is gemaakt. |
type |
string |
Resourcetype. |
ReplicationLinkListResult
Een lijst met replicatiekoppelingen.
Name | Type | Description |
---|---|---|
nextLink |
string |
Koppeling om de volgende pagina met resultaten op te halen. |
value |
Matrix met resultaten. |
ReplicationLinkType
Koppelingstype (GEO, BENOEMD, STAND-BY).
Name | Type | Description |
---|---|---|
GEO |
string |
|
NAMED |
string |
|
STANDBY |
string |
ReplicationRole
Lokale replicatierol.
Name | Type | Description |
---|---|---|
Copy |
string |
|
NonReadableSecondary |
string |
|
Primary |
string |
|
Secondary |
string |
|
Source |
string |
ReplicationState
Replicatiestatus (IN BEHANDELING, SEEDING, CATCHUP, ONDERBROKEN).
Name | Type | Description |
---|---|---|
CATCH_UP |
string |
|
PENDING |
string |
|
SEEDING |
string |
|
SUSPENDED |
string |