Replication Links - Get

レプリケーション リンクを取得します。

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

URI パラメーター

名前 / 必須 説明
databaseName
path True

string

データベースの名前。

linkId
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

ReplicationLink

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

Other Status Codes

エラー応答: ***

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

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

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

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

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

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

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

定義

名前 説明
ReplicationLink

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

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

リソースの種類。

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