AnsweredAssumed Answered

Authorization required for API access?

Question asked by Sumit Sharma on Apr 20, 2017
Latest reply on Apr 20, 2017 by Sumit Sharma


I have installed the trail version of nexpose and activated with key provided. Doing evaluation of product.

 

During API integration evalution i followed API guide provided but got error mentioned in subject. Also refer to below request and response. Do we need to turn on API  somewhere in console?

 

Request

--------------

 

POST /api/1.1/xml HTTP/1.1

Host: localhost:3780

Content-Type: text/xml

Cache-Control: no-cache

Postman-Token: 714f4587-20cb-fc40-fba5-401e1af785ae

 

 

<?xml version="1.0" encoding="UTF-8"?><LoginRequest user-id="nxadmin" password="nxpassword45" />

 

 

Response

----------------

 

 

<LoginResponse success="0">

    <Failure>

        <Exception>

            <message>Authorization required for API access</message>

            <stacktrace></stacktrace>

        </Exception>

    </Failure>

</LoginResponse>

Outcomes