Replication Links - Get

Hiermee haalt u een replicatiekoppeling op.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}?api-version=2021-11-01

URI-parameters

Name In Vereist Type Description
databaseName
path True

string

De naam van de database.

linkId
path True

string

De naam van de replicatiekoppeling.

resourceGroupName
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.

serverName
path True

string

De naam van de server.

subscriptionId
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

ReplicationLink

De opgegeven replicatiekoppeling is opgehaald.

Other Status Codes

Foutreacties: ***

  • 400 ReplicationLinksReplicationLinkNameIsInvalid: de naam van de replicatiekoppeling moet een geldige GUID zijn.

  • 400 GeoReplicationDatabaseNotSecondary: de bewerking verwacht dat de database een replicatiedoel is.

  • 400 LedgerNoDropLink - Geo-replicatie kan niet worden gestopt omdat de database Ledger Digest Uploads heeft ingeschakeld. Schakel Ledger Digest Uploads uit en voer de bewerking opnieuw uit.

  • 404 ResourceNotFound - De aangevraagde resource is niet gevonden.

  • 404 SubscriptionDoesNotHaveServer - De aangevraagde server is niet gevonden

  • 404 ServerNotInSubscriptionResourceGroup: de opgegeven server bestaat niet in de opgegeven resourcegroep en het opgegeven abonnement.

Voorbeelden

Gets the replication link.

Sample Request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/sourcesvr/databases/gamma-db/replicationLinks/4891ca10-ebd0-47d7-9182-c722651780fb?api-version=2021-11-01

Sample Response

{
  "properties": {
    "partnerServer": "testsvr",
    "partnerDatabase": "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"
}

Definities

Name Description
ReplicationLink

Een replicatiekoppeling.

ReplicationLinkType

Koppelingstype (GEO, BENOEMD, STAND-BY).

ReplicationRole

Lokale replicatierol.

ReplicationState

Replicatiestatus (IN BEHANDELING, SEEDING, CATCHUP, ONDERBROKEN).

Een replicatiekoppeling.

Name Type Description
id

string

Resource-id.

name

string

Resourcenaam.

properties.isTerminationAllowed

boolean

Of de gebruiker de koppeling momenteel mag beëindigen.

properties.linkType

ReplicationLinkType

Koppelingstype (GEO, BENOEMD, STAND-BY).

properties.partnerDatabase

string

Resourcepartnerdatabase.

properties.partnerLocation

string

Locatie van resourcepartner.

properties.partnerRole

ReplicationRole

Partnerreplicatierol.

properties.partnerServer

string

Bronpartnerserver.

properties.percentComplete

integer

Voltooiingspercentage van seeding voor de koppeling.

properties.replicationMode

string

Replicatiemodus.

properties.replicationState

ReplicationState

Replicatiestatus (IN BEHANDELING, SEEDING, CATCHUP, ONDERBROKEN).

properties.role

ReplicationRole

Lokale replicatierol.

properties.startTime

string

Tijdstip waarop de koppeling is gemaakt.

type

string

Resourcetype.

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