Servers - Restart
서버를 다시 시작합니다.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/restart?api-version=2023-06-30
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
resource
|
path | True |
string |
리소스 그룹의 이름. 이름은 대소문자를 구분하지 않습니다. |
server
|
path | True |
string |
서버의 이름입니다. Regex pattern: |
subscription
|
path | True |
string uuid |
대상 구독의 ID입니다. 값은 UUID여야 합니다. |
api-version
|
query | True |
string |
이 작업에 사용할 API 버전입니다. |
요청 본문
Name | 형식 | Description |
---|---|---|
maxFailoverSeconds |
integer |
허용되는 최대 장애 조치(failover) 시간(초)입니다. |
restartWithFailover |
고가용성을 사용하도록 설정된 서버를 다시 시작할 때 대기 서버로 장애 조치(failover)하는지 여부입니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
정상 |
|
202 Accepted |
수락됨 Headers Location: string |
|
Other Status Codes |
작업이 실패한 이유를 설명하는 오류 응답입니다. |
보안
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | 사용자 계정 가장 |
예제
Restart a server
Sample Request
POST https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/restart?api-version=2023-06-30
{
"restartWithFailover": "Enabled",
"maxFailoverSeconds": 60
}
Sample Response
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2023-06-30
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2023-06-30
정의
Name | Description |
---|---|
Enable |
값이 'Enabled' 또는 'Disabled'인지 여부를 나타내는 열거형 |
Error |
리소스 관리 오류 추가 정보입니다. |
Error |
오류 세부 정보입니다. |
Error |
오류 응답 |
Server |
서버 다시 시작 매개 변수. |
EnableStatusEnum
값이 'Enabled' 또는 'Disabled'인지 여부를 나타내는 열거형
Name | 형식 | Description |
---|---|---|
Disabled |
string |
|
Enabled |
string |
ErrorAdditionalInfo
리소스 관리 오류 추가 정보입니다.
Name | 형식 | Description |
---|---|---|
info |
object |
추가 정보입니다. |
type |
string |
추가 정보 유형입니다. |
ErrorDetail
오류 세부 정보입니다.
Name | 형식 | Description |
---|---|---|
additionalInfo |
오류 추가 정보입니다. |
|
code |
string |
오류 코드입니다. |
details |
오류 세부 정보입니다. |
|
message |
string |
오류 메시지입니다. |
target |
string |
오류 대상입니다. |
ErrorResponse
오류 응답
Name | 형식 | Description |
---|---|---|
error |
Error 개체. |
ServerRestartParameter
서버 다시 시작 매개 변수.
Name | 형식 | Description |
---|---|---|
maxFailoverSeconds |
integer |
허용되는 최대 장애 조치(failover) 시간(초)입니다. |
restartWithFailover |
고가용성을 사용하도록 설정된 서버를 다시 시작할 때 대기 서버로 장애 조치(failover)하는지 여부입니다. |