Server Automatic Tuning - Update
Sunucudaki otomatik ayarlama seçeneklerini güncelleştirin.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/automaticTuning/current?api-version=2023-08-01
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
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 |
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ü. |
İstek Gövdesi
| Name | Tür | Description |
|---|---|---|
| properties.desiredState |
otomatik ayarlama istenen durum. |
|
| properties.options |
<string,
Automatic |
Otomatik ayarlama seçenekleri tanımı. |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
Sunucu düzeyinde otomatik ayarlama seçenekleri başarıyla güncelleştirildi. |
|
| Other Status Codes |
Hata Yanıtları: ***
|
Örnekler
| Updates server automatic tuning settings with all properties |
| Updates server automatic tuning settings with minimal properties |
Updates server automatic tuning settings with all properties
Örnek isteği
PATCH https://management.azure.com/subscriptions/c3aa9078-0000-0000-0000-e36f151182d7/resourceGroups/default-sql-onebox/providers/Microsoft.Sql/servers/testsvr11/automaticTuning/current?api-version=2023-08-01
{
"properties": {
"desiredState": "Auto",
"options": {
"createIndex": {
"desiredState": "Off"
},
"dropIndex": {
"desiredState": "On"
},
"forceLastGoodPlan": {
"desiredState": "Default"
}
}
}
}
Örnek yanıt
{
"id": "/subscriptions/c3aa9078-0000-0000-0000-e36f151182d7/resourceGroups/default-sql-onebox/providers/Microsoft.Sql/servers/testsvr11/automaticTuning/current",
"name": "current",
"type": "Microsoft.Sql/servers/automaticTuning",
"properties": {
"desiredState": "Auto",
"actualState": "Auto",
"options": {
"createIndex": {
"desiredState": "Off",
"actualState": "Off"
},
"dropIndex": {
"desiredState": "On",
"actualState": "On"
},
"forceLastGoodPlan": {
"desiredState": "Default",
"actualState": "On",
"reasonCode": 2,
"reasonDesc": "AutoConfigured"
},
"maintainIndex": {
"desiredState": "Default",
"actualState": "Off",
"reasonCode": 2,
"reasonDesc": "AutoConfigured"
}
}
}
}
Updates server automatic tuning settings with minimal properties
Örnek isteği
Örnek yanıt
{
"id": "/subscriptions/c3aa9078-0000-0000-0000-e36f151182d7/resourceGroups/default-sql-onebox/providers/Microsoft.Sql/servers/testsvr11/automaticTuning/current",
"name": "current",
"type": "Microsoft.Sql/servers/automaticTuning",
"properties": {
"desiredState": "Auto",
"actualState": "Auto",
"options": {
"createIndex": {
"desiredState": "Default",
"actualState": "On",
"reasonCode": 2,
"reasonDesc": "AutoConfigured"
},
"dropIndex": {
"desiredState": "Default",
"actualState": "Off",
"reasonCode": 2,
"reasonDesc": "AutoConfigured"
},
"forceLastGoodPlan": {
"desiredState": "Default",
"actualState": "On",
"reasonCode": 2,
"reasonDesc": "AutoConfigured"
},
"maintainIndex": {
"desiredState": "Default",
"actualState": "Off",
"reasonCode": 2,
"reasonDesc": "AutoConfigured"
}
}
}
}
Tanımlar
| Name | Description |
|---|---|
|
Automatic |
Otomatik ayarlama seçeneği gerçek durumu. |
|
Automatic |
Otomatik ayarlama seçeneği istenen durum. |
|
Automatic |
otomatik ayarlama istenen durum. |
|
Automatic |
Tek tek danışmanlar için otomatik ayarlama özellikleri. |
|
Automatic |
İstenen durum ve gerçek durum farklıysa neden açıklaması. |
|
Error |
Kaynak yönetimi hatası ek bilgileri. |
|
Error |
Hata ayrıntısı. |
|
Error |
Hata yanıtı |
|
Server |
Sunucu düzeyinde Otomatik Ayarlama. |
AutomaticTuningOptionModeActual
Otomatik ayarlama seçeneği gerçek durumu.
| Değer | Description |
|---|---|
| Off | |
| On |
AutomaticTuningOptionModeDesired
Otomatik ayarlama seçeneği istenen durum.
| Değer | Description |
|---|---|
| Off | |
| On | |
| Default |
AutomaticTuningServerMode
otomatik ayarlama istenen durum.
| Değer | Description |
|---|---|
| Custom | |
| Auto | |
| Unspecified |
AutomaticTuningServerOptions
Tek tek danışmanlar için otomatik ayarlama özellikleri.
| Name | Tür | Description |
|---|---|---|
| actualState |
Otomatik ayarlama seçeneği gerçek durumu. |
|
| desiredState |
Otomatik ayarlama seçeneği istenen durum. |
|
| reasonCode |
integer (int32) |
İstenirse neden kodu ve gerçek durum farklıdır. |
| reasonDesc |
İstenen durum ve gerçek durum farklıysa neden açıklaması. |
AutomaticTuningServerReason
İstenen durum ve gerçek durum farklıysa neden açıklaması.
| Değer | Description |
|---|---|
| Default | |
| Disabled | |
| AutoConfigured |
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. |
ServerAutomaticTuning
Sunucu düzeyinde Otomatik Ayarlama.
| Name | Tür | Description |
|---|---|---|
| id |
string |
Kaynak Kimliği. |
| name |
string |
Kaynak adı. |
| properties.actualState |
Gerçek durumu otomatik ayarlama. |
|
| properties.desiredState |
otomatik ayarlama istenen durum. |
|
| properties.options |
<string,
Automatic |
Otomatik ayarlama seçenekleri tanımı. |
| type |
string |
Kaynak türü. |