Replication Links - Get

Ruft einen Replikationslink ab.

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

URI-Parameter

Name In Erforderlich Typ Beschreibung
databaseName
path True

string

Der Name der Datenbank.

linkId
path True

string

Der Name des Replikationslinks.

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

serverName
path True

string

Name des Servers

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

Antworten

Name Typ Beschreibung
200 OK

ReplicationLink

Der angegebene Replikationslink wurde erfolgreich abgerufen.

Other Status Codes

Fehlerantworten: ***

  • 400 ReplicationLinksReplicationLinkNameIsInvalid: Der Name des Replikationslinks sollte eine gültige GUID sein.

  • 400 GeoReplicationDatabaseNotSecondary: Der Vorgang erwartet, dass die Datenbank ein Replikationsziel ist.

  • 400 LedgerNoDropLink: Die Georeplikation kann nicht beendet werden, da für die Datenbank Ledger-Digestuploads aktiviert sind. Deaktivieren Sie Ledger Digest-Uploads, und wiederholen Sie den Vorgang.

  • 404 ResourceNotFound: Die angeforderte Ressource wurde nicht gefunden.

  • 404 SubscriptionDoesNotHaveServer: Der angeforderte Server wurde nicht gefunden.

  • 404 ServerNotInSubscriptionResourceGroup: Der angegebene Server ist in der angegebenen Ressourcengruppe und dem angegebenen Abonnement nicht vorhanden.

Beispiele

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"
}

Definitionen

Name Beschreibung
ReplicationLink

Ein Replikationslink.

ReplicationLinkType

Linktyp (GEO, NAMED, STANDBY).

ReplicationRole

Lokale Replikationsrolle.

ReplicationState

Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, ANGEHALTEN).

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

ReplicationLinkType

Linktyp (GEO, NAMED, STANDBY).

properties.partnerDatabase

string

Ressourcenpartnerdatenbank.

properties.partnerLocation

string

Standort des Ressourcenpartners.

properties.partnerRole

ReplicationRole

Partnerreplikationsrolle.

properties.partnerServer

string

Ressourcenpartnerserver.

properties.percentComplete

integer

Prozentsatz des Seedingabschlusses für den Link.

properties.replicationMode

string

Replikationsmodus.

properties.replicationState

ReplicationState

Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, ANGEHALTEN).

properties.role

ReplicationRole

Lokale Replikationsrolle.

properties.startTime

string

Zeitpunkt, zu dem der Link erstellt wurde.

type

string

Der Ressourcentyp.

ReplicationLinkType

Linktyp (GEO, NAMED, STANDBY).

Name Typ Beschreibung
GEO

string

NAMED

string

STANDBY

string

ReplicationRole

Lokale Replikationsrolle.

Name Typ Beschreibung
Copy

string

NonReadableSecondary

string

Primary

string

Secondary

string

Source

string

ReplicationState

Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, ANGEHALTEN).

Name Typ Beschreibung
CATCH_UP

string

PENDING

string

SEEDING

string

SUSPENDED

string