Replication Links - Get
Mendapatkan tautan replikasi.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}?api-version=2021-11-01
Parameter URI
Nama | Dalam | Diperlukan | Jenis | Deskripsi |
---|---|---|---|---|
database
|
path | True |
string |
Nama database. |
link
|
path | True |
string |
Nama tautan replikasi. |
resource
|
path | True |
string |
Nama grup sumber daya yang berisi sumber daya. Anda dapat memperoleh nilai ini dari Azure Resource Manager API atau portal. |
server
|
path | True |
string |
Nama server. |
subscription
|
path | True |
string |
ID langganan yang mengidentifikasi langganan Azure. |
api-version
|
query | True |
string |
Versi API yang digunakan untuk permintaan. |
Respons
Nama | Jenis | Deskripsi |
---|---|---|
200 OK |
Berhasil mengambil tautan replikasi yang ditentukan. |
|
Other Status Codes |
Respons Kesalahan: ***
|
Contoh
Gets the replication link.
Permintaan sampel
Respon sampel
{
"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"
}
Definisi
Nama | Deskripsi |
---|---|
Replication |
Tautan replikasi. |
Replication |
Jenis tautan (GEO, NAMED, STANDBY). |
Replication |
Peran replikasi lokal. |
Replication |
Status replikasi (PENDING, SEEDING, CATCHUP, SUSPENDED). |
ReplicationLink
Tautan replikasi.
Nama | Jenis | Deskripsi |
---|---|---|
id |
string |
ID Sumber Daya. |
name |
string |
Nama sumber daya. |
properties.isTerminationAllowed |
boolean |
Apakah pengguna saat ini diizinkan untuk mengakhiri tautan. |
properties.linkType |
Jenis tautan (GEO, NAMED, STANDBY). |
|
properties.partnerDatabase |
string |
Database mitra sumber daya. |
properties.partnerLocation |
string |
Lokasi mitra sumber daya. |
properties.partnerRole |
Peran replikasi mitra. |
|
properties.partnerServer |
string |
Server mitra sumber daya. |
properties.percentComplete |
integer |
Persentase penyelesaian seeding untuk tautan. |
properties.replicationMode |
string |
Mode replikasi. |
properties.replicationState |
Status replikasi (PENDING, SEEDING, CATCHUP, SUSPENDED). |
|
properties.role |
Peran replikasi lokal. |
|
properties.startTime |
string |
Waktu saat tautan dibuat. |
type |
string |
Jenis sumber daya |
ReplicationLinkType
Jenis tautan (GEO, NAMED, STANDBY).
Nama | Jenis | Deskripsi |
---|---|---|
GEO |
string |
|
NAMED |
string |
|
STANDBY |
string |
ReplicationRole
Peran replikasi lokal.
Nama | Jenis | Deskripsi |
---|---|---|
Copy |
string |
|
NonReadableSecondary |
string |
|
Primary |
string |
|
Secondary |
string |
|
Source |
string |
ReplicationState
Status replikasi (PENDING, SEEDING, CATCHUP, SUSPENDED).
Nama | Jenis | Deskripsi |
---|---|---|
CATCH_UP |
string |
|
PENDING |
string |
|
SEEDING |
string |
|
SUSPENDED |
string |