REST API knowledge exchange
Post Reply
mklavansky
Lurker
Posts: 1
Liked: never
Joined: Mar 30, 2016 4:14 pm
Full Name: Michael Klavansky
Contact:

"Identity was not authenticated"

Post by mklavansky »

Case: 01746606

I am using Veeam v8. My account is a Portal User.

I am working with our Dev team to leverage RESTful API.

From the Veeam Enterprise Manager Console running on the Veeam Backup Server, when I run http://localhost:9399/web/#/api/. Here is the response.

Code: Select all

Response: 200 success

<EnterpriseManager xmlns="http://www.veeam.com/ent/v1.0">
  <Links>
    <Link Rel="Down" Type="LogonSessionList" Href="http://localhost:9399/api/logonSessions" />
  </Links>
  <SupportedVersions>
    <SupportedVersion Name="v1">
      <Links>
        <Link Rel="Create" Type="LogonSession" Href="http://localhost:9399/api/sessionMngr/?v=v1" />
      </Links>
    </SupportedVersion>
    <SupportedVersion Name="v1_1">
      <Links>
        <Link Rel="Create" Type="LogonSession" Href="http://localhost:9399/api/sessionMngr/?v=v1_1" />
      </Links>
    </SupportedVersion>
  </SupportedVersions>
</EnterpriseManager>
When I click on the Tasks or Session links in the upper right corner, here is what I get:

Code: Select all

Response: 401 error

<?xml version="1.0" encoding="utf-8"?>
<Error StatusCode="401" Message="Identity was not authenticated." xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
I tried to create a new logon session using the following link: http://localhost:9399/api/sessionMngr/?v=latest
I get the following:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<Error xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.veeam.com/ent/v1.0" Message="Identity was not authenticated." StatusCode="401"/>
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: "Identity was not authenticated"

Post by veremin »

I'm not sure whether ?Latest link existed prior to version 9, so, it stands to reason to click to http://localhost:9399/api/sessionMngr/?v=v1_1, instead.

Also, what did you provide as a body for a post request to logon session Manager or did you get any browser pop-up asking for credentials used for authentication?

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest