Unable to obtain API key for Kemp 360 Central
Information
Summary: |
Unable to get API key for Kemp 360 Central using cURL in Windows |
Environment: |
Product: Kemp 360 Central Version: Any. Platform: Any. Application: Any. |
Question/Problem Description: |
When making the API call to obtain the API key, an invalid user error is always returned. curl -k -X POST -d '{"username":"admin","password":"<password>"}' https://<Kemp_360_central_IP>/api/v1/user/authenticate/ {"error_message": "Invalid user.", "success": false} |
Steps to Reproduce: | |
Error Message: | |
Defect Number: | |
Enhancement Number: | |
Cause: | When using cURL for authentication, you may need to escape certain characters in your username or password. To escape special characters, you can use a backslash character (\). |
Resolution: |
Since this cURL request is being made from a Windows box, the double quotes need to be espaced. The API call will look like the following: curl -k -X POST -d "{\"username\":\"admin\",\"password\":\"<password>\"}" https://<Kemp_360_central_IP>/api/v1/user/authenticate/ As a result, we should get the API key for Kemp 360 Central: {"apikey": "<API key>", "id": 14, "success": true}' |
Workaround: | |
Notes: |
https://support.kemptechnologies.com/hc/en-us/articles/360001683652 |