Database Automatic Tuning - Get
데이터베이스의 자동 튜닝을 가져옵니다.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/automaticTuning/current?api-version=2023-08-01
URI 매개 변수
| Name | In(다음 안에) | 필수 | 형식 | Description |
|---|---|---|---|---|
|
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 버전입니다. |
응답
| Name | 형식 | Description |
|---|---|---|
| 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"
}
}
}
}
정의
| Name | Description |
|---|---|
|
Automatic |
원하는 상태와 실제 상태가 다른 경우 이유 설명입니다. |
|
Automatic |
원하는 상태를 자동으로 조정합니다. |
|
Automatic |
자동 튜닝 옵션 실제 상태입니다. |
|
Automatic |
자동 튜닝 옵션 원하는 상태입니다. |
|
Automatic |
개별 관리자에 대한 자동 조정 속성입니다. |
|
Database |
데이터베이스 수준 자동 튜닝. |
|
Error |
리소스 관리 오류 추가 정보입니다. |
|
Error |
오류 세부 정보입니다. |
|
Error |
오류 응답 |
AutomaticTuningDisabledReason
원하는 상태와 실제 상태가 다른 경우 이유 설명입니다.
| 값 | Description |
|---|---|
| Default | |
| Disabled | |
| AutoConfigured | |
| InheritedFromServer | |
| QueryStoreOff | |
| QueryStoreReadOnly | |
| NotSupported |
AutomaticTuningMode
원하는 상태를 자동으로 조정합니다.
| 값 | Description |
|---|---|
| Inherit | |
| Custom | |
| Auto | |
| Unspecified |
AutomaticTuningOptionModeActual
자동 튜닝 옵션 실제 상태입니다.
| 값 | Description |
|---|---|
| Off | |
| On |
AutomaticTuningOptionModeDesired
자동 튜닝 옵션 원하는 상태입니다.
| 값 | Description |
|---|---|
| Off | |
| On | |
| Default |
AutomaticTuningOptions
개별 관리자에 대한 자동 조정 속성입니다.
| Name | 형식 | Description |
|---|---|---|
| actualState |
자동 튜닝 옵션 실제 상태입니다. |
|
| desiredState |
자동 튜닝 옵션 원하는 상태입니다. |
|
| reasonCode |
integer (int32) |
원하는 경우 이유 코드와 실제 상태가 다른 경우. |
| reasonDesc |
원하는 상태와 실제 상태가 다른 경우 이유 설명입니다. |
DatabaseAutomaticTuning
데이터베이스 수준 자동 튜닝.
| Name | 형식 | Description |
|---|---|---|
| id |
string |
리소스 ID입니다. |
| name |
string |
리소스 이름입니다. |
| properties.actualState |
자동 조정 실제 상태입니다. |
|
| properties.desiredState |
원하는 상태를 자동으로 조정합니다. |
|
| properties.options |
<string,
Automatic |
자동 튜닝 옵션 정의입니다. |
| type |
string |
리소스 종류입니다. |
ErrorAdditionalInfo
리소스 관리 오류 추가 정보입니다.
| Name | 형식 | Description |
|---|---|---|
| info |
object |
추가 정보입니다. |
| type |
string |
추가 정보 유형입니다. |
ErrorDetail
오류 세부 정보입니다.
| Name | 형식 | Description |
|---|---|---|
| additionalInfo |
오류 추가 정보입니다. |
|
| code |
string |
오류 코드입니다. |
| details |
오류 세부 정보입니다. |
|
| message |
string |
오류 메시지입니다. |
| target |
string |
오류 대상입니다. |
ErrorResponse
오류 응답
| Name | 형식 | Description |
|---|---|---|
| error |
오류 개체입니다. |