Schedule

List

Retrieve information about one or multiple Schedule setting.

GET/api/Provider/VM/AVDHost/Schedule
Query parameters
Response

Success

Body
idinteger (int32)

ID of the object.

adminCreatenullable string

User who created the object.

adminLastModnullable string

User who last modified the object.

timeCreatestring (date-time)

Time when the object was created.

timeLastModstring (date-time)

Time when the object was last modified.

siteIDinteger (int32)

Site ID

objTypeScheduleObjType (enum)

Schedule Object Type

44 = RDS,92 = AVD,100 = VDI
actionScheduleActionType (enum)

Schedule Action Type

0 = Disable,1 = Reboot,3 = Startup,4 = Shutdown,7 = Recreate
targetTypeScheduleTargetType (enum)

Scheduler Target Type

0 = Host,1 = HostPool
enabledboolean

Enabled

namenullable string

Name

descriptionnullable string

Description

typenullable integer (int32)

Type

targetIDsnullable array of integer (int32)

Target IDs

targetNativeHostsnullable array of TargetNativeHost (object)

Target Native Hosts

triggerTrigger (object)

Trigger

optionsOptions (object)

Options

Request
const response = await fetch('/api/Provider/VM/AVDHost/Schedule', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "adminCreate": "text",
    "adminLastMod": "text",
    "timeCreate": "2024-10-05T05:51:44.052Z",
    "timeLastMod": "2024-10-05T05:51:44.052Z",
    "objType": [
      "44 = RDS",
      "92 = AVD",
      "100 = VDI"
    ],
    "action": [
      "0 = Disable",
      "1 = Reboot",
      "3 = Startup",
      "4 = Shutdown",
      "7 = Recreate"
    ],
    "targetType": [
      "0 = Host",
      "1 = HostPool"
    ],
    "enabled": false,
    "name": "text",
    "description": "text",
    "targetIDs": [],
    "targetNativeHosts": [
      {
        "guid": "text",
        "guestName": "text",
        "hostAzureID": "text"
      }
    ],
    "trigger": {
      "startDateTime": "2024-10-05T05:51:44.052Z",
      "endDateTime": "2024-10-05T05:51:44.052Z",
      "repeat": [
        "0 = Never",
        "1 = EveryDay",
        "2 = EveryWeek",
        "3 = Every2Weeks",
        "4 = EveryMonth",
        "5 = EveryYear",
        "6 = SpecificDays"
      ],
      "specificDays": [
        "0 = Never",
        "1 = Sunday",
        "2 = Monday",
        "4 = Tuesday",
        "8 = Wednesday",
        "16 = Thursday",
        "32 = Friday",
        "64 = Saturday"
      ],
      "durationInSecs": 0
    },
    "options": {
      "messages": [
        {
          "enabled": false,
          "messageTitle": "text",
          "message": "text",
          "sendMsgWhen": [
            "0 = Before",
            "1 = After"
          ]
        }
      ],
      "enableDrainMode": false,
      "enforceScheduleInactiveHost": false,
      "onDisable": false
    }
  }
]

Get

Retrieve information about a particular Schedule setting by ID.

GET/api/Provider/VM/AVDHost/Schedule/{id}
Path parameters
Id*integer (int32)

The ID of the Schedule setting for which to retrieve the information.

Response

Success

Body
idinteger (int32)

ID of the object.

adminCreatenullable string

User who created the object.

adminLastModnullable string

User who last modified the object.

timeCreatestring (date-time)

Time when the object was created.

timeLastModstring (date-time)

Time when the object was last modified.

siteIDinteger (int32)

Site ID

objTypeScheduleObjType (enum)

Schedule Object Type

44 = RDS,92 = AVD,100 = VDI
actionScheduleActionType (enum)

Schedule Action Type

0 = Disable,1 = Reboot,3 = Startup,4 = Shutdown,7 = Recreate
targetTypeScheduleTargetType (enum)

Scheduler Target Type

0 = Host,1 = HostPool
enabledboolean

Enabled

namenullable string

Name

descriptionnullable string

Description

typenullable integer (int32)

Type

targetIDsnullable array of integer (int32)

Target IDs

targetNativeHostsnullable array of TargetNativeHost (object)

Target Native Hosts

triggerTrigger (object)

Trigger

optionsOptions (object)

Options

Request
const response = await fetch('/api/Provider/VM/AVDHost/Schedule/{id}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "adminCreate": "text",
  "adminLastMod": "text",
  "timeCreate": "2024-10-05T05:51:44.052Z",
  "timeLastMod": "2024-10-05T05:51:44.052Z",
  "objType": [
    "44 = RDS",
    "92 = AVD",
    "100 = VDI"
  ],
  "action": [
    "0 = Disable",
    "1 = Reboot",
    "3 = Startup",
    "4 = Shutdown",
    "7 = Recreate"
  ],
  "targetType": [
    "0 = Host",
    "1 = HostPool"
  ],
  "enabled": false,
  "name": "text",
  "description": "text",
  "targetIDs": [],
  "targetNativeHosts": [
    {
      "guid": "text",
      "guestName": "text",
      "hostAzureID": "text"
    }
  ],
  "trigger": {
    "startDateTime": "2024-10-05T05:51:44.052Z",
    "endDateTime": "2024-10-05T05:51:44.052Z",
    "repeat": [
      "0 = Never",
      "1 = EveryDay",
      "2 = EveryWeek",
      "3 = Every2Weeks",
      "4 = EveryMonth",
      "5 = EveryYear",
      "6 = SpecificDays"
    ],
    "specificDays": [
      "0 = Never",
      "1 = Sunday",
      "2 = Monday",
      "4 = Tuesday",
      "8 = Wednesday",
      "16 = Thursday",
      "32 = Friday",
      "64 = Saturday"
    ],
    "durationInSecs": 0
  },
  "options": {
    "messages": [
      {
        "enabled": false,
        "messageTitle": "text",
        "message": "text",
        "sendMsgWhen": [
          "0 = Before",
          "1 = After"
        ]
      }
    ],
    "enableDrainMode": false,
    "enforceScheduleInactiveHost": false,
    "onDisable": false
  }
}

Update

Modify properties of a Schedule setting.

PUT/api/Provider/VM/AVDHost/Schedule/{id}
Path parameters
id*integer (int32)

The ID of the Schedule setting to modify.

Body

Schedule settings

newNamenullable string

A new name for the scheduler job.

enablednullable boolean

Whether to enable or disable the schedule.

descriptionnullable string

Schedule description.

startDateTimenullable string (date-time)

Start time. Default: Now.

durationInSecsnullable number (double)

Duration in seconds.

repeatRepeatType (enum)

Repeat Type

0 = Never,1 = EveryDay,2 = EveryWeek,3 = Every2Weeks,4 = EveryMonth,5 = EveryYear,6 = SpecificDays
specificDaysRepeatSpecificDays (enum)

Repeat Specific Days

0 = Never,1 = Sunday,2 = Monday,4 = Tuesday,8 = Wednesday,16 = Thursday,32 = Friday,64 = Saturday
completeInnullable integer (int32)

The duration of the scheduler task in minutes. Default: 15 minutes for disable task, 10 minutes for reboot task.

poolMembersTypenullable integer (int32)

Whether to select the percentage or specific number of members to be started

percentageMembersnullable integer (int32)

Percentage of members to be started

membersToStartnullable integer (int32)

Specific number of members to be started

powerOnAssignedPoolMembersnullable integer (int32)

Power On Assigned Pool Members

enableDrainModenullable boolean

Whether to enable Drain Mode

forceServerRebootAfternullable integer (int32)

Force server reboot after the specified time in seconds

enforceScheduleInactiveHostnullable boolean

Enforce schedule for currently inactive host

onDisablenullable boolean

What action to take on Disable

Response

No Content

Request
const response = await fetch('/api/Provider/VM/AVDHost/Schedule/{id}', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json; api-version=1.0"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "type": "text",
  "title": "text",
  "detail": "text",
  "instance": "text"
}

Delete

Remove a Schedule setting.

DELETE/api/Provider/VM/AVDHost/Schedule/{id}
Path parameters
Id*integer (int32)

The ID of a Schedule setting to remove.

Response

No Content

Request
const response = await fetch('/api/Provider/VM/AVDHost/Schedule/{id}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();
Response
{
  "type": "text",
  "title": "text",
  "detail": "text",
  "instance": "text"
}

Last updated

Other Resources

Feedback

© 2024 Parallels International GmbH. All rights reserved.