Start Stop Managed Instance Schedules - Create Or Update
관리되는 instance 시작/중지 일정을 만들거나 업데이트합니다.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/default?api-version=2023-08-01-preview
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
managed
|
path | True |
string |
관리되는 인스턴스의 이름입니다. |
resource
|
path | True |
string |
리소스를 포함하는 리소스 그룹의 이름입니다. Azure 리소스 관리자 API 또는 포털에서 이 값을 가져올 수 있습니다. |
start
|
path | True |
관리되는 instance 시작/중지 일정의 이름입니다. |
|
subscription
|
path | True |
string |
Azure 구독을 식별하는 구독 ID입니다. |
api-version
|
query | True |
string |
요청에 사용할 API 버전입니다. |
요청 본문
Name | 필수 | 형식 | Description |
---|---|---|---|
properties.scheduleList | True |
일정 목록입니다. |
|
properties.description |
string |
일정에 대한 설명입니다. |
|
properties.timeZoneId |
string |
일정의 표준 시간대입니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
시작/중지 일정을 설정했습니다. |
|
201 Created |
시작/중지 일정을 만들었습니다. |
|
Other Status Codes |
오류 응답: ***
|
예제
Creates or updates the managed instance's Start/Stop schedule with all optional parameters specified.
샘플 요청
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/schedulerg/providers/Microsoft.Sql/managedInstances/schedulemi/startStopSchedules/default?api-version=2023-08-01-preview
{
"properties": {
"timeZoneId": "Central European Standard Time",
"description": "This is a schedule for our Dev/Test environment.",
"scheduleList": [
{
"startDay": "Thursday",
"startTime": "18:00",
"stopDay": "Thursday",
"stopTime": "17:00"
},
{
"startDay": "Thursday",
"startTime": "15:00",
"stopDay": "Thursday",
"stopTime": "14:00"
}
]
}
}
샘플 응답
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/schedulerg/providers/Microsoft.Sql/managedInstances/schedulemi/startStopSchedules/default",
"name": "default",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2021-08-26T04:41:33.937Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-27T04:41:33.937Z"
},
"properties": {
"description": "This is a schedule for our Dev/Test environment.",
"nextExecutionTime": "2021-08-26T14:00:00",
"nextRunAction": "Stop",
"scheduleList": [
{
"startDay": "Thursday",
"startTime": "06:00 PM",
"stopDay": "Thursday",
"stopTime": "05:00 PM"
},
{
"startDay": "Thursday",
"startTime": "03:00 PM",
"stopDay": "Thursday",
"stopTime": "02:00 PM"
}
],
"timeZoneId": "Central European Standard Time"
},
"type": "Microsoft.Sql/managedInstances/startStopSchedules"
}
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/schedulerg/providers/Microsoft.Sql/managedInstances/schedulemi/startStopSchedules/default",
"name": "default",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2021-08-26T04:41:33.937Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-26T04:41:33.937Z"
},
"properties": {
"description": "This is a schedule for our Dev/Test environment.",
"nextExecutionTime": "2021-08-26T14:00:00",
"nextRunAction": "Stop",
"scheduleList": [
{
"startDay": "Thursday",
"startTime": "06:00 PM",
"stopDay": "Thursday",
"stopTime": "05:00 PM"
},
{
"startDay": "Thursday",
"startTime": "03:00 PM",
"stopDay": "Thursday",
"stopTime": "02:00 PM"
}
],
"timeZoneId": "Central European Standard Time"
},
"type": "Microsoft.Sql/managedInstances/startStopSchedules"
}
Creates or updates the managed instance's Start/Stop schedule with no optional parameters specified.
샘플 요청
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/schedulerg/providers/Microsoft.Sql/managedInstances/schedulemi/startStopSchedules/default?api-version=2023-08-01-preview
{
"properties": {
"scheduleList": [
{
"startDay": "Thursday",
"startTime": "18:00",
"stopDay": "Thursday",
"stopTime": "17:00"
},
{
"startDay": "Thursday",
"startTime": "15:00",
"stopDay": "Thursday",
"stopTime": "14:00"
}
]
}
}
샘플 응답
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/schedulerg/providers/Microsoft.Sql/managedInstances/schedulemi/startStopSchedules/default",
"name": "default",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2021-08-26T04:41:33.937Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-27T04:41:33.937Z"
},
"properties": {
"description": "",
"nextExecutionTime": "2021-08-26T14:00:00",
"nextRunAction": "Stop",
"scheduleList": [
{
"startDay": "Thursday",
"startTime": "06:00 PM",
"stopDay": "Thursday",
"stopTime": "05:00 PM"
},
{
"startDay": "Thursday",
"startTime": "03:00 PM",
"stopDay": "Thursday",
"stopTime": "02:00 PM"
}
],
"timeZoneId": "UTC"
},
"type": "Microsoft.Sql/managedInstances/startStopSchedules"
}
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/schedulerg/providers/Microsoft.Sql/managedInstances/schedulemi/startStopSchedules/default",
"name": "default",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2021-08-26T04:41:33.937Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-26T04:41:33.937Z"
},
"properties": {
"description": "",
"nextExecutionTime": "2021-08-26T14:00:00",
"nextRunAction": "Stop",
"scheduleList": [
{
"startDay": "Thursday",
"startTime": "06:00 PM",
"stopDay": "Thursday",
"stopTime": "05:00 PM"
},
{
"startDay": "Thursday",
"startTime": "03:00 PM",
"stopDay": "Thursday",
"stopTime": "02:00 PM"
}
],
"timeZoneId": "UTC"
},
"type": "Microsoft.Sql/managedInstances/startStopSchedules"
}
정의
Name | Description |
---|---|
created |
리소스를 만든 ID의 형식입니다. |
Day |
시작 날짜입니다. |
Error |
리소스 관리 오류 추가 정보입니다. |
Error |
오류 세부 정보입니다. |
Error |
오류 응답 |
Schedule |
서버를 시작하거나 중지해야 하는 시기를 설명하는 정보를 예약합니다. |
Start |
관리되는 instance 시작/중지 일정입니다. |
Start |
관리되는 instance 시작/중지 일정의 이름입니다. |
system |
리소스 만들기 및 마지막 수정과 관련된 메타데이터입니다. |
createdByType
리소스를 만든 ID의 형식입니다.
Name | 형식 | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
DayOfWeek
시작 날짜입니다.
Name | 형식 | Description |
---|---|---|
Friday |
string |
|
Monday |
string |
|
Saturday |
string |
|
Sunday |
string |
|
Thursday |
string |
|
Tuesday |
string |
|
Wednesday |
string |
ErrorAdditionalInfo
리소스 관리 오류 추가 정보입니다.
Name | 형식 | Description |
---|---|---|
info |
object |
추가 정보입니다. |
type |
string |
추가 정보 유형입니다. |
ErrorDetail
오류 세부 정보입니다.
Name | 형식 | Description |
---|---|---|
additionalInfo |
오류 추가 정보입니다. |
|
code |
string |
오류 코드입니다. |
details |
오류 세부 정보입니다. |
|
message |
string |
오류 메시지입니다. |
target |
string |
오류 대상입니다. |
ErrorResponse
오류 응답
Name | 형식 | Description |
---|---|---|
error |
Error 개체. |
ScheduleItem
서버를 시작하거나 중지해야 하는 시기를 설명하는 정보를 예약합니다.
Name | 형식 | Description |
---|---|---|
startDay |
시작 날짜입니다. |
|
startTime |
string |
시작 시간 |
stopDay |
중지 일. |
|
stopTime |
string |
중지 시간. |
StartStopManagedInstanceSchedule
관리되는 instance 시작/중지 일정입니다.
Name | 형식 | Default value | Description |
---|---|---|---|
id |
string |
리소스 ID입니다. |
|
name |
string |
리소스 이름입니다. |
|
properties.description |
string |
일정에 대한 설명입니다. |
|
properties.nextExecutionTime |
string |
다음 작업이 해당 일정 표준 시간대에서 실행되는 타임스탬프입니다. |
|
properties.nextRunAction |
string |
실행할 다음 작업(시작 또는 중지) |
|
properties.scheduleList |
일정 목록입니다. |
||
properties.timeZoneId |
string |
UTC |
일정의 표준 시간대입니다. |
systemData |
예약된 리소스의 시스템 데이터입니다. |
||
type |
string |
리소스 종류. |
StartStopScheduleName
관리되는 instance 시작/중지 일정의 이름입니다.
Name | 형식 | Description |
---|---|---|
default |
string |
systemData
리소스 만들기 및 마지막 수정과 관련된 메타데이터입니다.
Name | 형식 | Description |
---|---|---|
createdAt |
string |
UTC(리소스 만들기)의 타임스탬프입니다. |
createdBy |
string |
리소스를 만든 ID입니다. |
createdByType |
리소스를 만든 ID의 형식입니다. |
|
lastModifiedAt |
string |
리소스 마지막 수정의 타임스탬프(UTC) |
lastModifiedBy |
string |
리소스를 마지막으로 수정한 ID입니다. |
lastModifiedByType |
리소스를 마지막으로 수정한 ID 유형입니다. |