Server Automatic Tuning - Update
Automatische afstemmingsopties op de server bijwerken.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/automaticTuning/current?api-version=2021-02-01-preview
URI-parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
|
De naam van de resourcegroep die de resource bevat. U kunt deze waarde verkrijgen via Azure Resource Manager API of de portal. |
server
|
path | True |
|
De naam van de server. |
subscription
|
path | True |
|
De abonnements-id die een Azure-abonnement identificeert. |
api-version
|
query | True |
|
De API-versie die moet worden gebruikt voor de aanvraag. |
Aanvraagbody
Name | Type | Description |
---|---|---|
properties.desiredState |
Automatisch afstemmen van de gewenste status. |
|
properties.options |
|
Definitie van opties voor automatisch afstemmen. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De opties voor automatisch afstemmen op serverniveau zijn bijgewerkt. |
|
Other Status Codes |
Foutreacties: ***
|
Voorbeelden
Updates server automatic tuning settings with all properties |
Updates server automatic tuning settings with minimal properties |
Updates server automatic tuning settings with all properties
Sample Request
PATCH https://management.azure.com/subscriptions/c3aa9078-0000-0000-0000-e36f151182d7/resourceGroups/default-sql-onebox/providers/Microsoft.Sql/servers/testsvr11/automaticTuning/current?api-version=2021-02-01-preview
{
"properties": {
"desiredState": "Auto",
"options": {
"createIndex": {
"desiredState": "Off"
},
"dropIndex": {
"desiredState": "On"
},
"forceLastGoodPlan": {
"desiredState": "Default"
}
}
}
}
Sample Response
{
"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
Sample Request
PATCH https://management.azure.com/subscriptions/c3aa9078-0000-0000-0000-e36f151182d7/resourceGroups/default-sql-onebox/providers/Microsoft.Sql/servers/testsvr11/automaticTuning/current?api-version=2021-02-01-preview
{
"properties": {
"desiredState": "Auto"
}
}
Sample Response
{
"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"
}
}
}
}
Definities
Automatic |
Werkelijke status van automatische afstemmingsoptie. |
Automatic |
Automatische afstemming optie gewenste status. |
Automatic |
Automatisch afstemmen van de gewenste status. |
Automatic |
Eigenschappen automatisch afstemmen voor afzonderlijke adviseurs. |
Automatic |
Beschrijving van de reden, indien gewenst, en de werkelijke status is anders. |
Server |
Automatisch afstemmen op serverniveau. |
AutomaticTuningOptionModeActual
Werkelijke status van automatische afstemmingsoptie.
Name | Type | Description |
---|---|---|
Off |
|
|
On |
|
AutomaticTuningOptionModeDesired
Automatische afstemming optie gewenste status.
Name | Type | Description |
---|---|---|
Default |
|
|
Off |
|
|
On |
|
AutomaticTuningServerMode
Automatisch afstemmen van de gewenste status.
Name | Type | Description |
---|---|---|
Auto |
|
|
Custom |
|
|
Unspecified |
|
AutomaticTuningServerOptions
Eigenschappen automatisch afstemmen voor afzonderlijke adviseurs.
Name | Type | Description |
---|---|---|
actualState |
Werkelijke status van automatische afstemmingsoptie. |
|
desiredState |
Automatische afstemming optie gewenste status. |
|
reasonCode |
|
Redencode indien gewenst en de werkelijke status verschillen. |
reasonDesc |
Beschrijving van de reden, indien gewenst, en de werkelijke status is anders. |
AutomaticTuningServerReason
Beschrijving van de reden, indien gewenst, en de werkelijke status is anders.
Name | Type | Description |
---|---|---|
AutoConfigured |
|
|
Default |
|
|
Disabled |
|
ServerAutomaticTuning
Automatisch afstemmen op serverniveau.
Name | Type | Description |
---|---|---|
id |
|
Resource-id. |
name |
|
Resourcenaam. |
properties.actualState |
Automatische afstemming van de werkelijke status. |
|
properties.desiredState |
Automatisch afstemmen van de gewenste status. |
|
properties.options |
|
Definitie van opties voor automatisch afstemmen. |
type |
|
Resourcetype. |