Windows Service

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
get
GET /api/AVD/HostPool/{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
post
POST /api/AVD/HostPool/{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
delete
DELETE /api/AVD/HostPool/{id}/Optimization/WindowsService HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 22

{
  "serviceName": "text"
}

No content

Was this helpful?