Service Fabrics - List Applicable Schedules

해당 시작/중지 일정이 있는 경우 이를 나열합니다.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/listApplicableSchedules?api-version=2018-09-15

URI 매개 변수

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

string

랩의 이름입니다.

name
path True

string

서비스 패브릭의 이름입니다.

resourceGroupName
path True

string

리소스 그룹의 이름.

subscriptionId
path True

string

구독 ID입니다.

userName
path True

string

사용자 프로필의 이름입니다.

api-version
query True

string

클라이언트 API 버전입니다.

응답

Name 형식 Description
200 OK

ApplicableSchedule

정상

Other Status Codes

CloudError

BadRequest

보안

azure_auth

OAuth2 암시적 허용

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Microsoft Azure에 액세스

예제

ServiceFabrics_ListApplicableSchedules

Sample Request

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/listApplicableSchedules?api-version=2018-09-15

Sample Response

{
  "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}",
  "location": "{location}",
  "name": "{scheduleName}",
  "properties": {
    "labVmsShutdown": {
      "properties": {
        "status": "{Enabled|Disabled}",
        "taskType": "{myLabVmTaskType}",
        "weeklyRecurrence": {
          "weekdays": [
            "Monday",
            "Wednesday",
            "Friday"
          ],
          "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}"
        },
        "dailyRecurrence": {
          "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}"
        },
        "hourlyRecurrence": {
          "minute": 30
        },
        "timeZoneId": "Pacific Standard Time",
        "notificationSettings": {
          "status": "{Enabled|Disabled}",
          "timeInMinutes": 15,
          "webhookUrl": "{webhookUrl}",
          "emailRecipient": "{email}",
          "notificationLocale": "EN"
        },
        "createdDate": "2018-10-01T18:40:48.1739018-07:00",
        "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}",
        "provisioningState": "Creating",
        "uniqueIdentifier": "{uniqueIdentifier}"
      },
      "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}",
      "name": "{scheduleName}",
      "type": "Microsoft.DevTestLab/labs/schedules",
      "location": "{location}",
      "tags": {
        "tagName1": "tagValue1"
      }
    },
    "labVmsStartup": {
      "properties": {
        "status": "{Enabled|Disabled}",
        "taskType": "{myLabVmTaskType}",
        "weeklyRecurrence": {
          "weekdays": [
            "Monday",
            "Wednesday",
            "Friday"
          ],
          "time": "{timeOfTheDayTheScheduleWillOccurOnThoseDays}"
        },
        "dailyRecurrence": {
          "time": "{timeOfTheDayTheScheduleWillOccurEveryDay}"
        },
        "hourlyRecurrence": {
          "minute": 30
        },
        "timeZoneId": "Pacific Standard Time",
        "notificationSettings": {
          "status": "{Enabled|Disabled}",
          "timeInMinutes": 15,
          "webhookUrl": "{webhookUrl}",
          "emailRecipient": "{email}",
          "notificationLocale": "EN"
        },
        "createdDate": "2018-10-01T18:40:48.1739018-07:00",
        "targetResourceId": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}",
        "provisioningState": "Creating",
        "uniqueIdentifier": "{uniqueIdentifier}"
      },
      "id": "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/schedules/{scheduleName}",
      "name": "{scheduleName}",
      "type": "Microsoft.DevTestLab/labs/schedules",
      "location": "{location}",
      "tags": {
        "tagName1": "tagValue1"
      }
    }
  },
  "type": "{scheduleType}",
  "tags": {
    "tagName1": "tagValue1"
  }
}

정의

Name Description
ApplicableSchedule

가상 머신에 적용 가능한 일정입니다. 일정은 VM 또는 랩 수준에서 정의되었을 수 있습니다.

CloudError

REST 요청에서 오류가 발생했습니다.

CloudErrorBody

REST 요청의 오류 본문입니다.

DayDetails

일일 일정의 속성입니다.

EnableStatus

일정의 상태(예: 사용, 사용 안 함)

HourDetails

시간별 일정의 속성입니다.

NotificationSettings

일정에 대한 알림 설정입니다.

Schedule

일정입니다.

WeekDetails

주별 일정의 속성입니다.

ApplicableSchedule

가상 머신에 적용 가능한 일정입니다. 일정은 VM 또는 랩 수준에서 정의되었을 수 있습니다.

Name 형식 Description
id

string

리소스의 식별자입니다.

location

string

리소스의 위치입니다.

name

string

리소스의 이름입니다.

properties.labVmsShutdown

Schedule

랩 또는 랩 리소스 수준에서 설정된 경우 자동 종료 일정입니다.

properties.labVmsStartup

Schedule

랩 또는 랩 리소스 수준에서 설정된 경우 자동 시작 일정입니다.

tags

object

리소스의 태그입니다.

type

string

리소스 형식입니다.

CloudError

REST 요청에서 오류가 발생했습니다.

Name 형식 Description
error

CloudErrorBody

발생한 클라우드 오류

CloudErrorBody

REST 요청의 오류 본문입니다.

Name 형식 Description
code

string

오류 코드입니다.

details

CloudErrorBody[]

내부 오류입니다.

message

string

오류 메시지입니다.

target

string

오류 대상입니다.

DayDetails

일일 일정의 속성입니다.

Name 형식 Description
time

string

일정이 발생하는 시간입니다.

EnableStatus

일정의 상태(예: 사용, 사용 안 함)

Name 형식 Description
Disabled

string

Enabled

string

HourDetails

시간별 일정의 속성입니다.

Name 형식 Description
minute

integer

일정이 실행되는 시간(분)입니다.

NotificationSettings

일정에 대한 알림 설정입니다.

Name 형식 기본값 Description
emailRecipient

string

알림을 보낼 전자 메일 받는 사람(세미콜론으로 구분된 전자 메일 주소 목록일 수 있음).

notificationLocale

string

알림을 보낼 때 사용할 로캘입니다(지원되지 않는 언어에 대한 대체는 EN임).

status

EnableStatus

Disabled

이 일정에 대해 알림이 사용하도록 설정된 경우(예: 사용, 사용 안 함)

timeInMinutes

integer

알림이 전송되는 이벤트 전 시간(분)입니다.

webhookUrl

string

알림을 보낼 웹후크 URL입니다.

Schedule

일정입니다.

Name 형식 기본값 Description
id

string

리소스의 식별자입니다.

location

string

리소스의 위치입니다.

name

string

리소스의 이름입니다.

properties.createdDate

string

일정의 생성 날짜입니다.

properties.dailyRecurrence

DayDetails

일정이 요일마다 한 번씩 발생하는 경우 일별 되풀이를 지정합니다.

properties.hourlyRecurrence

HourDetails

일정이 하루에 여러 번 발생하는 경우 시간별 되풀이를 지정합니다.

properties.notificationSettings

NotificationSettings

알림 설정.

properties.provisioningState

string

리소스의 프로비전 상태.

properties.status

EnableStatus

Disabled

일정의 상태(예: 사용, 사용 안 함)

properties.targetResourceId

string

일정이 속한 리소스 ID

properties.taskType

string

일정의 작업 유형(예: LabVmsShutdownTask, LabVmAutoStart)입니다.

properties.timeZoneId

string

표준 시간대 ID(예: 중국 표준시, 그린란드 표준시, 태평양 표준시 등)입니다. 이 속성에 사용할 수 있는 값은 (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md)에서 IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds 찾을 수 있습니다.

properties.uniqueIdentifier

string

리소스의 변경할 수 없는 고유 식별자(Guid)입니다.

properties.weeklyRecurrence

WeekDetails

일정이 요일 중 일부만 발생하는 경우 매주 되풀이를 지정합니다.

tags

object

리소스의 태그입니다.

type

string

리소스 형식입니다.

WeekDetails

주별 일정의 속성입니다.

Name 형식 Description
time

string

일정이 수행되는 날짜의 시간입니다.

weekdays

string[]

일정이 설정된 요일(예: 일요일, 월요일, 화요일 등)입니다.