Service Fabric Schedules - List

List schedules in a given service fabric.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules?api-version=2018-09-15
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules?$expand={$expand}&$filter={$filter}&$top={$top}&$orderby={$orderby}&api-version=2018-09-15

URI Parameters

Name In Required Type Description
labName
path True

string

The name of the lab.

resourceGroupName
path True

string

The name of the resource group.

serviceFabricName
path True

string

The name of the service fabric.

subscriptionId
path True

string

The subscription ID.

userName
path True

string

The name of the user profile.

api-version
query True

string

Client API version.

$expand
query

string

Specify the $expand query. Example: 'properties($select=status)'

$filter
query

string

The filter to apply to the operation. Example: '$filter=contains(name,'myName')

$orderby
query

string

The ordering expression for the results, using OData notation. Example: '$orderby=name desc'

$top
query

integer

int32

The maximum number of resources to return from the operation. Example: '$top=10'

Responses

Name Type Description
200 OK

ScheduleList

OK

Other Status Codes

CloudError

BadRequest

Security

azure_auth

OAuth2 Implicit Grant

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

Scopes

Name Description
user_impersonation Access Microsoft Azure

Examples

ServiceFabricSchedules_List

Sample Request

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/@me/servicefabrics/{serviceFrabicName}/schedules?api-version=2018-09-15

Sample Response

{
  "value": [
    {
      "properties": {
        "status": "Enabled",
        "taskType": "Unknown",
        "weeklyRecurrence": {
          "weekdays": [
            "Sunday",
            "Monday",
            "Tuesday",
            "Wednesday",
            "Thursday",
            "Friday",
            "Saturday"
          ],
          "time": "1900"
        },
        "timeZoneId": "Pacific Standard Time",
        "notificationSettings": {
          "status": "Disabled",
          "timeInMinutes": 15,
          "webhookUrl": "{webhookUrl}",
          "emailRecipient": "{email}",
          "notificationLocale": "EN"
        },
        "createdDate": "2018-09-15T00:00:00.0000000-00:00",
        "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}",
        "provisioningState": "Succeeded",
        "uniqueIdentifier": "{uniqueIdentifier}"
      },
      "id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}/schedules/{scheduleName}",
      "name": "{scheduleName}",
      "type": "microsoft.devtestlab/labs/users/servicefabrics/schedules",
      "location": "{location}",
      "tags": {
        "tagName1": "tagValue1"
      }
    }
  ]
}

Definitions

Name Description
CloudError

Error from a REST request.

CloudErrorBody

Body of an error from a REST request.

DayDetails

Properties of a daily schedule.

EnableStatus

The status of the schedule (i.e. Enabled, Disabled)

HourDetails

Properties of an hourly schedule.

NotificationSettings

Notification settings for a schedule.

Schedule

A schedule.

ScheduleList

The response of a list operation.

WeekDetails

Properties of a weekly schedule.

CloudError

Error from a REST request.

Name Type Description
error

CloudErrorBody

The cloud error that occurred

CloudErrorBody

Body of an error from a REST request.

Name Type Description
code

string

The error code.

details

CloudErrorBody[]

Inner errors.

message

string

The error message.

target

string

The error target.

DayDetails

Properties of a daily schedule.

Name Type Description
time

string

The time of day the schedule will occur.

EnableStatus

The status of the schedule (i.e. Enabled, Disabled)

Name Type Description
Disabled

string

Enabled

string

HourDetails

Properties of an hourly schedule.

Name Type Description
minute

integer

Minutes of the hour the schedule will run.

NotificationSettings

Notification settings for a schedule.

Name Type Default Value Description
emailRecipient

string

The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

notificationLocale

string

The locale to use when sending a notification (fallback for unsupported languages is EN).

status

EnableStatus

Disabled

If notifications are enabled for this schedule (i.e. Enabled, Disabled).

timeInMinutes

integer

Time in minutes before event at which notification will be sent.

webhookUrl

string

The webhook URL to which the notification will be sent.

Schedule

A schedule.

Name Type Default Value Description
id

string

The identifier of the resource.

location

string

The location of the resource.

name

string

The name of the resource.

properties.createdDate

string

The creation date of the schedule.

properties.dailyRecurrence

DayDetails

If the schedule will occur once each day of the week, specify the daily recurrence.

properties.hourlyRecurrence

HourDetails

If the schedule will occur multiple times a day, specify the hourly recurrence.

properties.notificationSettings

NotificationSettings

Notification settings.

properties.provisioningState

string

The provisioning status of the resource.

properties.status

EnableStatus

Disabled

The status of the schedule (i.e. Enabled, Disabled)

properties.targetResourceId

string

The resource ID to which the schedule belongs

properties.taskType

string

The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).

properties.timeZoneId

string

The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md)

properties.uniqueIdentifier

string

The unique immutable identifier of a resource (Guid).

properties.weeklyRecurrence

WeekDetails

If the schedule will occur only some days of the week, specify the weekly recurrence.

tags

object

The tags of the resource.

type

string

The type of the resource.

ScheduleList

The response of a list operation.

Name Type Description
nextLink

string

Link for next set of results.

value

Schedule[]

Results of the list operation.

WeekDetails

Properties of a weekly schedule.

Name Type Description
time

string

The time of the day the schedule will occur.

weekdays

string[]

The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).