Replication Links - List By Database

Ruft eine Liste der Replikationslinks für die Datenbank ab.

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

URI-Parameter

Name In Erforderlich Typ Beschreibung
databaseName
path True

string

Der Name der Datenbank.

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

ReplicationLinkListResult

Die Liste der Replikationslinks 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 Digest Uploads aktiviert ist. 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

Sample Request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/sourcesvr/databases/tetha-db/replicationLinks?api-version=2021-11-01

Sample Response

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

Definitionen

Name Beschreibung
ReplicationLink

Ein Replikationslink.

ReplicationLinkListResult

Eine Liste von Replikationslinks.

ReplicationLinkType

Linktyp (GEO, NAMED, STANDBY).

ReplicationRole

Lokale Replikationsrolle.

ReplicationState

Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, SUSPENDED).

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 der Seeding-Vervollständigung für den Link.

properties.replicationMode

string

Replikationsmodus.

properties.replicationState

ReplicationState

Replikationsstatus (AUSSTEHEND, SEEDING, CATCHUP, SUSPENDED).

properties.role

ReplicationRole

Lokale Replikationsrolle.

properties.startTime

string

Zeitpunkt, zu dem der Link erstellt wurde.

type

string

Der Ressourcentyp.

ReplicationLinkListResult

Eine Liste von Replikationslinks.

Name Typ Beschreibung
nextLink

string

Link zum Abrufen der nächsten Ergebnisseite.

value

ReplicationLink[]

Array von Ergebnissen.

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, SUSPENDED).

Name Typ Beschreibung
CATCH_UP

string

PENDING

string

SEEDING

string

SUSPENDED

string