![](http://content.invisioncic.com/m329563/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Bill Powell1709164126
-
Posts
2 -
Joined
-
Last visited
Content Type
Forums
Articles
Labs
Videos
TechZone
Citrix Community Articles
Events
Profiles
Posts posted by Bill Powell1709164126
-
-
Starting from https://developer-docs.citrix.com/en-us/citrix-virtual-apps-desktops/citrix-cvad-rest-apis/citrix-virtual-apps-and-desktops-apis I'm attempting to obtain a token from the endpoint https://xxxx.yyyy.zz/cvad/manage/Tokens where xxxx.yyyy.zz is the DNSHostName of either of my DDCs (as obtained from Get-ADComputer).
My (powershell) code is :
try { $TokenResponse = Invoke-RestMethod -Uri $tokenUrl -Method POST -Body @{ Accept = "application/json" Authorization = "Basic $EncodedAdminCredentical" } $token = $TokenResponse.Content | ConvertFrom-Json Write-Host -ForegroundColor Green "Request token to $tokenUrl succeeded" } catch { $exception = $_ Write-Host -ForegroundColor Yellow "Request token to $tokenUrl rejected: $($exception.Exception.Message)" }
The error is "The remote server returned an error: (404) Not Found."
I take that to indicate that the cvad/manage/Tokens endpoint isn't recognised. I also tried changing the -Body to -Headers (with the same 404 failure code resulting)
The DDC has 'Citrix Virtual Apps and Desktops 7 2203 LTSR CU2' installed. The version is '2203.0.2000.2076'
Any guidance as to what I'm doing wrong?
Attempting to use CVAD REST API fails to obtain token with error 404
in Delivery Groups
Posted
Answered elsewhere - minimum version is 2209:
https://docs.citrix.com/en-us/citrix-virtual-apps-desktops/2209/whats-new.html#citrix-virtual-apps-and-desktops-rest-apis-preview