Skip to content

Unable to authenticate to Unitrends RESTful API #9

@woodcharles

Description

@woodcharles

I have installed the Unitrends PS module successfully, but when I try to connect to an appliance I am unable to authenticate. I have verified the username/password used are valid.

PS C:\WINDOWS\system32> Connect-UebServer –Server unitrends –User root –Password *****
Invoke-RestMethod :
{"result":[{"code":"0","message":"Invalid username or password.","link":"http://kb.unitrends.com"}]}
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Unitrends\Modules\Connect-UebServer.ps1:54 char:14

  • ... $response = Invoke-RestMethod -Uri "https://$Server/api/login" -Metho ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
      eption
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions