WindowsService

List

Retrieve Windows Service Custom

GET/api/RDS/Template/{id}/Optimization/WindowsService
Path parameters
id*integer (int32)

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

Response

Success

Body
typeenum

Details Type

0 = Predefined,1 = Custom
serviceNamenullable string

Windows Services Name

displayNamenullable string

Windows Services Display Name

aliasesnullable string

Windows Service Aliases

Request
const response = await fetch('/api/RDS/Template/{id}/Optimization/WindowsService', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "type": [
      "0 = Predefined",
      "1 = Custom"
    ],
    "serviceName": "text",
    "displayName": "text",
    "aliases": "text"
  }
]

Add

Adds a Windows Service Custom to optimization.

POST/api/RDS/Template/{id}/Optimization/WindowsService
Path parameters
id*integer (int32)

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

Body

Windows Services Settings.

aliasesnullable string

Windows Services Alias

displayNamenullable string

Windows Services Diplay Name

serviceNamenullable string

Windows Service Name

Response

Created

Request
const response = await fetch('/api/RDS/Template/{id}/Optimization/WindowsService', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json; api-version=1.0"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "type": "text",
  "title": "text",
  "status": 1,
  "detail": "text",
  "instance": "text",
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Delete

Removes Windows Service Custom From Optimization.

DELETE/api/RDS/Template/{id}/Optimization/WindowsService
Path parameters
id*integer (int32)

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

Body

Windows Service Custom Settings

serviceNamenullable string

Windows Service Name

Response

No Content

Request
const response = await fetch('/api/RDS/Template/{id}/Optimization/WindowsService', {
    method: 'DELETE',
    headers: {
      "Content-Type": "application/json; api-version=1.0"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "type": "text",
  "title": "text",
  "status": 1,
  "detail": "text",
  "instance": "text",
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Was this helpful?