Replication Links - Update
Updates den Replikationslinktyp.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}?api-version=2023-08-01-preview
URI-Parameter
Name | In | Erforderlich | Typ | Beschreibung |
---|---|---|---|---|
database
|
path | True |
string |
Der Name der Datenbank. |
link
|
path | True |
string |
|
resource
|
path | True |
string |
Der Name der Ressourcengruppe, die die Ressource enthält. Dieser Wert kann über die Azure-Ressourcen-Manager-API oder das Portal abgerufen werden. |
server
|
path | True |
string |
Name des Servers |
subscription
|
path | True |
string |
Abonnement-ID für ein Azure-Abonnement. |
api-version
|
query | True |
string |
API-Version, die für die Anforderung verwendet werden soll. |
Anforderungstext
Name | Typ | Beschreibung |
---|---|---|
properties.linkType |
Linktyp (GEO, NAMED, STANDBY). Der Updatevorgang unterstützt NAMED nicht. |
Antworten
Name | Typ | Beschreibung |
---|---|---|
200 OK |
Der Replikationslink wurde erfolgreich aktualisiert. |
|
202 Accepted |
Der Aktualisierungsvorgang wird ausgeführt. |
|
Other Status Codes |
Fehlerantworten: ***
|
Beispiele
Update Replication Link
Sample Request
PATCH https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/sourcesvr/databases/gamma-db/replicationLinks/00000000-1111-2222-3333-666666666666?api-version=2023-08-01-preview
{
"properties": {
"linkType": "STANDBY"
}
}
Sample Response
{
"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": "STANDBY"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/sourcesvr/databases/gamma-db/replicationLinks/4891ca10-ebd0-47d7-9182-c722651780fb",
"name": "00000000-1111-2222-3333-666666666666"
}
Location: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/japaneast/replicationLinksOperationResults/11111111-1111-1111-1111-111111111111
Definitionen
Name | Beschreibung |
---|---|
Error |
Zusätzliche Informationen zum Ressourcenverwaltungsfehler. |
Error |
Die Fehlerdetails. |
Error |
Fehlerantwort |
Replication |
Ein Replikationslink. |
Replication |
Linktyp (GEO, NAMED, STANDBY). Der Updatevorgang unterstützt NAMED nicht. |
Replication |
Eine Aktualisierungsanforderung für Replikationslinks. |
Replication |
Lokale Replikationsrolle. |
Replication |
Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, SUSPENDED). |
ErrorAdditionalInfo
Zusätzliche Informationen zum Ressourcenverwaltungsfehler.
Name | Typ | Beschreibung |
---|---|---|
info |
object |
Zusätzliche Informationen. |
type |
string |
Typ der zusätzlichen Informationen. |
ErrorDetail
Die Fehlerdetails.
Name | Typ | Beschreibung |
---|---|---|
additionalInfo |
Die zusätzlichen Fehlerinformationen. |
|
code |
string |
Der Fehlercode. |
details |
Die Fehlerdetails. |
|
message |
string |
Die Fehlermeldung. |
target |
string |
Das Fehlerziel. |
ErrorResponse
Fehlerantwort
Name | Typ | Beschreibung |
---|---|---|
error |
Das Fehlerobjekt. |
ReplicationLink
Ein Replikationslink.
Name | Typ | Beschreibung |
---|---|---|
id |
string |
Ressourcen-ID |
name |
string |
Name der Ressource. |
properties.isTerminationAllowed |
boolean |
Gibt an, ob der Benutzer derzeit berechtigt ist, den Link zu beenden. |
properties.linkType |
Linktyp (GEO, NAMED, STANDBY). Der Updatevorgang 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 |
Prozentsatz der Seeding-Vervollständigung für den Link. |
properties.replicationMode |
string |
Replikationsmodus. |
properties.replicationState |
Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, SUSPENDED). |
|
properties.role |
Lokale Replikationsrolle. |
|
properties.startTime |
string |
Zeitpunkt, zu dem der Link erstellt wurde. |
type |
string |
Der Ressourcentyp. |
ReplicationLinkType
Linktyp (GEO, NAMED, STANDBY). Der Updatevorgang unterstützt NAMED nicht.
Name | Typ | Beschreibung |
---|---|---|
GEO |
string |
|
NAMED |
string |
|
STANDBY |
string |
ReplicationLinkUpdate
Eine Aktualisierungsanforderung für Replikationslinks.
Name | Typ | Beschreibung |
---|---|---|
id |
string |
Ressourcen-ID |
name |
string |
Name der Ressource. |
properties.linkType |
Linktyp (GEO, NAMED, STANDBY). Der Updatevorgang unterstützt NAMED nicht. |
|
type |
string |
Der Ressourcentyp. |
ReplicationRole
Lokale Replikationsrolle.
Name | Typ | Beschreibung |
---|---|---|
Copy |
string |
|
NonReadableSecondary |
string |
|
Primary |
string |
|
Secondary |
string |
|
Source |
string |
ReplicationState
Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, SUSPENDED).
Name | Typ | Beschreibung |
---|---|---|
CATCH_UP |
string |
|
PENDING |
string |
|
SEEDING |
string |
|
SUSPENDED |
string |