Jump to content

Bill Powell1709164126

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Bill Powell1709164126

  1. 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?

×
×
  • Create New...