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 매개 변수

Name In(다음 안에) 필수 형식 Description
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 버전입니다.

응답

Name 형식 Description
200 OK

ReplicationLinkListResult

복제 링크 목록을 성공적으로 검색했습니다.

Other Status Codes

오류 응답: ***

  • 400 ReplicationLinksReplicationLinkNameIsInvalid - 복제 링크 이름은 유효한 GUID여야 합니다.

  • 400 GeoReplicationDatabaseNotSecondary - 이 작업은 데이터베이스가 복제 대상이 될 것으로 예상합니다.

  • 400 LedgerNoDropLink - 데이터베이스에 원장 다이제스트 업로드를 사용하도록 설정했기 때문에 지역 복제를 중지할 수 없습니다. 원장 다이제스트 업로드를 사용하지 않도록 설정하고 작업을 다시 시도합니다.

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

정의

Name Description
ReplicationLink

복제 링크입니다.

ReplicationLinkListResult

복제 링크 목록입니다.

ReplicationLinkType

링크 유형(GEO, NAMED, STANDBY).

ReplicationRole

로컬 복제 역할.

ReplicationState

복제 상태(보류 중, 시드, CATCHUP, 일시 중단됨).

복제 링크입니다.

Name 형식 Description
id

string

리소스 ID입니다.

name

string

리소스 이름입니다.

properties.isTerminationAllowed

boolean

사용자가 현재 링크를 종료할 수 있는지 여부입니다.

properties.linkType

ReplicationLinkType

링크 유형(GEO, NAMED, STANDBY).

properties.partnerDatabase

string

리소스 파트너 데이터베이스.

properties.partnerLocation

string

리소스 파트너 위치입니다.

properties.partnerRole

ReplicationRole

파트너 복제 역할.

properties.partnerServer

string

리소스 파트너 서버.

properties.percentComplete

integer

링크의 시드 완료율입니다.

properties.replicationMode

string

복제 모드.

properties.replicationState

ReplicationState

복제 상태(보류 중, 시드, CATCHUP, 일시 중단됨).

properties.role

ReplicationRole

로컬 복제 역할.

properties.startTime

string

링크를 만든 시간입니다.

type

string

리소스 종류.

ReplicationLinkListResult

복제 링크 목록입니다.

Name 형식 Description
nextLink

string

연결하여 결과의 다음 페이지를 검색합니다.

value

ReplicationLink[]

결과 배열입니다.

ReplicationLinkType

링크 유형(GEO, NAMED, STANDBY).

Name 형식 Description
GEO

string

NAMED

string

STANDBY

string

ReplicationRole

로컬 복제 역할.

Name 형식 Description
Copy

string

NonReadableSecondary

string

Primary

string

Secondary

string

Source

string

ReplicationState

복제 상태(보류 중, 시드, CATCHUP, 일시 중단됨).

Name 형식 Description
CATCH_UP

string

PENDING

string

SEEDING

string

SUSPENDED

string