Server Automatic Tuning - Get
サーバーの自動チューニング オプションを取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/automaticTuning/current?api-version=2023-08-01
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
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 server's automatic tuning settings
要求のサンプル
応答のサンプル
{
"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"
}
}
}
}
定義
| 名前 | 説明 |
|---|---|
|
Automatic |
自動チューニング オプションの実際の状態。 |
|
Automatic |
自動チューニング オプションの必要な状態。 |
|
Automatic |
必要な状態の自動チューニング。 |
|
Automatic |
個々のアドバイザーの自動チューニング プロパティ。 |
|
Automatic |
必要な場合の理由の説明と実際の状態が異なります。 |
|
Error |
リソース管理エラーの追加情報。 |
|
Error |
エラーの詳細。 |
|
Error |
エラー応答 |
|
Server |
サーバー レベルの自動チューニング。 |
AutomaticTuningOptionModeActual
自動チューニング オプションの実際の状態。
| 値 | 説明 |
|---|---|
| Off | |
| On |
AutomaticTuningOptionModeDesired
自動チューニング オプションの必要な状態。
| 値 | 説明 |
|---|---|
| Off | |
| On | |
| Default |
AutomaticTuningServerMode
必要な状態の自動チューニング。
| 値 | 説明 |
|---|---|
| Custom | |
| Auto | |
| Unspecified |
AutomaticTuningServerOptions
個々のアドバイザーの自動チューニング プロパティ。
| 名前 | 型 | 説明 |
|---|---|---|
| actualState |
自動チューニング オプションの実際の状態。 |
|
| desiredState |
自動チューニング オプションの必要な状態。 |
|
| reasonCode |
integer (int32) |
必要に応じて理由コードと実際の状態が異なります。 |
| reasonDesc |
必要な場合の理由の説明と実際の状態が異なります。 |
AutomaticTuningServerReason
必要な場合の理由の説明と実際の状態が異なります。
| 値 | 説明 |
|---|---|
| Default | |
| Disabled | |
| AutoConfigured |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
| 名前 | 型 | 説明 |
|---|---|---|
| info |
object |
追加情報。 |
| type |
string |
追加情報の種類。 |
ErrorDetail
エラーの詳細。
| 名前 | 型 | 説明 |
|---|---|---|
| additionalInfo |
エラーの追加情報。 |
|
| code |
string |
エラー コード。 |
| details |
エラーの詳細。 |
|
| message |
string |
エラー メッセージ。 |
| target |
string |
エラーターゲット。 |
ErrorResponse
エラー応答
| 名前 | 型 | 説明 |
|---|---|---|
| error |
エラー オブジェクト。 |
ServerAutomaticTuning
サーバー レベルの自動チューニング。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string |
リソース ID。 |
| name |
string |
リソース名。 |
| properties.actualState |
自動チューニングの実際の状態。 |
|
| properties.desiredState |
必要な状態の自動チューニング。 |
|
| properties.options |
<string,
Automatic |
自動チューニング オプションの定義。 |
| type |
string |
リソースの種類。 |