Replication Links - List By Server

Ruft eine Liste der Replikationslinks ab.

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

URI-Parameter

Name In Erforderlich Typ Beschreibung
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 ReplicationLinksDeleteIsNotSupported: Diese Aktion ist noch nicht verfügbar. Verwenden Sie für diese Aktion 2014-04-01.

  • 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/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-SQL-Onebox/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-SQL-Onebox/providers/Microsoft.Sql/servers/sourcesvr/databases/tetha-db/replicationLinks/6ad1eefc-18a2-4fcb-94f3-4b654ba788d7",
      "name": "6ad1eefc-18a2-4fcb-94f3-4b654ba788d7"
    },
    {
      "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-SQL-Onebox/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.

ReplicationLinkListResult

Eine Liste der Replikationslinks.

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.

ReplicationLinkListResult

Eine Liste der 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, ANGEHALTEN).

Name Typ Beschreibung
CATCH_UP

string

PENDING

string

SEEDING

string

SUSPENDED

string