"Identity was not authenticated"

RESTful knowledge exchange

"Identity was not authenticated"

Veeam Logoby mklavansky » Wed Mar 30, 2016 4:47 pm

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"/>
mklavansky
Lurker
 
Posts: 1
Liked: never
Joined: Wed Mar 30, 2016 4:14 pm
Full Name: Michael Klavansky

Re: "Identity was not authenticated"

Veeam Logoby v.Eremin » Wed Mar 30, 2016 6:19 pm

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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to RESTful API



Who is online

Users browsing this forum: No registered users and 2 guests