Schedules - List Applicable

Tüm geçerli zamanlamaları Listeler

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

URI Parametreleri

Name İçinde Gerekli Tür Description
labName
path True

string

Laboratuvarın adı.

name
path True

string

Zamanlamanın adı.

resourceGroupName
path True

string

Kaynak grubunun adı.

subscriptionId
path True

string

Abonelik kimliği.

api-version
query True

string

İstemci API sürümü.

Yanıtlar

Name Tür Description
200 OK

ScheduleList

Tamam

Other Status Codes

CloudError

BadRequest

Güvenlik

azure_auth

OAuth2 Örtük Verme

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

Scopes

Name Description
user_impersonation Microsoft Azure'a erişme

Örnekler

Schedules_ListApplicable

Sample Request

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{scheduleName}/listApplicable?api-version=2018-09-15

Sample Response

{
  "value": [
    {
      "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"
      }
    }
  ]
}

Tanımlar

Name Description
CloudError

REST isteğinden kaynaklanan hata.

CloudErrorBody

REST isteğinden gelen hatanın gövdesi.

DayDetails

Günlük zamanlamanın özellikleri.

EnableStatus

Zamanlamanın durumu (etkin, devre dışı)

HourDetails

Saatlik zamanlamanın özellikleri.

NotificationSettings

Zamanlama için bildirim ayarları.

Schedule

Bir zamanlama.

ScheduleList

Liste işleminin yanıtı.

WeekDetails

Haftalık zamanlamanın özellikleri.

CloudError

REST isteğinden kaynaklanan hata.

Name Tür Description
error

CloudErrorBody

Oluşan bulut hatası

CloudErrorBody

REST isteğinden gelen hatanın gövdesi.

Name Tür Description
code

string

Hata kodu.

details

CloudErrorBody[]

İç hatalar.

message

string

Hata iletisi.

target

string

Hata hedefi.

DayDetails

Günlük zamanlamanın özellikleri.

Name Tür Description
time

string

Zamanlamanın oluşacağı günün saati.

EnableStatus

Zamanlamanın durumu (etkin, devre dışı)

Name Tür Description
Disabled

string

Enabled

string

HourDetails

Saatlik zamanlamanın özellikleri.

Name Tür Description
minute

integer

Zamanlamanın çalıştırılacağı saatin dakika sayısı.

NotificationSettings

Zamanlama için bildirim ayarları.

Name Tür Varsayılan değer Description
emailRecipient

string

Bildirim gönderilecek e-posta alıcısı (noktalı virgülle ayrılmış e-posta adreslerinin listesi olabilir).

notificationLocale

string

Bildirim gönderirken kullanılacak yerel ayar (desteklenmeyen diller için geri dönüş EN'dir).

status

EnableStatus

Disabled

Bu zamanlama için bildirimler etkinleştirildiyse (etkin, devre dışı).

timeInMinutes

integer

Bildirimin gönderileceği olaydan birkaç dakika önce.

webhookUrl

string

Bildirimin gönderileceği web kancası URL'si.

Schedule

Bir zamanlama.

Name Tür Varsayılan değer Description
id

string

Kaynağın tanımlayıcısı.

location

string

Kaynağın konumu.

name

string

Kaynağın adı.

properties.createdDate

string

Zamanlamanın oluşturulma tarihi.

properties.dailyRecurrence

DayDetails

Zamanlama haftanın her günü bir kez gerçekleşecekse, günlük yinelenmeyi belirtin.

properties.hourlyRecurrence

HourDetails

Zamanlama günde birden çok kez gerçekleşecekse saatlik yinelenmeyi belirtin.

properties.notificationSettings

NotificationSettings

Bildirim ayarları.

properties.provisioningState

string

Kaynağın sağlama durumu.

properties.status

EnableStatus

Disabled

Zamanlamanın durumu (etkin, devre dışı)

properties.targetResourceId

string

Zamanlamanın ait olduğu kaynak kimliği

properties.taskType

string

Zamanlamanın görev türü (örn. LabVmsShutdownTask, LabVmAutoStart).

properties.timeZoneId

string

Saat dilimi kimliği (ör. Çin Standart Saati, Grönland Standart Saati, Pasifik Standart saati vb.). Bu özelliğin olası değerleri (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md) içinde IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds bulunabilir

properties.uniqueIdentifier

string

Kaynağın benzersiz sabit tanımlayıcısı (Guid).

properties.weeklyRecurrence

WeekDetails

Zamanlama haftanın yalnızca birkaç günü gerçekleşecekse haftalık yinelenmeyi belirtin.

tags

object

Kaynağın etiketleri.

type

string

Kaynağın türü.

ScheduleList

Liste işleminin yanıtı.

Name Tür Description
nextLink

string

Sonraki sonuç kümesinin bağlantısı.

value

Schedule[]

Liste işleminin sonuçları.

WeekDetails

Haftalık zamanlamanın özellikleri.

Name Tür Description
time

string

Zamanlamanın gerçekleşeceği günün saati.

weekdays

string[]

Zamanlamanın ayarlandığı haftanın günleri (örneğin, Pazar, Pazartesi, Salı vb.).