Failover Groups - Failover
Geçerli birincil sunucudan bu sunucuya yük devredildi.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/failover?api-version=2023-08-01
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
failover
|
path | True |
string |
Yük devretme grubunun adı. |
|
resource
|
path | True |
string |
Kaynağı içeren kaynak grubunun adı. Bu değeri Azure Resource Manager API'sinden veya portaldan alabilirsiniz. |
|
server
|
path | True |
string |
Yük devretme grubunu içeren sunucunun adı. |
|
subscription
|
path | True |
string |
Azure aboneliğini tanımlayan abonelik kimliği. |
|
api-version
|
query | True |
string |
İstek için kullanılacak API sürümü. |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
Başarıyla yük devredildi. |
|
| 202 Accepted |
Kabul Üst Bilgiler Location: string |
|
| Other Status Codes |
Hata Yanıtları: ***
|
Örnekler
Planned failover of a failover group
Örnek isteği
POST https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-secondary-server/failoverGroups/failover-group-test-3/failover?api-version=2023-08-01
Örnek yanıt
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-secondary-server/failoverGroups/failover-group-test-3",
"name": "failover-group-test-3",
"type": "Microsoft.Sql/servers/failoverGroups",
"location": "Japan West",
"properties": {
"readWriteEndpoint": {
"failoverPolicy": "Automatic",
"failoverWithDataLossGracePeriodMinutes": 120
},
"readOnlyEndpoint": {
"failoverPolicy": "Disabled",
"targetServer": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-primary-server"
},
"replicationRole": "Primary",
"replicationState": "CATCH_UP",
"partnerServers": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-primary-server",
"location": "Japan East",
"replicationRole": "Secondary"
}
],
"databases": [
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-secondary-server/databases/testdb-1",
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/failover-group-secondary-server/databases/testdb-2"
]
}
}
Location: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/japanwest/failoverGroupOperationResults/11111111-1111-1111-1111-111111111111
Tanımlar
| Name | Description |
|---|---|
|
Error |
Kaynak yönetimi hatası ek bilgileri. |
|
Error |
Hata ayrıntısı. |
|
Error |
Hata yanıtı |
|
Failover |
Yük devretme grubu. |
|
Failover |
İş ortağı sunucusunda veritabanları ikincil türü. |
|
Failover |
Yük devretme grubu örneğinin salt okunur uç noktası. |
|
Failover |
Yük devretme grubu örneğinin okuma-yazma uç noktası. |
|
Failover |
Yük devretme grubu örneğinin yerel çoğaltma rolü. |
|
Partner |
Yük devretme grubu için iş ortağı sunucusu bilgileri. |
|
Read |
Yük devretme grubu için salt okunur uç noktanın yük devretme ilkesi. |
|
Read |
Yük devretme grubu için okuma-yazma uç noktasının yük devretme ilkesi. FailoverPolicy Otomatik ise failoverWithDataLossGracePeriodMinutes gereklidir. |
ErrorAdditionalInfo
Kaynak yönetimi hatası ek bilgileri.
| Name | Tür | Description |
|---|---|---|
| info |
object |
Ek bilgiler. |
| type |
string |
Ek bilgi türü. |
ErrorDetail
Hata ayrıntısı.
| Name | Tür | Description |
|---|---|---|
| additionalInfo |
Hata ek bilgileri. |
|
| code |
string |
Hata kodu. |
| details |
Hata ayrıntıları. |
|
| message |
string |
Hata iletisi. |
| target |
string |
Hata hedefi. |
ErrorResponse
Hata yanıtı
| Name | Tür | Description |
|---|---|---|
| error |
Hata nesnesi. |
FailoverGroup
Yük devretme grubu.
| Name | Tür | Description |
|---|---|---|
| id |
string |
Kaynak Kimliği. |
| location |
string |
Kaynak konumu. |
| name |
string |
Kaynak adı. |
| properties.databases |
string[] (arm-id) |
Yük devretme grubundaki veritabanlarının listesi. |
| properties.partnerServers |
Yük devretme grubu için iş ortağı sunucu bilgilerinin listesi. |
|
| properties.readOnlyEndpoint |
Yük devretme grubu örneğinin salt okunur uç noktası. |
|
| properties.readWriteEndpoint |
Yük devretme grubu örneğinin okuma-yazma uç noktası. |
|
| properties.replicationRole |
Yük devretme grubu örneğinin yerel çoğaltma rolü. |
|
| properties.replicationState |
string |
Yük devretme grubu örneğinin çoğaltma durumu. |
| properties.secondaryType |
İş ortağı sunucusunda veritabanları ikincil türü. |
|
| tags |
object |
Kaynak etiketleri. |
| type |
string |
Kaynak türü. |
FailoverGroupDatabasesSecondaryType
İş ortağı sunucusunda veritabanları ikincil türü.
| Değer | Description |
|---|---|
| Geo | |
| Standby |
FailoverGroupReadOnlyEndpoint
Yük devretme grubu örneğinin salt okunur uç noktası.
| Name | Tür | Description |
|---|---|---|
| failoverPolicy |
Yük devretme grubu için salt okunur uç noktanın yük devretme ilkesi. |
|
| targetServer |
string (arm-id) |
Salt okunur uç noktanın işaret ettiği hedef iş ortağı sunucusu. |
FailoverGroupReadWriteEndpoint
Yük devretme grubu örneğinin okuma-yazma uç noktası.
| Name | Tür | Description |
|---|---|---|
| failoverPolicy |
Yük devretme grubu için okuma-yazma uç noktasının yük devretme ilkesi. FailoverPolicy Otomatik ise failoverWithDataLossGracePeriodMinutes gereklidir. |
|
| failoverWithDataLossGracePeriodMinutes |
integer (int32) |
Okuma-yazma uç noktası için veri kaybıyla yük devretmeden önce yetkisiz kullanım süresi denendi. FailoverPolicy Otomatik ise failoverWithDataLossGracePeriodMinutes gereklidir. |
FailoverGroupReplicationRole
Yük devretme grubu örneğinin yerel çoğaltma rolü.
| Değer | Description |
|---|---|
| Primary | |
| Secondary |
PartnerInfo
Yük devretme grubu için iş ortağı sunucusu bilgileri.
| Name | Tür | Description |
|---|---|---|
| id |
string (arm-id) |
İş ortağı sunucusunun kaynak tanımlayıcısı. |
| location |
string |
İş ortağı sunucusunun coğrafi konumu. |
| replicationRole |
İş ortağı sunucusunun çoğaltma rolü. |
ReadOnlyEndpointFailoverPolicy
Yük devretme grubu için salt okunur uç noktanın yük devretme ilkesi.
| Değer | Description |
|---|---|
| Disabled | |
| Enabled |
ReadWriteEndpointFailoverPolicy
Yük devretme grubu için okuma-yazma uç noktasının yük devretme ilkesi. FailoverPolicy Otomatik ise failoverWithDataLossGracePeriodMinutes gereklidir.
| Değer | Description |
|---|---|
| Manual | |
| Automatic |