다음을 통해 공유


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 매개 변수

Name In(다음 안에) 필수 형식 Description
resourceGroupName
path True

string

리소스를 포함하는 리소스 그룹의 이름입니다. Azure Resource Manager API 또는 포털에서 이 값을 가져올 수 있습니다.

serverName
path True

string

서버의 이름입니다.

subscriptionId
path True

string

Azure 구독을 식별하는 구독 ID입니다.

api-version
query True

string

요청에 사용할 API 버전입니다.

응답

Name 형식 Description
200 OK

ServerAutomaticTuning

서버 자동 튜닝 속성을 검색했습니다.

Other Status Codes

ErrorResponse

오류 응답: ***

  • 400 FeatureDisabledOnSelectedEdition - 사용자가 현재 데이터베이스 버전에서 사용하지 않도록 설정된 기능을 사용하려고 했습니다.

  • 400 InvalidIdentifier - 식별자에 NULL 또는 잘못된 유니코드 문자가 포함되어 있습니다.

  • 404 SubscriptionDoesNotHaveServer - 요청된 서버를 찾을 수 없습니다.

  • 404 DatabaseDoesNotExist - 요청된 데이터베이스를 찾을 수 없습니다.

  • 404 SubscriptionDoesNotHaveElasticPool - 요청된 탄력적 풀을 찾을 수 없습니다.

  • 404 OperationIdNotFound - ID가 있는 작업이 없습니다.

  • 405 NotSupported - 이 기능은 지원되지 않습니다.

  • 409 충돌 - 요청의 충돌로 인해 요청을 처리할 수 없습니다.

  • 409 CannotCancelOperation - 관리 작업이 취소할 수 없는 상태입니다.

  • 409 OperationCancelled - 사용자가 작업을 취소했습니다.

  • 409 OperationInterrupted - 동일한 리소스의 다른 작업에 의해 중단되었으므로 리소스에 대한 작업을 완료할 수 없습니다.

  • 429 SubscriptionTooManyCreateUpdateRequests - 사용 가능한 리소스에서 처리할 수 있는 최대 요청을 초과하는 요청입니다.

  • 429 SubscriptionTooManyRequests - 사용 가능한 리소스에서 처리할 수 있는 최대 요청을 초과하는 요청입니다.

  • 500 OperationTimedOut - 작업 시간이 초과되고 자동으로 롤백됩니다. 작업을 다시 시도하세요.

  • 503 ServiceTemporarilyUnavailable - 기능을 일시적으로 사용할 수 없습니다.

  • 503 TooManyRequests - 사용 가능한 리소스에서 처리할 수 있는 최대 요청을 초과하는 요청입니다.

예제

Get a server's automatic tuning settings

샘플 요청

GET 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

샘플 응답

{
  "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"
      }
    }
  }
}

정의

Name Description
AutomaticTuningOptionModeActual

자동 튜닝 옵션 실제 상태입니다.

AutomaticTuningOptionModeDesired

자동 튜닝 옵션 원하는 상태입니다.

AutomaticTuningServerMode

원하는 상태를 자동으로 조정합니다.

AutomaticTuningServerOptions

개별 관리자에 대한 자동 조정 속성입니다.

AutomaticTuningServerReason

원하는 상태와 실제 상태가 다른 경우 이유 설명입니다.

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

ErrorDetail

오류 세부 정보입니다.

ErrorResponse

오류 응답

ServerAutomaticTuning

서버 수준 자동 튜닝.

AutomaticTuningOptionModeActual

자동 튜닝 옵션 실제 상태입니다.

Description
Off
On

AutomaticTuningOptionModeDesired

자동 튜닝 옵션 원하는 상태입니다.

Description
Off
On
Default

AutomaticTuningServerMode

원하는 상태를 자동으로 조정합니다.

Description
Custom
Auto
Unspecified

AutomaticTuningServerOptions

개별 관리자에 대한 자동 조정 속성입니다.

Name 형식 Description
actualState

AutomaticTuningOptionModeActual

자동 튜닝 옵션 실제 상태입니다.

desiredState

AutomaticTuningOptionModeDesired

자동 튜닝 옵션 원하는 상태입니다.

reasonCode

integer (int32)

원하는 경우 이유 코드와 실제 상태가 다른 경우.

reasonDesc

AutomaticTuningServerReason

원하는 상태와 실제 상태가 다른 경우 이유 설명입니다.

AutomaticTuningServerReason

원하는 상태와 실제 상태가 다른 경우 이유 설명입니다.

Description
Default
Disabled
AutoConfigured

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

Name 형식 Description
info

object

추가 정보입니다.

type

string

추가 정보 유형입니다.

ErrorDetail

오류 세부 정보입니다.

Name 형식 Description
additionalInfo

ErrorAdditionalInfo[]

오류 추가 정보입니다.

code

string

오류 코드입니다.

details

ErrorDetail[]

오류 세부 정보입니다.

message

string

오류 메시지입니다.

target

string

오류 대상입니다.

ErrorResponse

오류 응답

Name 형식 Description
error

ErrorDetail

오류 개체입니다.

ServerAutomaticTuning

서버 수준 자동 튜닝.

Name 형식 Description
id

string

리소스 ID입니다.

name

string

리소스 이름입니다.

properties.actualState

AutomaticTuningServerMode

자동 조정 실제 상태입니다.

properties.desiredState

AutomaticTuningServerMode

원하는 상태를 자동으로 조정합니다.

properties.options

<string,  AutomaticTuningServerOptions>

자동 튜닝 옵션 정의입니다.

type

string

리소스 종류입니다.