Database Automatic Tuning - Get
データベースの自動チューニングを取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/automaticTuning/current?api-version=2021-11-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
database
|
path | True |
string |
データベースの名前。 |
resource
|
path | True |
string |
リソースを含むリソース グループの名前。 この値は、Azure Resource Manager API またはポータルから取得できます。 |
server
|
path | True |
string |
サーバーの名前。 |
subscription
|
path | True |
string |
Azure サブスクリプションを識別するサブスクリプション ID。 |
api-version
|
query | True |
string |
要求に使用する API バージョン。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
データベースの自動チューニング プロパティが正常に取得されました。 |
|
Other Status Codes |
エラー応答: ***
|
例
Get a database's automatic tuning settings
要求のサンプル
応答のサンプル
{
"id": "/subscriptions/c3aa9078-0000-0000-0000-e36f151182d7/resourceGroups/default-sql-onebox/providers/Microsoft.Sql/servers/testsvr11/databases/db1/automaticTuning/current",
"name": "current",
"type": "Microsoft.Sql/servers/databases/automaticTuning",
"properties": {
"desiredState": "Auto",
"actualState": "Auto",
"options": {
"forceLastGoodPlan": {
"desiredState": "Default",
"actualState": "On",
"reasonCode": 2,
"reasonDesc": "AutoConfigured"
},
"createIndex": {
"desiredState": "Default",
"actualState": "On",
"reasonCode": 2,
"reasonDesc": "AutoConfigured"
},
"dropIndex": {
"desiredState": "Default",
"actualState": "Off",
"reasonCode": 2,
"reasonDesc": "AutoConfigured"
},
"maintainIndex": {
"desiredState": "Default",
"actualState": "Off",
"reasonCode": 2,
"reasonDesc": "AutoConfigured"
}
}
}
}
定義
名前 | 説明 |
---|---|
Automatic |
必要な場合の理由の説明と実際の状態が異なります。 |
Automatic |
必要な状態の自動チューニング。 |
Automatic |
自動チューニング オプションの実際の状態。 |
Automatic |
自動チューニング オプションの必要な状態。 |
Automatic |
個々のアドバイザーの自動チューニング プロパティ。 |
Database |
データベース レベルの自動チューニング。 |
AutomaticTuningDisabledReason
必要な場合の理由の説明と実際の状態が異なります。
値 | 説明 |
---|---|
AutoConfigured | |
Default | |
Disabled | |
InheritedFromServer | |
NotSupported | |
QueryStoreOff | |
QueryStoreReadOnly |
AutomaticTuningMode
必要な状態の自動チューニング。
値 | 説明 |
---|---|
Auto | |
Custom | |
Inherit | |
Unspecified |
AutomaticTuningOptionModeActual
自動チューニング オプションの実際の状態。
値 | 説明 |
---|---|
Off | |
On |
AutomaticTuningOptionModeDesired
自動チューニング オプションの必要な状態。
値 | 説明 |
---|---|
Default | |
Off | |
On |
AutomaticTuningOptions
個々のアドバイザーの自動チューニング プロパティ。
名前 | 型 | 説明 |
---|---|---|
actualState |
自動チューニング オプションの実際の状態。 |
|
desiredState |
自動チューニング オプションの必要な状態。 |
|
reasonCode |
integer (int32) |
必要に応じて理由コードと実際の状態が異なります。 |
reasonDesc |
必要な場合の理由の説明と実際の状態が異なります。 |
DatabaseAutomaticTuning
データベース レベルの自動チューニング。
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソース ID。 |
name |
string |
リソース名。 |
properties.actualState |
自動チューニングの実際の状態。 |
|
properties.desiredState |
必要な状態の自動チューニング。 |
|
properties.options |
<string,
Automatic |
自動チューニング オプションの定義。 |
type |
string |
リソースの種類。 |