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=2023-08-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
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/sourcesvr/databases/tetha-db/replicationLinks?api-version=2023-08-01
Voorbeeldrespons
{
"value": [
{
"properties": {
"partnerServer": "testsvr",
"partnerDatabase": "tetha-db",
"partnerDatabaseId": "/subscriptions/00000000-1111-2222-3333-555555555555/resourceGroups/Second-Default/providers/Microsoft.Sql/servers/testsvr/databases/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",
"partnerDatabaseId": "/subscriptions/00000000-1111-2222-3333-555555555555/resourceGroups/Second-Default/providers/Microsoft.Sql/servers/targetsvr/databases/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 |
---|---|
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
Replication |
Een replicatiekoppeling. |
Replication |
Een lijst met replicatiekoppelingen. |
Replication |
Koppelingstype (GEO, NAMED, STAND-BY). Updatebewerking biedt geen ondersteuning voor NAMED. |
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. |
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, NAMED, STAND-BY). Updatebewerking biedt geen ondersteuning voor NAMED.
Waarde | Description |
---|---|
GEO | |
NAMED | |
STANDBY |
ReplicationRole
Lokale replicatierol.
Waarde | Description |
---|---|
Copy | |
NonReadableSecondary | |
Primary | |
Secondary | |
Source |
ReplicationState
Replicatiestatus (IN BEHANDELING, SEEDING, CATCHUP, ONDERBROKEN).
Waarde | Description |
---|---|
CATCH_UP | |
PENDING | |
SEEDING | |
SUSPENDED |