Replication Links - Get
Ruft eine Replikationsverbindung ab.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}?api-version=2023-08-01
URI-Parameter
| Name | In | Erforderlich | Typ | Beschreibung |
|---|---|---|---|---|
|
database
|
path | True |
string |
Der Name der Datenbank. |
|
link
|
path | True |
string |
Der Name der Replikationsverbindung. |
|
resource
|
path | True |
string |
Der Name der Ressourcengruppe, die die Ressource enthält. Sie können diesen Wert aus der Azure Resource Manager-API oder dem Portal abrufen. |
|
server
|
path | True |
string |
Der Name des Servers. |
|
subscription
|
path | True |
string |
Die Abonnement-ID, die ein Azure-Abonnement identifiziert. |
|
api-version
|
query | True |
string |
Die API-Version, die für die Anforderung verwendet werden soll. |
Antworten
| Name | Typ | Beschreibung |
|---|---|---|
| 200 OK |
Die angegebene Replikationsverbindung wurde erfolgreich abgerufen. |
|
| Other Status Codes |
Fehlerantworten: ***
|
Beispiele
Gets the replication link.
Beispielanforderung
Beispiel für eine Antwort
{
"properties": {
"partnerServer": "testsvr",
"partnerDatabase": "gamma-db",
"partnerDatabaseId": "/subscriptions/00000000-1111-2222-3333-555555555555/resourceGroups/Second-Default/providers/Microsoft.Sql/servers/testsvr/databases/gamma-db",
"partnerLocation": "Japan East",
"role": "Primary",
"partnerRole": "Secondary",
"replicationMode": "ASYNC",
"startTime": "2018-06-21T08:12:43.783Z",
"percentComplete": 100,
"replicationState": "CATCH_UP",
"isTerminationAllowed": true,
"linkType": "GEO"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/sourcesvr/databases/gamma-db/replicationLinks/4891ca10-ebd0-47d7-9182-c722651780fb",
"name": "4891ca10-ebd0-47d7-9182-c722651780fb"
}
Definitionen
| Name | Beschreibung |
|---|---|
|
Error |
Der Ressourcenverwaltungsfehler zusätzliche Informationen. |
|
Error |
Das Fehlerdetails. |
|
Error |
Fehlerantwort |
|
Replication |
Eine Replikationsverbindung. |
|
Replication |
Linktyp (GEO, NAMED, STANDBY). Der Aktualisierungsvorgang unterstützt NAMED nicht. |
|
Replication |
Lokale Replikationsrolle. |
|
Replication |
Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, SUSPENDED). |
ErrorAdditionalInfo
Der Ressourcenverwaltungsfehler zusätzliche Informationen.
| Name | Typ | Beschreibung |
|---|---|---|
| info |
object |
Die zusätzlichen Informationen. |
| type |
string |
Der zusätzliche Informationstyp. |
ErrorDetail
Das Fehlerdetails.
| Name | Typ | Beschreibung |
|---|---|---|
| additionalInfo |
Die zusätzlichen Informationen des Fehlers. |
|
| code |
string |
Der Fehlercode. |
| details |
Die Fehlerdetails. |
|
| message |
string |
Die Fehlermeldung. |
| target |
string |
Das Fehlerziel. |
ErrorResponse
Fehlerantwort
| Name | Typ | Beschreibung |
|---|---|---|
| error |
Das Fehlerobjekt. |
ReplicationLink
Eine Replikationsverbindung.
| Name | Typ | Beschreibung |
|---|---|---|
| id |
string |
Ressourcen-ID. |
| name |
string |
Ressourcenname. |
| properties.isTerminationAllowed |
boolean |
Gibt an, ob der Benutzer den Link zurzeit beenden darf. |
| properties.linkType |
Linktyp (GEO, NAMED, STANDBY). Der Aktualisierungsvorgang unterstützt NAMED nicht. |
|
| properties.partnerDatabase |
string |
Ressourcenpartnerdatenbank. |
| properties.partnerDatabaseId |
string |
Ressourcenpartnerdatenbank-ID. |
| properties.partnerLocation |
string |
Standort des Ressourcenpartners. |
| properties.partnerRole |
Partnerreplikationsrolle. |
|
| properties.partnerServer |
string |
Ressourcenpartnerserver. |
| properties.percentComplete |
integer (int32) |
Prozentsatz der Seeding-Fertigstellung für den Link. |
| properties.replicationMode |
string |
Replikationsmodus. |
| properties.replicationState |
Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, SUSPENDED). |
|
| properties.role |
Lokale Replikationsrolle. |
|
| properties.startTime |
string (date-time) |
Zeitpunkt, zu dem der Link erstellt wurde. |
| type |
string |
Ressourcentyp. |
ReplicationLinkType
Linktyp (GEO, NAMED, STANDBY). Der Aktualisierungsvorgang unterstützt NAMED nicht.
| Wert | Beschreibung |
|---|---|
| GEO | |
| NAMED | |
| STANDBY |
ReplicationRole
Lokale Replikationsrolle.
| Wert | Beschreibung |
|---|---|
| Primary | |
| Secondary | |
| NonReadableSecondary | |
| Source | |
| Copy |
ReplicationState
Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, SUSPENDED).
| Wert | Beschreibung |
|---|---|
| PENDING | |
| SEEDING | |
| CATCH_UP | |
| SUSPENDED |