Replication Links - List By Database

データベース上のレプリケーション リンクの一覧を取得します。

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

URI パラメーター

名前 / 必須 説明
databaseName
path True

string

データベースの名前。

resourceGroupName
path True

string

リソースが含まれているリソース グループの名前。 この値は、Azure リソース マネージャー API またはポータルから取得できます。

serverName
path True

string

サーバーの名前。

subscriptionId
path True

string

Azure サブスクリプションを識別するサブスクリプション ID。

api-version
query True

string

要求で使用する API のバージョン。

応答

名前 説明
200 OK

ReplicationLinkListResult

レプリケーション リンクの一覧が正常に取得されました。

Other Status Codes

エラー応答: ***

  • 400 ReplicationLinksReplicationLinkNameIsInvalid - レプリケーション リンク名は有効な guid にする必要があります。

  • 400 GeoReplicationDatabaseNotSecondary - この操作では、データベースがレプリケーション ターゲットであることが想定されます。

  • 400 LedgerNoDropLink - データベースで台帳ダイジェストアップロードが有効になっているため、geo レプリケーションを停止できません。 台帳ダイジェストのアップロードを無効にして、操作を再試行します。

  • 404 ResourceNotFound - 要求されたリソースが見つかりませんでした。

  • 404 SubscriptionDoesNotHaveServer - 要求されたサーバーが見つかりませんでした

  • 404 ServerNotInSubscriptionResourceGroup - 指定されたサーバーが、指定されたリソース グループとサブスクリプションに存在しません。

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

定義

名前 説明
ReplicationLink

レプリケーション リンク。

ReplicationLinkListResult

レプリケーション リンクの一覧。

ReplicationLinkType

リンクの種類 (GEO、名前付き、スタンバイ)。

ReplicationRole

ローカル レプリケーション ロール。

ReplicationState

レプリケーションの状態 (保留中、シード処理、キャッチアップ、中断)。

レプリケーション リンク。

名前 説明
id

string

リソースの ID

name

string

リソース名。

properties.isTerminationAllowed

boolean

ユーザーが現在、リンクの終了を許可されているかどうか。

properties.linkType

ReplicationLinkType

リンクの種類 (GEO、名前付き、スタンバイ)。

properties.partnerDatabase

string

リソース パートナー データベース。

properties.partnerLocation

string

リソース パートナーの場所。

properties.partnerRole

ReplicationRole

パートナー レプリケーション ロール。

properties.partnerServer

string

リソース パートナー サーバー。

properties.percentComplete

integer

リンクのシード処理完了率。

properties.replicationMode

string

レプリケーション モード。

properties.replicationState

ReplicationState

レプリケーションの状態 (保留中、シード処理、キャッチアップ、中断)。

properties.role

ReplicationRole

ローカル レプリケーション ロール。

properties.startTime

string

リンクが作成された時刻。

type

string

リソースの種類。

ReplicationLinkListResult

レプリケーション リンクの一覧。

名前 説明
nextLink

string

結果の次のページを取得するためのリンク。

value

ReplicationLink[]

結果の配列。

ReplicationLinkType

リンクの種類 (GEO、名前付き、スタンバイ)。

名前 説明
GEO

string

NAMED

string

STANDBY

string

ReplicationRole

ローカル レプリケーション ロール。

名前 説明
Copy

string

NonReadableSecondary

string

Primary

string

Secondary

string

Source

string

ReplicationState

レプリケーションの状態 (保留中、シード処理、キャッチアップ、中断)。

名前 説明
CATCH_UP

string

PENDING

string

SEEDING

string

SUSPENDED

string