Replication Links - Update
Hiermee wordt het type replicatiekoppeling bijgewerkt.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}?api-version=2023-08-01
URI-parameters
| Name | In | Vereist | Type | Description |
|---|---|---|---|---|
|
database
|
path | True |
string |
De naam van de database. |
|
link
|
path | True |
string |
|
|
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. |
Aanvraagbody
| Name | Type | Description |
|---|---|---|
| properties.linkType |
Koppelingstype (GEO, NAMED, STAND-BY). Updatebewerking biedt geen ondersteuning voor NAMED. |
Antwoorden
| Name | Type | Description |
|---|---|---|
| 200 OK |
De replicatiekoppeling is bijgewerkt. |
|
| 202 Accepted |
De updatebewerking wordt uitgevoerd. Kopteksten Location: string |
|
| Other Status Codes |
Foutreacties: ***
|
Voorbeelden
Update Replication Link
Voorbeeldaanvraag
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
{
"properties": {
"linkType": "STANDBY"
}
}
Voorbeeldrespons
{
"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
Definities
| Name | Description |
|---|---|
|
Error |
Aanvullende informatie over de resourcebeheerfout. |
|
Error |
De foutdetails. |
|
Error |
Foutreactie |
|
Replication |
Een replicatiekoppeling. |
|
Replication |
Koppelingstype (GEO, NAMED, STAND-BY). Updatebewerking biedt geen ondersteuning voor NAMED. |
|
Replication |
Een updateaanvraag voor een replicatiekoppeling. |
|
Replication |
Lokale replicatierol. |
|
Replication |
Replicatiestatus (IN BEHANDELING, SEEDING, CATCHUP, ONDERBROKEN). |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
| Name | Type | Description |
|---|---|---|
| info |
object |
De aanvullende informatie. |
| type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
De fout bevat aanvullende informatie. |
|
| code |
string |
De foutcode. |
| details |
De foutdetails. |
|
| message |
string |
Het foutbericht. |
| target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
| Name | Type | Description |
|---|---|---|
| error |
Het foutobject. |
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, NAMED, STAND-BY). Updatebewerking biedt geen ondersteuning voor NAMED. |
|
| properties.partnerDatabase |
string |
Resourcepartnerdatabase. |
| properties.partnerDatabaseId |
string |
Database-id van resourcepartner. |
| properties.partnerLocation |
string |
Locatie van resourcepartner. |
| properties.partnerRole |
Partnerreplicatierol. |
|
| properties.partnerServer |
string |
Bronpartnerserver. |
| properties.percentComplete |
integer (int32) |
Voltooiingspercentage seeding voor de koppeling. |
| properties.replicationMode |
string |
Replicatiemodus. |
| properties.replicationState |
Replicatiestatus (IN BEHANDELING, SEEDING, CATCHUP, ONDERBROKEN). |
|
| properties.role |
Lokale replicatierol. |
|
| properties.startTime |
string (date-time) |
Tijdstip waarop de koppeling is gemaakt. |
| type |
string |
Resourcetype. |
ReplicationLinkType
Koppelingstype (GEO, NAMED, STAND-BY). Updatebewerking biedt geen ondersteuning voor NAMED.
| Waarde | Description |
|---|---|
| GEO | |
| NAMED | |
| STANDBY |
ReplicationLinkUpdate
Een updateaanvraag voor een replicatiekoppeling.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource-id. |
| name |
string |
Resourcenaam. |
| properties.linkType |
Koppelingstype (GEO, NAMED, STAND-BY). Updatebewerking biedt geen ondersteuning voor NAMED. |
|
| type |
string |
Resourcetype. |
ReplicationRole
Lokale replicatierol.
| Waarde | Description |
|---|---|
| Primary | |
| Secondary | |
| NonReadableSecondary | |
| Source | |
| Copy |
ReplicationState
Replicatiestatus (IN BEHANDELING, SEEDING, CATCHUP, ONDERBROKEN).
| Waarde | Description |
|---|---|
| PENDING | |
| SEEDING | |
| CATCH_UP | |
| SUSPENDED |