All pages
Powered by GitBook
1 of 13

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

EnterMaintenance

ExitMaintenance

Template

Registry

RecreateDesktops

Status

Version

WindowsComponent

WindowsScheduledTask

WindowsService

VersionStatus

LicenseKey

Optimization

Enter Maintenance

post

Enter Maintenance Mode.

Path parameters
idinteger · int32Required

The ID of the target RAS Template.

Query parameters
forceStopUpdateDesktopsbooleanOptional

Force stopping/updating of desktop VMs.

Responses
204

No Content

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
post
/api/VDI/Template/{id}/EnterMaintenance
POST /api/VDI/Template/{id}/EnterMaintenance HTTP/1.1
Host: 
Accept: */*

No content

Exit Maintenance

post

Exit Maintenance Mode.

Path parameters
idinteger · int32Required

The ID of the target RAS Template.

Query parameters
forceStopUpdateDesktopsbooleanOptional

Force stopping/updating of desktop VMs.

Responses
204

No Content

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
post
/api/VDI/Template/{id}/ExitMaintenance
POST /api/VDI/Template/{id}/ExitMaintenance HTTP/1.1
Host: 
Accept: */*

No content

List

get

Retrieve settings about RAS Templates.

Query parameters
SiteIdinteger · int32Optional

The site ID from which to retrieve the RAS Template info (optional).

NamestringOptional

RAS Template name.

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template
GET /api/VDI/Template HTTP/1.1
Host: 
Accept: */*
[
  {
    "id": 1,
    "adminCreate": "text",
    "adminLastMod": "text",
    "timeCreate": "2025-12-07T02:34:58.309Z",
    "timeLastMod": "2025-12-07T02:34:58.309Z",
    "objType": [
      "89 = AVDTemplate",
      "101 = RDSTemplate",
      "102 = VDITemplate"
    ],
    "name": "text",
    "siteId": 1,
    "description": "text",
    "providerId": 1,
    "templateType": [
      "0 = SingleSession",
      "1 = MultiSession"
    ],
    "vmId": "text",
    "cloneMethod": [
      "0 = FullClone",
      "1 = LinkedClone"
    ],
    "advanced": {
      "folder": {
        "folderName": "text",
        "folderId": "text",
        "subFolderName": "text"
      },
      "nativePool": {
        "nativePoolId": "text",
        "nativePoolName": "text",
        "hwgpu": true
      },
      "physicalHost": {
        "physicalHostId": "text",
        "physicalHostName": "text"
      },
      "multipleNIC": {
        "useSeperateNetworkInterface": true,
        "address": "text",
        "subnetMask": "text"
      },
      "aws": {
        "instanceType": "text",
        "storageDevices": [
          {
            "deviceName": "text",
            "volumeType": [
              "0 = gp2",
              "1 = gp3",
              "2 = io1",
              "3 = io2",
              "4 = standard"
            ],
            "size": 1,
            "maximumIOPS": 1,
            "throughput": 1
          }
        ]
      },
      "azure": {
        "resourceGroup": "text",
        "location": "text",
        "vmSize": "text",
        "osDiskType": [
          "1 = StandardHDD",
          "2 = StandardSSD",
          "4 = PremiumSSD"
        ],
        "virtualNetworkID": "text",
        "virtualNetworkName": "text",
        "subnet": {
          "subnetID": "text",
          "subnetName": "text"
        }
      }
    },
    "preparation": {
      "imagePrepTool": [
        "0 = SysPrep",
        "1 = RASPrep"
      ],
      "computerName": "text",
      "ownerName": "text",
      "organization": "text",
      "administrator": "text",
      "domain": "text",
      "domainOrgUnit": "text"
    },
    "inheritDefaultOptimizationSettings": true,
    "optimization": {
      "enableOptimization": true,
      "optimizationType": [
        "0 = Automatic",
        "1 = Manual"
      ],
      "windowsDefenderATP": {
        "winDefATPTurnOffOn": [
          "0 = TurnOffWindowsDefenderATP",
          "1 = TurnOnWindowsDefenderATP"
        ],
        "disableRealTimeProtection": true,
        "excludeFolders": [
          "text"
        ],
        "excludeProcesses": [
          "text"
        ],
        "excludeExtension": [
          "text"
        ]
      },
      "windowsComponents": {
        "windowsComponentsList": [
          {
            "type": [
              "0 = Predefined",
              "1 = Custom"
            ],
            "componentName": "text",
            "displayName": "text",
            "aliases": "text"
          }
        ]
      },
      "windowsDefenderATPEnabled": true,
      "windowsComponentsEnabled": true,
      "windowsServicesEnabled": true,
      "windowsScheduledTasksEnabled": true,
      "windowsAdvancedOptionsEnabled": true,
      "networkPerformanceEnabled": true,
      "registryEnabled": true,
      "visualEffectsEnabled": true,
      "diskCleanupEnabled": true,
      "customScriptEnabled": true,
      "windowsServices": {
        "windowsServicesList": [
          {
            "type": [
              "0 = Predefined",
              "1 = Custom"
            ],
            "serviceName": "text",
            "displayName": "text",
            "aliases": "text"
          }
        ]
      },
      "windowsAdvancedOptions": {
        "partialStartLayoutContent": "text",
        "hibernate": true,
        "teleCollection": true,
        "systemRestore": true,
        "additionalErrorReport": true,
        "tiles": true,
        "cortana": true,
        "microsoftConsumerExperience": true,
        "windowsTips": true,
        "commonProgramGroups": true,
        "partialStartMenu": true
      },
      "networkPerformance": {
        "dirCacheMax": 1,
        "dormantFileLimit": 1,
        "fileNotFoundCache": 1,
        "fileInfoCache": 1,
        "fileInfoCacheEnable": true,
        "directoryCacheEnable": true,
        "fileNotFoundCacheEnable": true,
        "dormantFileLimitEnable": true,
        "disableTCP": true,
        "disableIPv6CompEnable": true,
        "disableIPv6ToIPv4": true,
        "disableIsaTap": true
      },
      "customScript": {
        "arguments": "text",
        "command": "text",
        "initDir": "text",
        "user": "text"
      },
      "diskCleanup": {
        "cleanupWinSxSFolder": true,
        "cleanupSystemFiles": true,
        "cleanupTemporaryFileLogs": true,
        "removeOneDrive": true,
        "deleteUserProfiles": true
      },
      "visualEffects": {
        "visualEffectsTypes": [
          "0 = LetWindowsChooseWhatsBest",
          "1 = AdjustForBestAppearance",
          "2 = AdjustForBestPerformance",
          "3 = Custom"
        ],
        "animateControlSelectElements": true,
        "animateWindowsWhenMinimizingMaximizing": true,
        "animateTaskbar": true,
        "enablePeek": true,
        "fadeSlideMenus": true,
        "fadeSlideToolTips": true,
        "fadeOutMenuItems": true,
        "saveTaskbarThumbnail": true,
        "showShadowUnderMouse": true,
        "shadowUnderWindows": true,
        "thumbnailsInsteadOfIcons": true,
        "showTranslucentSelection": true,
        "showWindowsContentWhilstDragging": true,
        "slideOpenComboBoxes": true,
        "smoothEdgesScreenFonts": true,
        "smoothScrollListBoxes": true,
        "dropShadowsIcon": true
      },
      "windowsScheduledTasks": {
        "windowsScheduledTasksList": [
          {
            "task": "text",
            "location": "text",
            "type": [
              "0 = Folder",
              "1 = Task"
            ]
          }
        ]
      },
      "registry": {
        "registryList": [
          {
            "id": 1,
            "action": [
              "0 = Add",
              "1 = Modify",
              "2 = Delete"
            ],
            "registryName": "text",
            "dwordValue": 1,
            "displayName": "text",
            "hiveType": [
              "0 = HKEY_CURRENT_CONFIG",
              "1 = HKEY_USERS",
              "2 = HKEY_LOCAL_MACHINE",
              "3 = HKEY_CLASSES_ROOT"
            ],
            "path": "text",
            "regType": [
              "0 = REG_SZ",
              "1 = REG_DWORD",
              "2 = REG_QWORD",
              "3 = REG_MULTI_SZ",
              "4 = REG_EXPAND_SZ"
            ],
            "stringValue": "text"
          }
        ]
      },
      "uwpApps": {
        "allExcept": [
          "text"
        ],
        "followingPkgs": [
          "text"
        ],
        "removeType": [
          "0 = AllExcept",
          "1 = FollowingPkgs"
        ]
      }
    },
    "licenseKeys": {
      "licenseKeyType": [
        "0 = KMS",
        "1 = MAK"
      ],
      "keys": [
        {
          "licenseKey": "text",
          "keyLimit": 1
        }
      ]
    }
  }
]

Create

post

Creates a new RAS Template.

Body
providerIdinteger · int32Required

The ID of a Provider on which the source desktop VM resides.

vmIdstring | nullableRequired

The ID of the source VM.

namestring | nullableOptional

RAS Template Name.

siteIdinteger · int32Optional

The site ID in which to create the RAS Template info. If the parameter is omitted, the site ID of the Licensing Server will be used.

descriptionstring | nullableOptional

RAS Template Description.

templateTypestring · enumOptional

Host Session Type

Possible values:
cloneMethodstring · enumOptional

Clone Method

Possible values:
folderNamestring | nullableOptional

Folder name where desktop VMs will be created.

folderIdstring | nullableOptional

The ID of a folder where desktop VMs will be created.

subFolderNamestring | nullableOptional

Subfolder name where desktop VMs will be created.

nativePoolIdstring | nullableOptional

The ID of the native pool where desktop VMs will be created.

nativePoolNamestring | nullableOptional

The name of the native pool where desktop VMs will be created.

hwgpubooleanOptional

Enable hardware acceleration graphics licensing support.

physicalHostIdstring | nullableOptional

The ID of a physical host where desktop VMs will be created.

physicalHostNamestring | nullableOptional

The name of a physical host where desktop VMs will be created.

useSeperateNetworkInterfacebooleanOptional

Use a separate network interface for LAN access.

addressstring | nullableOptional

The address of the network interface.

subnetMaskstring | nullableOptional

The subnet mask of the network interface.

instanceTypestring | nullableOptional

Instance type.

deviceNamestring | nullableOptional

Device name.

volumeTypestring · enumOptional

Volume type

Possible values:
sizeinteger · int32Optional

Size (GiB).

maximumIOPSinteger · int64 | nullableOptional

Maximum IOPS.

throughputinteger · int64 | nullableOptional

Throughput (MB/s).

resourceGroupstring | nullableOptional

Resource group.

vmSizestring | nullableOptional

VM size.

osDiskTypestring · enumOptional

Volume type

Possible values:
virtualNetworkIDstring | nullableOptional

Virtual network ID.

virtualNetworkNamestring | nullableOptional

Virtual network name.

subnetIDstring | nullableOptional

Subnet ID.

subnetNamestring | nullableOptional

Subnet name.

imagePrepToolstring · enumOptional

Image preparation tool

Possible values:
computerNamestring | nullableOptional

The FQDN or IP address of the target VM.

ownerNamestring | nullableOptional

A desktop VM owner name (assigned to a VM by RASprep or Sysprep).

organizationstring | nullableOptional

Organization name (assigned to a VM by RASprep or Sysprep).

domainstring | nullableRequired

Domain or WorkGroup to join (assigned to a VM by RASprep or Sysprep).

domainPasswordstring | nullableRequired

The password of the domain administrator specified in the Administrator parameter.

administratorstring | nullableRequired

The administrator of the domain specified in the JoinDomain parameter.

adminPasswordstring | nullableRequired

The password of the administrator for the desktop VM (assigned to a VM by RASprep or Sysprep).

domainOrgUnitstring | nullableOptional

Domain Organization unit

Responses
201

Created

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
409

Conflict

application/json; api-version=1.0
post
/api/VDI/Template
POST /api/VDI/Template HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 993

{
  "providerId": 1,
  "vmId": "text",
  "name": "text",
  "siteId": 1,
  "description": "text",
  "templateType": [
    "0 = SingleSession",
    "1 = MultiSession"
  ],
  "cloneMethod": [
    "0 = FullClone",
    "1 = LinkedClone"
  ],
  "folderName": "text",
  "folderId": "text",
  "subFolderName": "text",
  "nativePoolId": "text",
  "nativePoolName": "text",
  "hwgpu": true,
  "physicalHostId": "text",
  "physicalHostName": "text",
  "useSeperateNetworkInterface": true,
  "address": "text",
  "subnetMask": "text",
  "instanceType": "text",
  "deviceName": "text",
  "volumeType": [
    "0 = gp2",
    "1 = gp3",
    "2 = io1",
    "3 = io2",
    "4 = standard"
  ],
  "size": 1,
  "maximumIOPS": 1,
  "throughput": 1,
  "resourceGroup": "text",
  "vmSize": "text",
  "osDiskType": [
    "1 = StandardHDD",
    "2 = StandardSSD",
    "4 = PremiumSSD"
  ],
  "virtualNetworkID": "text",
  "virtualNetworkName": "text",
  "subnetID": "text",
  "subnetName": "text",
  "imagePrepTool": [
    "0 = SysPrep",
    "1 = RASPrep"
  ],
  "computerName": "text",
  "ownerName": "text",
  "organization": "text",
  "domain": "text",
  "domainPassword": "text",
  "administrator": "text",
  "adminPassword": "text",
  "domainOrgUnit": "text"
}
{
  "id": 1,
  "adminCreate": "text",
  "adminLastMod": "text",
  "timeCreate": "2025-12-07T02:34:58.309Z",
  "timeLastMod": "2025-12-07T02:34:58.309Z",
  "objType": [
    "89 = AVDTemplate",
    "101 = RDSTemplate",
    "102 = VDITemplate"
  ],
  "name": "text",
  "siteId": 1,
  "description": "text",
  "providerId": 1,
  "templateType": [
    "0 = SingleSession",
    "1 = MultiSession"
  ],
  "vmId": "text",
  "cloneMethod": [
    "0 = FullClone",
    "1 = LinkedClone"
  ],
  "advanced": {
    "folder": {
      "folderName": "text",
      "folderId": "text",
      "subFolderName": "text"
    },
    "nativePool": {
      "nativePoolId": "text",
      "nativePoolName": "text",
      "hwgpu": true
    },
    "physicalHost": {
      "physicalHostId": "text",
      "physicalHostName": "text"
    },
    "multipleNIC": {
      "useSeperateNetworkInterface": true,
      "address": "text",
      "subnetMask": "text"
    },
    "aws": {
      "instanceType": "text",
      "storageDevices": [
        {
          "deviceName": "text",
          "volumeType": [
            "0 = gp2",
            "1 = gp3",
            "2 = io1",
            "3 = io2",
            "4 = standard"
          ],
          "size": 1,
          "maximumIOPS": 1,
          "throughput": 1
        }
      ]
    },
    "azure": {
      "resourceGroup": "text",
      "location": "text",
      "vmSize": "text",
      "osDiskType": [
        "1 = StandardHDD",
        "2 = StandardSSD",
        "4 = PremiumSSD"
      ],
      "virtualNetworkID": "text",
      "virtualNetworkName": "text",
      "subnet": {
        "subnetID": "text",
        "subnetName": "text"
      }
    }
  },
  "preparation": {
    "imagePrepTool": [
      "0 = SysPrep",
      "1 = RASPrep"
    ],
    "computerName": "text",
    "ownerName": "text",
    "organization": "text",
    "administrator": "text",
    "domain": "text",
    "domainOrgUnit": "text"
  },
  "inheritDefaultOptimizationSettings": true,
  "optimization": {
    "enableOptimization": true,
    "optimizationType": [
      "0 = Automatic",
      "1 = Manual"
    ],
    "windowsDefenderATP": {
      "winDefATPTurnOffOn": [
        "0 = TurnOffWindowsDefenderATP",
        "1 = TurnOnWindowsDefenderATP"
      ],
      "disableRealTimeProtection": true,
      "excludeFolders": [
        "text"
      ],
      "excludeProcesses": [
        "text"
      ],
      "excludeExtension": [
        "text"
      ]
    },
    "windowsComponents": {
      "windowsComponentsList": [
        {
          "type": [
            "0 = Predefined",
            "1 = Custom"
          ],
          "componentName": "text",
          "displayName": "text",
          "aliases": "text"
        }
      ]
    },
    "windowsDefenderATPEnabled": true,
    "windowsComponentsEnabled": true,
    "windowsServicesEnabled": true,
    "windowsScheduledTasksEnabled": true,
    "windowsAdvancedOptionsEnabled": true,
    "networkPerformanceEnabled": true,
    "registryEnabled": true,
    "visualEffectsEnabled": true,
    "diskCleanupEnabled": true,
    "customScriptEnabled": true,
    "windowsServices": {
      "windowsServicesList": [
        {
          "type": [
            "0 = Predefined",
            "1 = Custom"
          ],
          "serviceName": "text",
          "displayName": "text",
          "aliases": "text"
        }
      ]
    },
    "windowsAdvancedOptions": {
      "partialStartLayoutContent": "text",
      "hibernate": true,
      "teleCollection": true,
      "systemRestore": true,
      "additionalErrorReport": true,
      "tiles": true,
      "cortana": true,
      "microsoftConsumerExperience": true,
      "windowsTips": true,
      "commonProgramGroups": true,
      "partialStartMenu": true
    },
    "networkPerformance": {
      "dirCacheMax": 1,
      "dormantFileLimit": 1,
      "fileNotFoundCache": 1,
      "fileInfoCache": 1,
      "fileInfoCacheEnable": true,
      "directoryCacheEnable": true,
      "fileNotFoundCacheEnable": true,
      "dormantFileLimitEnable": true,
      "disableTCP": true,
      "disableIPv6CompEnable": true,
      "disableIPv6ToIPv4": true,
      "disableIsaTap": true
    },
    "customScript": {
      "arguments": "text",
      "command": "text",
      "initDir": "text",
      "user": "text"
    },
    "diskCleanup": {
      "cleanupWinSxSFolder": true,
      "cleanupSystemFiles": true,
      "cleanupTemporaryFileLogs": true,
      "removeOneDrive": true,
      "deleteUserProfiles": true
    },
    "visualEffects": {
      "visualEffectsTypes": [
        "0 = LetWindowsChooseWhatsBest",
        "1 = AdjustForBestAppearance",
        "2 = AdjustForBestPerformance",
        "3 = Custom"
      ],
      "animateControlSelectElements": true,
      "animateWindowsWhenMinimizingMaximizing": true,
      "animateTaskbar": true,
      "enablePeek": true,
      "fadeSlideMenus": true,
      "fadeSlideToolTips": true,
      "fadeOutMenuItems": true,
      "saveTaskbarThumbnail": true,
      "showShadowUnderMouse": true,
      "shadowUnderWindows": true,
      "thumbnailsInsteadOfIcons": true,
      "showTranslucentSelection": true,
      "showWindowsContentWhilstDragging": true,
      "slideOpenComboBoxes": true,
      "smoothEdgesScreenFonts": true,
      "smoothScrollListBoxes": true,
      "dropShadowsIcon": true
    },
    "windowsScheduledTasks": {
      "windowsScheduledTasksList": [
        {
          "task": "text",
          "location": "text",
          "type": [
            "0 = Folder",
            "1 = Task"
          ]
        }
      ]
    },
    "registry": {
      "registryList": [
        {
          "id": 1,
          "action": [
            "0 = Add",
            "1 = Modify",
            "2 = Delete"
          ],
          "registryName": "text",
          "dwordValue": 1,
          "displayName": "text",
          "hiveType": [
            "0 = HKEY_CURRENT_CONFIG",
            "1 = HKEY_USERS",
            "2 = HKEY_LOCAL_MACHINE",
            "3 = HKEY_CLASSES_ROOT"
          ],
          "path": "text",
          "regType": [
            "0 = REG_SZ",
            "1 = REG_DWORD",
            "2 = REG_QWORD",
            "3 = REG_MULTI_SZ",
            "4 = REG_EXPAND_SZ"
          ],
          "stringValue": "text"
        }
      ]
    },
    "uwpApps": {
      "allExcept": [
        "text"
      ],
      "followingPkgs": [
        "text"
      ],
      "removeType": [
        "0 = AllExcept",
        "1 = FollowingPkgs"
      ]
    }
  },
  "licenseKeys": {
    "licenseKeyType": [
      "0 = KMS",
      "1 = MAK"
    ],
    "keys": [
      {
        "licenseKey": "text",
        "keyLimit": 1
      }
    ]
  }
}

Get

get

Retrieve settings of a RAS Template.

Path parameters
idinteger · int32Required

The ID of a RAS Template for which to retrieve the information.

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/{id}
GET /api/VDI/Template/{id} HTTP/1.1
Host: 
Accept: */*
{
  "id": 1,
  "adminCreate": "text",
  "adminLastMod": "text",
  "timeCreate": "2025-12-07T02:34:58.309Z",
  "timeLastMod": "2025-12-07T02:34:58.309Z",
  "objType": [
    "89 = AVDTemplate",
    "101 = RDSTemplate",
    "102 = VDITemplate"
  ],
  "name": "text",
  "siteId": 1,
  "description": "text",
  "providerId": 1,
  "templateType": [
    "0 = SingleSession",
    "1 = MultiSession"
  ],
  "vmId": "text",
  "cloneMethod": [
    "0 = FullClone",
    "1 = LinkedClone"
  ],
  "advanced": {
    "folder": {
      "folderName": "text",
      "folderId": "text",
      "subFolderName": "text"
    },
    "nativePool": {
      "nativePoolId": "text",
      "nativePoolName": "text",
      "hwgpu": true
    },
    "physicalHost": {
      "physicalHostId": "text",
      "physicalHostName": "text"
    },
    "multipleNIC": {
      "useSeperateNetworkInterface": true,
      "address": "text",
      "subnetMask": "text"
    },
    "aws": {
      "instanceType": "text",
      "storageDevices": [
        {
          "deviceName": "text",
          "volumeType": [
            "0 = gp2",
            "1 = gp3",
            "2 = io1",
            "3 = io2",
            "4 = standard"
          ],
          "size": 1,
          "maximumIOPS": 1,
          "throughput": 1
        }
      ]
    },
    "azure": {
      "resourceGroup": "text",
      "location": "text",
      "vmSize": "text",
      "osDiskType": [
        "1 = StandardHDD",
        "2 = StandardSSD",
        "4 = PremiumSSD"
      ],
      "virtualNetworkID": "text",
      "virtualNetworkName": "text",
      "subnet": {
        "subnetID": "text",
        "subnetName": "text"
      }
    }
  },
  "preparation": {
    "imagePrepTool": [
      "0 = SysPrep",
      "1 = RASPrep"
    ],
    "computerName": "text",
    "ownerName": "text",
    "organization": "text",
    "administrator": "text",
    "domain": "text",
    "domainOrgUnit": "text"
  },
  "inheritDefaultOptimizationSettings": true,
  "optimization": {
    "enableOptimization": true,
    "optimizationType": [
      "0 = Automatic",
      "1 = Manual"
    ],
    "windowsDefenderATP": {
      "winDefATPTurnOffOn": [
        "0 = TurnOffWindowsDefenderATP",
        "1 = TurnOnWindowsDefenderATP"
      ],
      "disableRealTimeProtection": true,
      "excludeFolders": [
        "text"
      ],
      "excludeProcesses": [
        "text"
      ],
      "excludeExtension": [
        "text"
      ]
    },
    "windowsComponents": {
      "windowsComponentsList": [
        {
          "type": [
            "0 = Predefined",
            "1 = Custom"
          ],
          "componentName": "text",
          "displayName": "text",
          "aliases": "text"
        }
      ]
    },
    "windowsDefenderATPEnabled": true,
    "windowsComponentsEnabled": true,
    "windowsServicesEnabled": true,
    "windowsScheduledTasksEnabled": true,
    "windowsAdvancedOptionsEnabled": true,
    "networkPerformanceEnabled": true,
    "registryEnabled": true,
    "visualEffectsEnabled": true,
    "diskCleanupEnabled": true,
    "customScriptEnabled": true,
    "windowsServices": {
      "windowsServicesList": [
        {
          "type": [
            "0 = Predefined",
            "1 = Custom"
          ],
          "serviceName": "text",
          "displayName": "text",
          "aliases": "text"
        }
      ]
    },
    "windowsAdvancedOptions": {
      "partialStartLayoutContent": "text",
      "hibernate": true,
      "teleCollection": true,
      "systemRestore": true,
      "additionalErrorReport": true,
      "tiles": true,
      "cortana": true,
      "microsoftConsumerExperience": true,
      "windowsTips": true,
      "commonProgramGroups": true,
      "partialStartMenu": true
    },
    "networkPerformance": {
      "dirCacheMax": 1,
      "dormantFileLimit": 1,
      "fileNotFoundCache": 1,
      "fileInfoCache": 1,
      "fileInfoCacheEnable": true,
      "directoryCacheEnable": true,
      "fileNotFoundCacheEnable": true,
      "dormantFileLimitEnable": true,
      "disableTCP": true,
      "disableIPv6CompEnable": true,
      "disableIPv6ToIPv4": true,
      "disableIsaTap": true
    },
    "customScript": {
      "arguments": "text",
      "command": "text",
      "initDir": "text",
      "user": "text"
    },
    "diskCleanup": {
      "cleanupWinSxSFolder": true,
      "cleanupSystemFiles": true,
      "cleanupTemporaryFileLogs": true,
      "removeOneDrive": true,
      "deleteUserProfiles": true
    },
    "visualEffects": {
      "visualEffectsTypes": [
        "0 = LetWindowsChooseWhatsBest",
        "1 = AdjustForBestAppearance",
        "2 = AdjustForBestPerformance",
        "3 = Custom"
      ],
      "animateControlSelectElements": true,
      "animateWindowsWhenMinimizingMaximizing": true,
      "animateTaskbar": true,
      "enablePeek": true,
      "fadeSlideMenus": true,
      "fadeSlideToolTips": true,
      "fadeOutMenuItems": true,
      "saveTaskbarThumbnail": true,
      "showShadowUnderMouse": true,
      "shadowUnderWindows": true,
      "thumbnailsInsteadOfIcons": true,
      "showTranslucentSelection": true,
      "showWindowsContentWhilstDragging": true,
      "slideOpenComboBoxes": true,
      "smoothEdgesScreenFonts": true,
      "smoothScrollListBoxes": true,
      "dropShadowsIcon": true
    },
    "windowsScheduledTasks": {
      "windowsScheduledTasksList": [
        {
          "task": "text",
          "location": "text",
          "type": [
            "0 = Folder",
            "1 = Task"
          ]
        }
      ]
    },
    "registry": {
      "registryList": [
        {
          "id": 1,
          "action": [
            "0 = Add",
            "1 = Modify",
            "2 = Delete"
          ],
          "registryName": "text",
          "dwordValue": 1,
          "displayName": "text",
          "hiveType": [
            "0 = HKEY_CURRENT_CONFIG",
            "1 = HKEY_USERS",
            "2 = HKEY_LOCAL_MACHINE",
            "3 = HKEY_CLASSES_ROOT"
          ],
          "path": "text",
          "regType": [
            "0 = REG_SZ",
            "1 = REG_DWORD",
            "2 = REG_QWORD",
            "3 = REG_MULTI_SZ",
            "4 = REG_EXPAND_SZ"
          ],
          "stringValue": "text"
        }
      ]
    },
    "uwpApps": {
      "allExcept": [
        "text"
      ],
      "followingPkgs": [
        "text"
      ],
      "removeType": [
        "0 = AllExcept",
        "1 = FollowingPkgs"
      ]
    }
  },
  "licenseKeys": {
    "licenseKeyType": [
      "0 = KMS",
      "1 = MAK"
    ],
    "keys": [
      {
        "licenseKey": "text",
        "keyLimit": 1
      }
    ]
  }
}

Update

put

Modifies the settings of a RAS Template.

Path parameters
idinteger · int32Required

The ID of a RAS Template to modify.

Body
descriptionstring | nullableOptional

RAS Template Description.

folderNamestring | nullableOptional

Folder name where desktop VMs will be created.

folderIdstring | nullableOptional

The ID of a folder where desktop VMs will be created.

subFolderNamestring | nullableOptional

Subfolder name where desktop VMs will be created.

nativePoolIdstring | nullableOptional

The ID of the native pool where desktop VMs will be created.

nativePoolNamestring | nullableOptional

The name of the native pool where desktop VMs will be created.

hwgpuboolean | nullableOptional

Enable hardware acceleration graphics licensing support.

physicalHostIdstring | nullableOptional

The ID of a physical host where desktop VMs will be created.

physicalHostNamestring | nullableOptional

The name of a physical host where desktop VMs will be created.

useSeperateNetworkInterfaceboolean | nullableOptional

Use a separate network interface for LAN access.

addressstring | nullableOptional

The address of the network interface.

subnetMaskstring | nullableOptional

The subnet mask of the network interface.

instanceTypestring | nullableOptional

Instance type.

deviceNamestring | nullableOptional

Device name.

volumeTypestring · enumOptional

Volume type

Possible values:
sizeinteger · int64 | nullableOptional

Size (GiB).

maximumIOPSinteger · int64 | nullableOptional

Maximum IOPS.

throughputinteger · int64 | nullableOptional

Throughput (MB/s).

resourceGroupstring | nullableOptional

Resource group.

vmSizestring | nullableOptional

VM size.

osDiskTypestring · enumOptional

Volume type

Possible values:
virtualNetworkIDstring | nullableOptional

Virtual network ID.

virtualNetworkNamestring | nullableOptional

Virtual network name.

subnetIDstring | nullableOptional

Subnet ID.

subnetNamestring | nullableOptional

Subnet name.

imagePrepToolstring · enumOptional

Image preparation tool

Possible values:
computerNamestring | nullableOptional

The FQDN or IP address of the target VM.

ownerNamestring | nullableOptional

A desktop VM owner name (assigned to a VM by RASprep or Sysprep).

organizationstring | nullableOptional

Organization name (assigned to a VM by RASprep or Sysprep).

domainstring | nullableOptional

Domain or WorkGroup to join (assigned to a VM by RASprep or Sysprep).

domainPasswordstring | nullableOptional

The password of the domain administrator specified in the Administrator parameter.

administratorstring | nullableOptional

The administrator of the domain specified in the JoinDomain parameter.

adminPasswordstring | nullableOptional

The password of the administrator for the desktop VM (assigned to a VM by RASprep or Sysprep).

domainOrgUnitstring | nullableOptional

Domain Organization unit

inheritDefaultOptimizationSettingsboolean | nullableOptional

If true, default Optimization settings will be inherited.

Responses
204

No Content

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
put
/api/VDI/Template/{id}
PUT /api/VDI/Template/{id} HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 875

{
  "description": "text",
  "folderName": "text",
  "folderId": "text",
  "subFolderName": "text",
  "nativePoolId": "text",
  "nativePoolName": "text",
  "hwgpu": true,
  "physicalHostId": "text",
  "physicalHostName": "text",
  "useSeperateNetworkInterface": true,
  "address": "text",
  "subnetMask": "text",
  "instanceType": "text",
  "deviceName": "text",
  "volumeType": [
    "0 = gp2",
    "1 = gp3",
    "2 = io1",
    "3 = io2",
    "4 = standard"
  ],
  "size": 1,
  "maximumIOPS": 1,
  "throughput": 1,
  "resourceGroup": "text",
  "vmSize": "text",
  "osDiskType": [
    "1 = StandardHDD",
    "2 = StandardSSD",
    "4 = PremiumSSD"
  ],
  "virtualNetworkID": "text",
  "virtualNetworkName": "text",
  "subnetID": "text",
  "subnetName": "text",
  "imagePrepTool": [
    "0 = SysPrep",
    "1 = RASPrep"
  ],
  "computerName": "text",
  "ownerName": "text",
  "organization": "text",
  "domain": "text",
  "domainPassword": "text",
  "administrator": "text",
  "adminPassword": "text",
  "domainOrgUnit": "text",
  "inheritDefaultOptimizationSettings": true
}

No content

Delete

delete

Remove settings of a RAS Template.

Path parameters
idinteger · int32Required

The ID of a RAS Template for which to retrieve the information.

Responses
204

No Content

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
delete
/api/VDI/Template/{id}
DELETE /api/VDI/Template/{id} HTTP/1.1
Host: 
Accept: */*
{
  "id": 1,
  "adminCreate": "text",
  "adminLastMod": "text",
  "timeCreate": "2025-12-07T02:34:58.309Z",
  "timeLastMod": "2025-12-07T02:34:58.309Z",
  "objType": [
    "89 = AVDTemplate",
    "101 = RDSTemplate",
    "102 = VDITemplate"
  ],
  "name": "text",
  "siteId": 1,
  "description": "text",
  "providerId": 1,
  "templateType": [
    "0 = SingleSession",
    "1 = MultiSession"
  ],
  "vmId": "text",
  "cloneMethod": [
    "0 = FullClone",
    "1 = LinkedClone"
  ],
  "advanced": {
    "folder": {
      "folderName": "text",
      "folderId": "text",
      "subFolderName": "text"
    },
    "nativePool": {
      "nativePoolId": "text",
      "nativePoolName": "text",
      "hwgpu": true
    },
    "physicalHost": {
      "physicalHostId": "text",
      "physicalHostName": "text"
    },
    "multipleNIC": {
      "useSeperateNetworkInterface": true,
      "address": "text",
      "subnetMask": "text"
    },
    "aws": {
      "instanceType": "text",
      "storageDevices": [
        {
          "deviceName": "text",
          "volumeType": [
            "0 = gp2",
            "1 = gp3",
            "2 = io1",
            "3 = io2",
            "4 = standard"
          ],
          "size": 1,
          "maximumIOPS": 1,
          "throughput": 1
        }
      ]
    },
    "azure": {
      "resourceGroup": "text",
      "location": "text",
      "vmSize": "text",
      "osDiskType": [
        "1 = StandardHDD",
        "2 = StandardSSD",
        "4 = PremiumSSD"
      ],
      "virtualNetworkID": "text",
      "virtualNetworkName": "text",
      "subnet": {
        "subnetID": "text",
        "subnetName": "text"
      }
    }
  },
  "preparation": {
    "imagePrepTool": [
      "0 = SysPrep",
      "1 = RASPrep"
    ],
    "computerName": "text",
    "ownerName": "text",
    "organization": "text",
    "administrator": "text",
    "domain": "text",
    "domainOrgUnit": "text"
  },
  "inheritDefaultOptimizationSettings": true,
  "optimization": {
    "enableOptimization": true,
    "optimizationType": [
      "0 = Automatic",
      "1 = Manual"
    ],
    "windowsDefenderATP": {
      "winDefATPTurnOffOn": [
        "0 = TurnOffWindowsDefenderATP",
        "1 = TurnOnWindowsDefenderATP"
      ],
      "disableRealTimeProtection": true,
      "excludeFolders": [
        "text"
      ],
      "excludeProcesses": [
        "text"
      ],
      "excludeExtension": [
        "text"
      ]
    },
    "windowsComponents": {
      "windowsComponentsList": [
        {
          "type": [
            "0 = Predefined",
            "1 = Custom"
          ],
          "componentName": "text",
          "displayName": "text",
          "aliases": "text"
        }
      ]
    },
    "windowsDefenderATPEnabled": true,
    "windowsComponentsEnabled": true,
    "windowsServicesEnabled": true,
    "windowsScheduledTasksEnabled": true,
    "windowsAdvancedOptionsEnabled": true,
    "networkPerformanceEnabled": true,
    "registryEnabled": true,
    "visualEffectsEnabled": true,
    "diskCleanupEnabled": true,
    "customScriptEnabled": true,
    "windowsServices": {
      "windowsServicesList": [
        {
          "type": [
            "0 = Predefined",
            "1 = Custom"
          ],
          "serviceName": "text",
          "displayName": "text",
          "aliases": "text"
        }
      ]
    },
    "windowsAdvancedOptions": {
      "partialStartLayoutContent": "text",
      "hibernate": true,
      "teleCollection": true,
      "systemRestore": true,
      "additionalErrorReport": true,
      "tiles": true,
      "cortana": true,
      "microsoftConsumerExperience": true,
      "windowsTips": true,
      "commonProgramGroups": true,
      "partialStartMenu": true
    },
    "networkPerformance": {
      "dirCacheMax": 1,
      "dormantFileLimit": 1,
      "fileNotFoundCache": 1,
      "fileInfoCache": 1,
      "fileInfoCacheEnable": true,
      "directoryCacheEnable": true,
      "fileNotFoundCacheEnable": true,
      "dormantFileLimitEnable": true,
      "disableTCP": true,
      "disableIPv6CompEnable": true,
      "disableIPv6ToIPv4": true,
      "disableIsaTap": true
    },
    "customScript": {
      "arguments": "text",
      "command": "text",
      "initDir": "text",
      "user": "text"
    },
    "diskCleanup": {
      "cleanupWinSxSFolder": true,
      "cleanupSystemFiles": true,
      "cleanupTemporaryFileLogs": true,
      "removeOneDrive": true,
      "deleteUserProfiles": true
    },
    "visualEffects": {
      "visualEffectsTypes": [
        "0 = LetWindowsChooseWhatsBest",
        "1 = AdjustForBestAppearance",
        "2 = AdjustForBestPerformance",
        "3 = Custom"
      ],
      "animateControlSelectElements": true,
      "animateWindowsWhenMinimizingMaximizing": true,
      "animateTaskbar": true,
      "enablePeek": true,
      "fadeSlideMenus": true,
      "fadeSlideToolTips": true,
      "fadeOutMenuItems": true,
      "saveTaskbarThumbnail": true,
      "showShadowUnderMouse": true,
      "shadowUnderWindows": true,
      "thumbnailsInsteadOfIcons": true,
      "showTranslucentSelection": true,
      "showWindowsContentWhilstDragging": true,
      "slideOpenComboBoxes": true,
      "smoothEdgesScreenFonts": true,
      "smoothScrollListBoxes": true,
      "dropShadowsIcon": true
    },
    "windowsScheduledTasks": {
      "windowsScheduledTasksList": [
        {
          "task": "text",
          "location": "text",
          "type": [
            "0 = Folder",
            "1 = Task"
          ]
        }
      ]
    },
    "registry": {
      "registryList": [
        {
          "id": 1,
          "action": [
            "0 = Add",
            "1 = Modify",
            "2 = Delete"
          ],
          "registryName": "text",
          "dwordValue": 1,
          "displayName": "text",
          "hiveType": [
            "0 = HKEY_CURRENT_CONFIG",
            "1 = HKEY_USERS",
            "2 = HKEY_LOCAL_MACHINE",
            "3 = HKEY_CLASSES_ROOT"
          ],
          "path": "text",
          "regType": [
            "0 = REG_SZ",
            "1 = REG_DWORD",
            "2 = REG_QWORD",
            "3 = REG_MULTI_SZ",
            "4 = REG_EXPAND_SZ"
          ],
          "stringValue": "text"
        }
      ]
    },
    "uwpApps": {
      "allExcept": [
        "text"
      ],
      "followingPkgs": [
        "text"
      ],
      "removeType": [
        "0 = AllExcept",
        "1 = FollowingPkgs"
      ]
    }
  },
  "licenseKeys": {
    "licenseKeyType": [
      "0 = KMS",
      "1 = MAK"
    ],
    "keys": [
      {
        "licenseKey": "text",
        "keyLimit": 1
      }
    ]
  }
}

List

get

Retrieves Registry.

Path parameters
idinteger · int32Required

The ID of the optimization setting to retrieve the registry.

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/{id}/Optimization/Registry
GET /api/VDI/Template/{id}/Optimization/Registry HTTP/1.1
Host: 
Accept: */*
[
  {
    "id": 1,
    "action": [
      "0 = Add",
      "1 = Modify",
      "2 = Delete"
    ],
    "registryName": "text",
    "dwordValue": 1,
    "displayName": "text",
    "hiveType": [
      "0 = HKEY_CURRENT_CONFIG",
      "1 = HKEY_USERS",
      "2 = HKEY_LOCAL_MACHINE",
      "3 = HKEY_CLASSES_ROOT"
    ],
    "path": "text",
    "regType": [
      "0 = REG_SZ",
      "1 = REG_DWORD",
      "2 = REG_QWORD",
      "3 = REG_MULTI_SZ",
      "4 = REG_EXPAND_SZ"
    ],
    "stringValue": "text"
  }
]

Add

post

Adds Registry to the optimization.

Path parameters
idinteger · int32Required

The ID of the optimization to retrieve the registry.

Body
actionstring · enumOptional

The action type for add registry entry

Possible values:
registryNamestring | nullableOptional

Name

dwordValueinteger · int32Optional

Value

displayNamestring | nullableRequired

Display Name

hiveTypestring · enumOptional

The hive type for add registry entry

Possible values:
pathstring | nullableRequired

Path

regTypestring · enumOptional

The value type for add registry entry

Possible values:
stringValuestring | nullableOptional

String Value

Responses
201

Created

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
409

Conflict

application/json; api-version=1.0
post
/api/VDI/Template/{id}/Optimization/Registry
POST /api/VDI/Template/{id}/Optimization/Registry HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 342

{
  "action": [
    "0 = Add",
    "1 = Modify",
    "2 = Delete"
  ],
  "registryName": "text",
  "dwordValue": 1,
  "displayName": "text",
  "hiveType": [
    "0 = HKEY_CURRENT_CONFIG",
    "1 = HKEY_USERS",
    "2 = HKEY_LOCAL_MACHINE",
    "3 = HKEY_CLASSES_ROOT"
  ],
  "path": "text",
  "regType": [
    "0 = REG_SZ",
    "1 = REG_DWORD",
    "2 = REG_QWORD",
    "3 = REG_MULTI_SZ",
    "4 = REG_EXPAND_SZ"
  ],
  "stringValue": "text"
}

No content

Delete

delete

Remove Registry Image Optimization Object.

Path parameters
idinteger · int32Required

Id Of the Optimization Settings to remove the registry object.

Body
registryIdinteger · int32Required

Registry Id

Responses
204

No Content

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
delete
/api/VDI/Template/{id}/Optimization/Registry
DELETE /api/VDI/Template/{id}/Optimization/Registry HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 16

{
  "registryId": 1
}

No content

Recreate Desktops

post

Recreate All Desktops or a specific Desktop.

Path parameters
idinteger · int32Required

The ID of the target RAS Template.

Query parameters
vdiDesktopIdstringOptional

The ID of a desktop VM to be recreated (optional).

Responses
204

No Content

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
post
/api/VDI/Template/{id}/RecreateDesktops
POST /api/VDI/Template/{id}/RecreateDesktops HTTP/1.1
Host: 
Accept: */*

No content

List

get

Retrieve a list of templates with status information.

Query parameters
SiteIdinteger · int32Optional

Site ID for which the template with status information will be retrieved (optional)

NamestringOptional

Filter the result by name (optional)

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/Status
GET /api/VDI/Template/Status HTTP/1.1
Host: 
Accept: */*
[
  {
    "id": "text",
    "siteId": 1,
    "agentState": [
      "0 = OK",
      "1 = EnumSessionsFailed",
      "2 = RDSRoleDisabled",
      "3 = MaxNonCompletedSessions",
      "4 = RASScheduleInProgress",
      "5 = ConnectionFailed",
      "6 = InvalidCredentials",
      "7 = NeedsSysprep",
      "8 = SysPrepInProgress",
      "9 = CloningFailed",
      "10 = Synchronising",
      "13 = LogonDrainUntilRestart",
      "14 = LogonDrain",
      "15 = LogonDisabled",
      "16 = ForcedDisconnect",
      "17 = CloningCanceled",
      "18 = RASprepInProgress",
      "20 = InstallingRDSRole",
      "21 = RebootPending",
      "22 = PortMismatch",
      "23 = NeedsDowngrade",
      "24 = NotApplied",
      "25 = CloningInProgress",
      "26 = MarkedForDeletion",
      "27 = StandBy",
      "28 = UnsupportedVDIType",
      "29 = FreeESXLicenseNotSupported",
      "30 = ManagedESXNotSupported",
      "32 = InvalidHostVersion",
      "33 = NotJoined",
      "35 = LicenseExpired",
      "36 = JoinBroken",
      "37 = InUse",
      "38 = NotInUse",
      "39 = Unsupported",
      "40 = NoAvailableGateways",
      "41 = EnrollServerNotInitialized",
      "42 = EnrollmentUnavailable",
      "43 = InvalidCAConfig",
      "44 = InvalidEAUserCredentials",
      "45 = InvalidESSettings",
      "46 = FSLogixNotAvail",
      "47 = NoDevices",
      "48 = NeedsAttention",
      "49 = ImageOptimizationPending",
      "50 = ImageOptimization",
      "51 = Unavailable",
      "52 = UnderConstruction",
      "53 = Broken",
      "54 = NonRAS",
      "55 = Provisioning",
      "56 = Invalid",
      "57 = FSLogixNeedsUpdate",
      "58 = NoMembersAvailable",
      "59 = MembersNeedUpdate",
      "60 = FailedPerfCounters",
      "61 = PendingRecreation",
      "62 = RemovingMembers",
      "63 = AddingMembers",
      "64 = DeleteInProgress",
      "66 = JoiningToHostPool",
      "67 = AutoUpgradeInProgress",
      "68 = AutoUpgradeInitiated",
      "-8 = AutoUpgradeLimitReached",
      "-7 = AutoUpgradeFailed",
      "-6 = Unknown",
      "-5 = NeedsUpdate",
      "-4 = NotVerified",
      "-3 = ServerDeleted",
      "-2 = DisabledFromSettings",
      "-1 = Disconnected"
    ],
    "serverType": [
      "1 = RDSHost",
      "2 = Provider",
      "3 = Gateway",
      "4 = Guest",
      "7 = PA",
      "9 = Site",
      "16 = RDSGroup",
      "25 = HALBDevice",
      "45 = TenantBroker",
      "46 = Enrollment",
      "51 = HALB",
      "64 = AVDWorkspace",
      "65 = AVDHostPool",
      "66 = AVDTemplate",
      "67 = AVDHost",
      "95 = VDITemplateVersion",
      "96 = AVDTemplateVersion",
      "97 = RDSTemplateVersion",
      "107 = RDSTemplate",
      "108 = VDITemplate",
      "2013 = VDIHost",
      "-1 = All"
    ],
    "name": "text",
    "providerId": 1,
    "desktopId": "text",
    "status": [
      "0 = Unknown",
      "1 = CreatingVM",
      "2 = CreateVMFailed",
      "3 = PushingAgent",
      "4 = PushAgentFailed",
      "5 = Configuring",
      "6 = ConfigureFailed",
      "7 = Converting",
      "8 = ConvertFailed",
      "9 = Creating",
      "10 = Created",
      "11 = Deleting",
      "12 = DeleteFailed",
      "13 = Deleted",
      "14 = Failed",
      "15 = EnteringMaintenance",
      "16 = ExitingMaintenance",
      "17 = Maintenance",
      "18 = CloningInProgress",
      "19 = NeedsUpdate",
      "20 = Broken",
      "21 = CreatingVersion"
    ],
    "powerState": [
      "0 = Unknown",
      "1 = PoweringOn",
      "2 = PoweredOn",
      "4 = PoweringOff",
      "8 = PoweredOff",
      "16 = Suspending",
      "32 = Suspended",
      "64 = FailedToCreate",
      "512 = Sysprep",
      "1024 = Cloning",
      "2048 = Deleting",
      "4096 = Rasprep",
      "4097 = Connected",
      "4098 = Disconnected"
    ],
    "agentVer": "text",
    "templateHasClones": true,
    "agentStatus": [
      "0 = OK",
      "1 = EnumSessionsFailed",
      "2 = RDSRoleDisabled",
      "3 = MaxNonCompletedSessions",
      "4 = RASScheduleInProgress",
      "5 = ConnectionFailed",
      "6 = InvalidCredentials",
      "7 = NeedsSysprep",
      "8 = SysPrepInProgress",
      "9 = CloningFailed",
      "10 = Synchronising",
      "13 = LogonDrainUntilRestart",
      "14 = LogonDrain",
      "15 = LogonDisabled",
      "16 = ForcedDisconnect",
      "17 = CloningCanceled",
      "18 = RASprepInProgress",
      "20 = InstallingRDSRole",
      "21 = RebootPending",
      "22 = PortMismatch",
      "23 = NeedsDowngrade",
      "24 = NotApplied",
      "25 = CloningInProgress",
      "26 = MarkedForDeletion",
      "27 = StandBy",
      "28 = UnsupportedVDIType",
      "29 = FreeESXLicenseNotSupported",
      "30 = ManagedESXNotSupported",
      "32 = InvalidHostVersion",
      "33 = NotJoined",
      "35 = LicenseExpired",
      "36 = JoinBroken",
      "37 = InUse",
      "38 = NotInUse",
      "39 = Unsupported",
      "40 = NoAvailableGateways",
      "41 = EnrollServerNotInitialized",
      "42 = EnrollmentUnavailable",
      "43 = InvalidCAConfig",
      "44 = InvalidEAUserCredentials",
      "45 = InvalidESSettings",
      "46 = FSLogixNotAvail",
      "47 = NoDevices",
      "48 = NeedsAttention",
      "49 = ImageOptimizationPending",
      "50 = ImageOptimization",
      "51 = Unavailable",
      "52 = UnderConstruction",
      "53 = Broken",
      "54 = NonRAS",
      "55 = Provisioning",
      "56 = Invalid",
      "57 = FSLogixNeedsUpdate",
      "58 = NoMembersAvailable",
      "59 = MembersNeedUpdate",
      "60 = FailedPerfCounters",
      "61 = PendingRecreation",
      "62 = RemovingMembers",
      "63 = AddingMembers",
      "64 = DeleteInProgress",
      "66 = JoiningToHostPool",
      "67 = AutoUpgradeInProgress",
      "68 = AutoUpgradeInitiated",
      "-8 = AutoUpgradeLimitReached",
      "-7 = AutoUpgradeFailed",
      "-6 = Unknown",
      "-5 = NeedsUpdate",
      "-4 = NotVerified",
      "-3 = ServerDeleted",
      "-2 = DisabledFromSettings",
      "-1 = Disconnected"
    ],
    "distribution": [
      "0 = Unknown",
      "1 = Distributing",
      "2 = DistributionFailed",
      "4 = OK",
      "8 = RemovingProvider",
      "16 = NeedsMigration",
      "32 = DeliveredFromSource",
      "64 = ReceivedByTarget",
      "128 = Deleting"
    ],
    "templateVMExist": true
  }
]

Get

get

Retrieve the template status information.

Path parameters
idinteger · int32Required

Template ID

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/{id}/Status
GET /api/VDI/Template/{id}/Status HTTP/1.1
Host: 
Accept: */*
{
  "id": "text",
  "siteId": 1,
  "agentState": [
    "0 = OK",
    "1 = EnumSessionsFailed",
    "2 = RDSRoleDisabled",
    "3 = MaxNonCompletedSessions",
    "4 = RASScheduleInProgress",
    "5 = ConnectionFailed",
    "6 = InvalidCredentials",
    "7 = NeedsSysprep",
    "8 = SysPrepInProgress",
    "9 = CloningFailed",
    "10 = Synchronising",
    "13 = LogonDrainUntilRestart",
    "14 = LogonDrain",
    "15 = LogonDisabled",
    "16 = ForcedDisconnect",
    "17 = CloningCanceled",
    "18 = RASprepInProgress",
    "20 = InstallingRDSRole",
    "21 = RebootPending",
    "22 = PortMismatch",
    "23 = NeedsDowngrade",
    "24 = NotApplied",
    "25 = CloningInProgress",
    "26 = MarkedForDeletion",
    "27 = StandBy",
    "28 = UnsupportedVDIType",
    "29 = FreeESXLicenseNotSupported",
    "30 = ManagedESXNotSupported",
    "32 = InvalidHostVersion",
    "33 = NotJoined",
    "35 = LicenseExpired",
    "36 = JoinBroken",
    "37 = InUse",
    "38 = NotInUse",
    "39 = Unsupported",
    "40 = NoAvailableGateways",
    "41 = EnrollServerNotInitialized",
    "42 = EnrollmentUnavailable",
    "43 = InvalidCAConfig",
    "44 = InvalidEAUserCredentials",
    "45 = InvalidESSettings",
    "46 = FSLogixNotAvail",
    "47 = NoDevices",
    "48 = NeedsAttention",
    "49 = ImageOptimizationPending",
    "50 = ImageOptimization",
    "51 = Unavailable",
    "52 = UnderConstruction",
    "53 = Broken",
    "54 = NonRAS",
    "55 = Provisioning",
    "56 = Invalid",
    "57 = FSLogixNeedsUpdate",
    "58 = NoMembersAvailable",
    "59 = MembersNeedUpdate",
    "60 = FailedPerfCounters",
    "61 = PendingRecreation",
    "62 = RemovingMembers",
    "63 = AddingMembers",
    "64 = DeleteInProgress",
    "66 = JoiningToHostPool",
    "67 = AutoUpgradeInProgress",
    "68 = AutoUpgradeInitiated",
    "-8 = AutoUpgradeLimitReached",
    "-7 = AutoUpgradeFailed",
    "-6 = Unknown",
    "-5 = NeedsUpdate",
    "-4 = NotVerified",
    "-3 = ServerDeleted",
    "-2 = DisabledFromSettings",
    "-1 = Disconnected"
  ],
  "serverType": [
    "1 = RDSHost",
    "2 = Provider",
    "3 = Gateway",
    "4 = Guest",
    "7 = PA",
    "9 = Site",
    "16 = RDSGroup",
    "25 = HALBDevice",
    "45 = TenantBroker",
    "46 = Enrollment",
    "51 = HALB",
    "64 = AVDWorkspace",
    "65 = AVDHostPool",
    "66 = AVDTemplate",
    "67 = AVDHost",
    "95 = VDITemplateVersion",
    "96 = AVDTemplateVersion",
    "97 = RDSTemplateVersion",
    "107 = RDSTemplate",
    "108 = VDITemplate",
    "2013 = VDIHost",
    "-1 = All"
  ],
  "name": "text",
  "providerId": 1,
  "desktopId": "text",
  "status": [
    "0 = Unknown",
    "1 = CreatingVM",
    "2 = CreateVMFailed",
    "3 = PushingAgent",
    "4 = PushAgentFailed",
    "5 = Configuring",
    "6 = ConfigureFailed",
    "7 = Converting",
    "8 = ConvertFailed",
    "9 = Creating",
    "10 = Created",
    "11 = Deleting",
    "12 = DeleteFailed",
    "13 = Deleted",
    "14 = Failed",
    "15 = EnteringMaintenance",
    "16 = ExitingMaintenance",
    "17 = Maintenance",
    "18 = CloningInProgress",
    "19 = NeedsUpdate",
    "20 = Broken",
    "21 = CreatingVersion"
  ],
  "powerState": [
    "0 = Unknown",
    "1 = PoweringOn",
    "2 = PoweredOn",
    "4 = PoweringOff",
    "8 = PoweredOff",
    "16 = Suspending",
    "32 = Suspended",
    "64 = FailedToCreate",
    "512 = Sysprep",
    "1024 = Cloning",
    "2048 = Deleting",
    "4096 = Rasprep",
    "4097 = Connected",
    "4098 = Disconnected"
  ],
  "agentVer": "text",
  "templateHasClones": true,
  "agentStatus": [
    "0 = OK",
    "1 = EnumSessionsFailed",
    "2 = RDSRoleDisabled",
    "3 = MaxNonCompletedSessions",
    "4 = RASScheduleInProgress",
    "5 = ConnectionFailed",
    "6 = InvalidCredentials",
    "7 = NeedsSysprep",
    "8 = SysPrepInProgress",
    "9 = CloningFailed",
    "10 = Synchronising",
    "13 = LogonDrainUntilRestart",
    "14 = LogonDrain",
    "15 = LogonDisabled",
    "16 = ForcedDisconnect",
    "17 = CloningCanceled",
    "18 = RASprepInProgress",
    "20 = InstallingRDSRole",
    "21 = RebootPending",
    "22 = PortMismatch",
    "23 = NeedsDowngrade",
    "24 = NotApplied",
    "25 = CloningInProgress",
    "26 = MarkedForDeletion",
    "27 = StandBy",
    "28 = UnsupportedVDIType",
    "29 = FreeESXLicenseNotSupported",
    "30 = ManagedESXNotSupported",
    "32 = InvalidHostVersion",
    "33 = NotJoined",
    "35 = LicenseExpired",
    "36 = JoinBroken",
    "37 = InUse",
    "38 = NotInUse",
    "39 = Unsupported",
    "40 = NoAvailableGateways",
    "41 = EnrollServerNotInitialized",
    "42 = EnrollmentUnavailable",
    "43 = InvalidCAConfig",
    "44 = InvalidEAUserCredentials",
    "45 = InvalidESSettings",
    "46 = FSLogixNotAvail",
    "47 = NoDevices",
    "48 = NeedsAttention",
    "49 = ImageOptimizationPending",
    "50 = ImageOptimization",
    "51 = Unavailable",
    "52 = UnderConstruction",
    "53 = Broken",
    "54 = NonRAS",
    "55 = Provisioning",
    "56 = Invalid",
    "57 = FSLogixNeedsUpdate",
    "58 = NoMembersAvailable",
    "59 = MembersNeedUpdate",
    "60 = FailedPerfCounters",
    "61 = PendingRecreation",
    "62 = RemovingMembers",
    "63 = AddingMembers",
    "64 = DeleteInProgress",
    "66 = JoiningToHostPool",
    "67 = AutoUpgradeInProgress",
    "68 = AutoUpgradeInitiated",
    "-8 = AutoUpgradeLimitReached",
    "-7 = AutoUpgradeFailed",
    "-6 = Unknown",
    "-5 = NeedsUpdate",
    "-4 = NotVerified",
    "-3 = ServerDeleted",
    "-2 = DisabledFromSettings",
    "-1 = Disconnected"
  ],
  "distribution": [
    "0 = Unknown",
    "1 = Distributing",
    "2 = DistributionFailed",
    "4 = OK",
    "8 = RemovingProvider",
    "16 = NeedsMigration",
    "32 = DeliveredFromSource",
    "64 = ReceivedByTarget",
    "128 = Deleting"
  ],
  "templateVMExist": true
}

Get Versions By Name

get

Retrieve a list of template's versions.

Query parameters
SiteIdinteger · int32Optional

Site ID for which the template with version information will be retrieved (optional)

NamestringOptional

Filter the result by name (optional)

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/Version
GET /api/VDI/Template/Version HTTP/1.1
Host: 
Accept: */*
[
  {
    "adminCreate": "text",
    "adminLastMod": "text",
    "timeCreate": "2025-12-07T02:34:58.309Z",
    "timeLastMod": "2025-12-07T02:34:58.309Z",
    "name": "text",
    "id": 1,
    "templateId": 1,
    "description": "text"
  }
]

Get Versions

get

Retrieve a list of template's versions.

Path parameters
idinteger · int32Required

Template ID

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/{id}/Version
GET /api/VDI/Template/{id}/Version HTTP/1.1
Host: 
Accept: */*
[
  {
    "adminCreate": "text",
    "adminLastMod": "text",
    "timeCreate": "2025-12-07T02:34:58.309Z",
    "timeLastMod": "2025-12-07T02:34:58.309Z",
    "name": "text",
    "id": 1,
    "templateId": 1,
    "description": "text"
  }
]

Update Version

put

Modify properties of a RAS Template version.

Path parameters
idinteger · int32Required

The ID of a RAS Template

VersionIdinteger · int32Required

The ID of a RAS Template Version

Body
newNamestring | nullableOptional

Template version name.

descriptionstring | nullableOptional

Template version description

Responses
204

No Content

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
put
/api/VDI/Template/{id}/Version/{VersionId}
PUT /api/VDI/Template/{id}/Version/{VersionId} HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 39

{
  "newName": "text",
  "description": "text"
}

No content

Delete Version

delete

Remove settings of a RAS Template version.

Path parameters
idinteger · int32Required

The ID of a RAS Template

VersionIdinteger · int32Required

The ID of a RAS Template Version

Responses
204

No Content

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
delete
/api/VDI/Template/{id}/Version/{VersionId}
DELETE /api/VDI/Template/{id}/Version/{VersionId} HTTP/1.1
Host: 
Accept: */*
{
  "adminCreate": "text",
  "adminLastMod": "text",
  "timeCreate": "2025-12-07T02:34:58.309Z",
  "timeLastMod": "2025-12-07T02:34:58.309Z",
  "name": "text",
  "id": 1,
  "templateId": 1,
  "description": "text"
}

List

get

Retrieve Windows Component Custom

Path parameters
idinteger · int32Required

The ID of the optimization setting to retrieve the windows component custom list.

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/{id}/Optimization/WindowsComponent
GET /api/VDI/Template/{id}/Optimization/WindowsComponent HTTP/1.1
Host: 
Accept: */*
[
  {
    "type": [
      "0 = Predefined",
      "1 = Custom"
    ],
    "componentName": "text",
    "displayName": "text",
    "aliases": "text"
  }
]

Add

post

Adds a Windows Component Custom to optimization.

Path parameters
idinteger · int32Required

The ID of the Optimization settings to add the windows component custom.

Body
aliasesstring | nullableOptional

Windows Components Alias

displayNamestring | nullableOptional

Windows Components Diplay Name

componentNamestring | nullableOptional

Windows Components Name

Responses
201

Created

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
409

Conflict

application/json; api-version=1.0
post
/api/VDI/Template/{id}/Optimization/WindowsComponent
POST /api/VDI/Template/{id}/Optimization/WindowsComponent HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 62

{
  "aliases": "text",
  "displayName": "text",
  "componentName": "text"
}

No content

Delete

delete

Removes Windows Component Custom From Optimization.

Path parameters
idinteger · int32Required

The ID of the optimization setting to remove the windows component custom.

Body
componentNamestring | nullableOptional

Windows Component Name

Responses
204

No Content

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
delete
/api/VDI/Template/{id}/Optimization/WindowsComponent
DELETE /api/VDI/Template/{id}/Optimization/WindowsComponent HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 24

{
  "componentName": "text"
}

No content

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
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/{id}/Optimization/WindowsScheduledTask
GET /api/VDI/Template/{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

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
409

Conflict

application/json; api-version=1.0
post
/api/VDI/Template/{id}/Optimization/WindowsScheduledTask
POST /api/VDI/Template/{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

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
delete
/api/VDI/Template/{id}/Optimization/WindowsScheduledTask
DELETE /api/VDI/Template/{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

List

get

Retrieve Windows Service Custom

Path parameters
idinteger · int32Required

The ID of the optimization setting to retrieve the windows service custom list.

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/{id}/Optimization/WindowsService
GET /api/VDI/Template/{id}/Optimization/WindowsService HTTP/1.1
Host: 
Accept: */*
[
  {
    "type": [
      "0 = Predefined",
      "1 = Custom"
    ],
    "serviceName": "text",
    "displayName": "text",
    "aliases": "text"
  }
]

Add

post

Adds a Windows Service Custom to optimization.

Path parameters
idinteger · int32Required

The ID of the Optimization settings to add the windows services custom.

Body
aliasesstring | nullableOptional

Windows Services Alias

displayNamestring | nullableOptional

Windows Services Diplay Name

serviceNamestring | nullableOptional

Windows Service Name

Responses
201

Created

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
409

Conflict

application/json; api-version=1.0
post
/api/VDI/Template/{id}/Optimization/WindowsService
POST /api/VDI/Template/{id}/Optimization/WindowsService HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 60

{
  "aliases": "text",
  "displayName": "text",
  "serviceName": "text"
}

No content

Delete

delete

Removes Windows Service Custom From Optimization.

Path parameters
idinteger · int32Required

The ID of the optimization setting to remove the windows Service custom.

Body
serviceNamestring | nullableOptional

Windows Service Name

Responses
204

No Content

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
delete
/api/VDI/Template/{id}/Optimization/WindowsService
DELETE /api/VDI/Template/{id}/Optimization/WindowsService HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 22

{
  "serviceName": "text"
}

No content

Get Version Status

get

Retrieve a status of a template version.

Path parameters
VersionIdinteger · int32Required

Template Version ID

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/VersionStatus/{VersionId}
GET /api/VDI/Template/VersionStatus/{VersionId} HTTP/1.1
Host: 
Accept: */*
[
  {
    "id": 1,
    "agentVersion": "text",
    "parentID": 1,
    "status": [
      "0 = NotCreated",
      "1 = Creating",
      "2 = OK",
      "3 = FailedToCreate",
      "4 = Deleting",
      "5 = DeletionPending",
      "6 = DeletingClones",
      "-1 = Unknown"
    ],
    "templateID": 1,
    "versionType": 1
  }
]

Get Version Status List By Template ID

get

Retrieve a list of a template's version statuses.

Path parameters
idinteger · int32Required

Template ID

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/{id}/VersionStatus
GET /api/VDI/Template/{id}/VersionStatus HTTP/1.1
Host: 
Accept: */*
[
  {
    "id": 1,
    "agentVersion": "text",
    "parentID": 1,
    "status": [
      "0 = NotCreated",
      "1 = Creating",
      "2 = OK",
      "3 = FailedToCreate",
      "4 = Deleting",
      "5 = DeletionPending",
      "6 = DeletingClones",
      "-1 = Unknown"
    ],
    "templateID": 1,
    "versionType": 1
  }
]

Get

get

Retrieve the list RAS Template license keys.

Path parameters
idinteger · int32Required

The ID of a RAS Template to obtain information from.

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/{id}/LicenseKey
GET /api/VDI/Template/{id}/LicenseKey HTTP/1.1
Host: 
Accept: */*
{
  "licenseKeyType": [
    "0 = KMS",
    "1 = MAK"
  ],
  "keys": [
    {
      "licenseKey": "text",
      "keyLimit": 1
    }
  ]
}

Add

post

Modify properties of a RAS Template license key.

Path parameters
idinteger · int32Required

The ID of a RAS Template to modify.

Body

Add a license key to the Template license keys list

keystring | nullableRequired

The license key.

keyLimitinteger · int32Required

The max limit for the license key.

Responses
201

Created

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
post
/api/VDI/Template/{id}/LicenseKey
POST /api/VDI/Template/{id}/LicenseKey HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 27

{
  "key": "text",
  "keyLimit": 1
}

No content

Delete

delete

Delete the specified license key info from the specified RAS Template configuration.

Path parameters
idinteger · int32Required

The ID of the RAS Template to remove license key from.

Body

Remove a license key from the Template license keys list

keystring | nullableRequired

The license key to remove.

Responses
204

No Content

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
delete
/api/VDI/Template/{id}/LicenseKey
DELETE /api/VDI/Template/{id}/LicenseKey HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 14

{
  "key": "text"
}

No content

Get

get

Retrieve Image Optimization Settings

Path parameters
idinteger · int32Required

Retrieve the Image Optimization by id

Responses
200

Success

application/json; api-version=1.0
401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
get
/api/VDI/Template/{id}/Optimization
GET /api/VDI/Template/{id}/Optimization HTTP/1.1
Host: 
Accept: */*
{
  "enableOptimization": true,
  "optimizationType": [
    "0 = Automatic",
    "1 = Manual"
  ],
  "windowsDefenderATP": {
    "winDefATPTurnOffOn": [
      "0 = TurnOffWindowsDefenderATP",
      "1 = TurnOnWindowsDefenderATP"
    ],
    "disableRealTimeProtection": true,
    "excludeFolders": [
      "text"
    ],
    "excludeProcesses": [
      "text"
    ],
    "excludeExtension": [
      "text"
    ]
  },
  "windowsComponents": {
    "windowsComponentsList": [
      {
        "type": [
          "0 = Predefined",
          "1 = Custom"
        ],
        "componentName": "text",
        "displayName": "text",
        "aliases": "text"
      }
    ]
  },
  "windowsDefenderATPEnabled": true,
  "windowsComponentsEnabled": true,
  "windowsServicesEnabled": true,
  "windowsScheduledTasksEnabled": true,
  "windowsAdvancedOptionsEnabled": true,
  "networkPerformanceEnabled": true,
  "registryEnabled": true,
  "visualEffectsEnabled": true,
  "diskCleanupEnabled": true,
  "customScriptEnabled": true,
  "windowsServices": {
    "windowsServicesList": [
      {
        "type": [
          "0 = Predefined",
          "1 = Custom"
        ],
        "serviceName": "text",
        "displayName": "text",
        "aliases": "text"
      }
    ]
  },
  "windowsAdvancedOptions": {
    "partialStartLayoutContent": "text",
    "hibernate": true,
    "teleCollection": true,
    "systemRestore": true,
    "additionalErrorReport": true,
    "tiles": true,
    "cortana": true,
    "microsoftConsumerExperience": true,
    "windowsTips": true,
    "commonProgramGroups": true,
    "partialStartMenu": true
  },
  "networkPerformance": {
    "dirCacheMax": 1,
    "dormantFileLimit": 1,
    "fileNotFoundCache": 1,
    "fileInfoCache": 1,
    "fileInfoCacheEnable": true,
    "directoryCacheEnable": true,
    "fileNotFoundCacheEnable": true,
    "dormantFileLimitEnable": true,
    "disableTCP": true,
    "disableIPv6CompEnable": true,
    "disableIPv6ToIPv4": true,
    "disableIsaTap": true
  },
  "customScript": {
    "arguments": "text",
    "command": "text",
    "initDir": "text",
    "user": "text"
  },
  "diskCleanup": {
    "cleanupWinSxSFolder": true,
    "cleanupSystemFiles": true,
    "cleanupTemporaryFileLogs": true,
    "removeOneDrive": true,
    "deleteUserProfiles": true
  },
  "visualEffects": {
    "visualEffectsTypes": [
      "0 = LetWindowsChooseWhatsBest",
      "1 = AdjustForBestAppearance",
      "2 = AdjustForBestPerformance",
      "3 = Custom"
    ],
    "animateControlSelectElements": true,
    "animateWindowsWhenMinimizingMaximizing": true,
    "animateTaskbar": true,
    "enablePeek": true,
    "fadeSlideMenus": true,
    "fadeSlideToolTips": true,
    "fadeOutMenuItems": true,
    "saveTaskbarThumbnail": true,
    "showShadowUnderMouse": true,
    "shadowUnderWindows": true,
    "thumbnailsInsteadOfIcons": true,
    "showTranslucentSelection": true,
    "showWindowsContentWhilstDragging": true,
    "slideOpenComboBoxes": true,
    "smoothEdgesScreenFonts": true,
    "smoothScrollListBoxes": true,
    "dropShadowsIcon": true
  },
  "windowsScheduledTasks": {
    "windowsScheduledTasksList": [
      {
        "task": "text",
        "location": "text",
        "type": [
          "0 = Folder",
          "1 = Task"
        ]
      }
    ]
  },
  "registry": {
    "registryList": [
      {
        "id": 1,
        "action": [
          "0 = Add",
          "1 = Modify",
          "2 = Delete"
        ],
        "registryName": "text",
        "dwordValue": 1,
        "displayName": "text",
        "hiveType": [
          "0 = HKEY_CURRENT_CONFIG",
          "1 = HKEY_USERS",
          "2 = HKEY_LOCAL_MACHINE",
          "3 = HKEY_CLASSES_ROOT"
        ],
        "path": "text",
        "regType": [
          "0 = REG_SZ",
          "1 = REG_DWORD",
          "2 = REG_QWORD",
          "3 = REG_MULTI_SZ",
          "4 = REG_EXPAND_SZ"
        ],
        "stringValue": "text"
      }
    ]
  },
  "uwpApps": {
    "allExcept": [
      "text"
    ],
    "followingPkgs": [
      "text"
    ],
    "removeType": [
      "0 = AllExcept",
      "1 = FollowingPkgs"
    ]
  }
}

Update

put

Update the Image Optimization settings with the specified ID.

Path parameters
idinteger · int32Required

The ID for which to modify the Image Optimization.

Body
enableOptimizationboolean | nullableOptional

Whether Optimization is Enabled or not

optimizationTypestring · enumOptional

Optimization Type

Possible values:
windowsDefenderATPEnabledboolean | nullableOptional

Whether Windows Defender ATP is enabled or not

windowsComponentsEnabledboolean | nullableOptional

Whether Windows Components is enabled or not

windowsServicesEnabledboolean | nullableOptional

Whether Windows Services is enabled or not

windowsScheduledTasksEnabledboolean | nullableOptional

Whether Windows Scheduled Task is enabled or not

windowsAdvancedOptionsEnabledboolean | nullableOptional

Whether Windows Advanced Options is enabled or not

networkPerformanceEnabledboolean | nullableOptional

Whether Network Performance is enabled or not

registryEnabledboolean | nullableOptional

Whether Registry is enabled or not

visualEffectsEnabledboolean | nullableOptional

Whether Visual Effects is enabled or not

diskCleanupEnabledboolean | nullableOptional

Whether Disk Cleanup is enabled or not

customScriptEnabledboolean | nullableOptional

Whether Custom Script is enabled or not

winDefATPTurnOffOnstring · enumOptional

Windows enable options

Possible values:
disableRealTimeProtectionboolean | nullableOptional

Disable Real Time Protection

excludeFoldersstring[] | nullableOptional

Exclude Folders List

excludeProcessesstring[] | nullableOptional

Exclude Processes

excludeExtensionstring[] | nullableOptional

Exclude Extensions

partialStartLayoutContentstring | nullableOptional

Partial Start menu layout

hibernateboolean | nullableOptional

Whether Hibernate is enabled or not

teleCollectionboolean | nullableOptional

Whether TeleCollection is enabled or not

systemRestoreboolean | nullableOptional

Whether System Restore is enabled or not

additionalErrorReportboolean | nullableOptional

Whether Additional Error Reporting is enabled or not

tilesboolean | nullableOptional

Whether Tiles is enabled or not

cortanaboolean | nullableOptional

Whether Cortana is enabled or not

microsoftConsumerExperienceboolean | nullableOptional

Whether Microsoft Consumer Experience is enabled or not

windowsTipsboolean | nullableOptional

Whether Windows Tips is enabled or not

commonProgramGroupsboolean | nullableOptional

Whether Common Program Groups is enabled or not

partialStartMenuboolean | nullableOptional

Whether Partial Start Menu is enabled or not

dirCacheMaxinteger · int32 | nullableOptional

Directory Cache Value

dormantFileLimitinteger · int32 | nullableOptional

Dormant File Limit Value

fileNotFoundCacheinteger · int32 | nullableOptional

File Not Found Cache Value

fileInfoCacheinteger · int32 | nullableOptional

File Info Cache Value

fileInfoCacheEnableboolean | nullableOptional

Whether File Info Cache is enabled or not

directoryCacheEnableboolean | nullableOptional

Whether Directory Cache is enabled or not

fileNotFoundCacheEnableboolean | nullableOptional

Whether File Not Found Cache is enabled or not

dormantFileLimitEnableboolean | nullableOptional

Whether Dormant File Limit is enabled or not

disableTCPboolean | nullableOptional

Whether Disable TCP is enabled or not

disableIPv6CompEnableboolean | nullableOptional

Whether Disable IPv6 Components is enabled or not

disableIPv6ToIPv4boolean | nullableOptional

Whether Disable IPv6 To IPv4 is enabled or not

disableIsaTapboolean | nullableOptional

Whether Disable IsaTap for IPv6 is enabled or not

argumentsstring | nullableOptional

Arguments

commandstring | nullableOptional

Command

initDirstring | nullableOptional

Initial Directory

userstring | nullableOptional

User

passwordstring | nullableOptional

Password

cleanupWinSxSFolderboolean | nullableOptional

Whether Clean up windows SxS Folder is enabled or not

cleanupSystemFilesboolean | nullableOptional

Whether Clean up system files is enabled or not

cleanupTemporaryFileLogsboolean | nullableOptional

Whether Clean up temporary file logs is enabled or not

removeOneDriveboolean | nullableOptional

Whether Remove One Drives is enabled or not

deleteUserProfilesboolean | nullableOptional

Whether Delete User Profiles is enabled or not

visualEffectsTypesstring · enumOptional

Visual Effects Type

Possible values:
animateControlSelectElementsboolean | nullableOptional

Whether Animate Control Select Elements is enabled or not

animateWindowsWhenMinimizingMaximizingboolean | nullableOptional

Whether Animate Windows When Minimizing Or Maximizing is enabled or not

animateTaskbarboolean | nullableOptional

Whether Animate Taskbar is enabled or not

enablePeekboolean | nullableOptional

Whether Peek is enabled or not

fadeSlideMenusboolean | nullableOptional

Whether Fade Slide Menus is enabled or not

fadeSlideToolTipsboolean | nullableOptional

Whether Fade Slide Tool Tips is enabled or not

fadeOutMenuItemsboolean | nullableOptional

Whether Fade Out Menu Items is enabled or not

saveTaskbarThumbnailboolean | nullableOptional

Whether Taskbar Thumbnail is enabled or not

showShadowUnderMouseboolean | nullableOptional

Whether Shadow Under Mouse is enabled or not

shadowUnderWindowsboolean | nullableOptional

Whether Shadow Under Windows is enabled or not

thumbnailsInsteadOfIconsboolean | nullableOptional

Whether Thumbnails instead of icons is enabled or not

showTranslucentSelectionboolean | nullableOptional

Whether Translucent Selection is enabled or not

showWindowsContentWhilstDraggingboolean | nullableOptional

Whether Windows Content Whilst Dragging is enabled or not

slideOpenComboBoxesboolean | nullableOptional

Whether Slide open combo boxes is enabled or not

smoothEdgesScreenFontsboolean | nullableOptional

Whether Smooth Edges Screen Fonts is enabled or not

smoothScrollListBoxesboolean | nullableOptional

Whether Smooth Scroll List Boxes is enabled or not

dropShadowsIconboolean | nullableOptional

Whether Drop Shadow Icon is enabled or not

forcebooleanOptional

Force Optimization.

Default: false
Responses
204

No Content

401

Unauthorized

application/json; api-version=1.0
404

Not Found

application/json; api-version=1.0
put
/api/VDI/Template/{id}/Optimization
PUT /api/VDI/Template/{id}/Optimization HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 1975

{
  "enableOptimization": true,
  "optimizationType": [
    "0 = Automatic",
    "1 = Manual"
  ],
  "windowsDefenderATPEnabled": true,
  "windowsComponentsEnabled": true,
  "windowsServicesEnabled": true,
  "windowsScheduledTasksEnabled": true,
  "windowsAdvancedOptionsEnabled": true,
  "networkPerformanceEnabled": true,
  "registryEnabled": true,
  "visualEffectsEnabled": true,
  "diskCleanupEnabled": true,
  "customScriptEnabled": true,
  "winDefATPTurnOffOn": [
    "0 = TurnOffWindowsDefenderATP",
    "1 = TurnOnWindowsDefenderATP"
  ],
  "disableRealTimeProtection": true,
  "excludeFolders": [
    "text"
  ],
  "excludeProcesses": [
    "text"
  ],
  "excludeExtension": [
    "text"
  ],
  "partialStartLayoutContent": "text",
  "hibernate": true,
  "teleCollection": true,
  "systemRestore": true,
  "additionalErrorReport": true,
  "tiles": true,
  "cortana": true,
  "microsoftConsumerExperience": true,
  "windowsTips": true,
  "commonProgramGroups": true,
  "partialStartMenu": true,
  "dirCacheMax": 1,
  "dormantFileLimit": 1,
  "fileNotFoundCache": 1,
  "fileInfoCache": 1,
  "fileInfoCacheEnable": true,
  "directoryCacheEnable": true,
  "fileNotFoundCacheEnable": true,
  "dormantFileLimitEnable": true,
  "disableTCP": true,
  "disableIPv6CompEnable": true,
  "disableIPv6ToIPv4": true,
  "disableIsaTap": true,
  "arguments": "text",
  "command": "text",
  "initDir": "text",
  "user": "text",
  "password": "text",
  "cleanupWinSxSFolder": true,
  "cleanupSystemFiles": true,
  "cleanupTemporaryFileLogs": true,
  "removeOneDrive": true,
  "deleteUserProfiles": true,
  "visualEffectsTypes": [
    "0 = LetWindowsChooseWhatsBest",
    "1 = AdjustForBestAppearance",
    "2 = AdjustForBestPerformance",
    "3 = Custom"
  ],
  "animateControlSelectElements": true,
  "animateWindowsWhenMinimizingMaximizing": true,
  "animateTaskbar": true,
  "enablePeek": true,
  "fadeSlideMenus": true,
  "fadeSlideToolTips": true,
  "fadeOutMenuItems": true,
  "saveTaskbarThumbnail": true,
  "showShadowUnderMouse": true,
  "shadowUnderWindows": true,
  "thumbnailsInsteadOfIcons": true,
  "showTranslucentSelection": true,
  "showWindowsContentWhilstDragging": true,
  "slideOpenComboBoxes": true,
  "smoothEdgesScreenFonts": true,
  "smoothScrollListBoxes": true,
  "dropShadowsIcon": true,
  "force": false
}

No content