WindowsScheduledTask

List

get

Retrieve Windows Scheduled Task

Path parameters
idinteger · int32Required

The ID of the optimization setting to retrieve the windows scheduled task.

Responses
200
Success
application/json; api-version=1.0
get
GET /api/VDI/HostPool/{id}/Optimization/WindowsScheduledTask HTTP/1.1
Host: 
Accept: */*
[
  {
    "task": "text",
    "location": "text",
    "type": [
      "0 = Folder",
      "1 = Task"
    ]
  }
]

Add

post

Adds a Windows Scheduled task to optimization.

Path parameters
idinteger · int32Required

The ID of the Optimization settings to retrieve the windows scheduled task.

Body
taskstring | nullableRequired

Scheduled Task Name

locationstring | nullableRequired

Scheduled Task Location

Responses
201
Created
post
POST /api/VDI/HostPool/{id}/Optimization/WindowsScheduledTask HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 33

{
  "task": "text",
  "location": "text"
}

No content

Delete

delete

Removes Windows Scheduled Task From Optimization.

Path parameters
idinteger · int32Required

The ID of the optimization setting to remove the windows scheduled task.

Body
taskstring | nullableRequired

Scheduled Task

locationstring | nullableRequired

Scheduled Task Location

Responses
204
No Content
delete
DELETE /api/VDI/HostPool/{id}/Optimization/WindowsScheduledTask HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 33

{
  "task": "text",
  "location": "text"
}

No content

Was this helpful?