vSphere+

 View Only
  • 1.  VCSA Authentication via rest API not working

    Posted Dec 08, 2023 06:19 PM

    Any idea why my Authentication not working via RESTAPI call to VCSA ? I am using VCSA 7.0.3

    I created new local user with read only access. I tested via web portal login, it is working fine. But when I tested API login via postman or curl, python, I get always this error message : UNAUTHENTICATED, Authentication required." Even though, I used the same user login credentials. I tested also with my admin user, same error.

     

    andrew_coder_0-1702059469372.png

     



  • 2.  RE: VCSA Authentication via rest API not working
    Best Answer

    Posted Dec 11, 2023 02:19 PM

    Maybe this can help: https://www.vgemba.net/vmware/VCSA-API-Postman/

    Can you try using the URL: https://vcenterFQDN/api/session

     



  • 3.  RE: VCSA Authentication via rest API not working
    Best Answer

    Posted Dec 12, 2023 08:33 PM

    Thanks for hint.

    Yes, issue was wrong API endpoint. Correct is https://{api_host}/api/session

    Finally working !



  • 4.  RE: VCSA Authentication via rest API not working

    Posted Dec 12, 2023 08:35 PM

    Btw how can I mark this case as resolved ?



  • 5.  RE: VCSA Authentication via rest API not working

    Posted Dec 12, 2023 08:37 PM

    Hi, you can mark my post as a solution. It will be open so other users can read the information.