Problem:
While issuing a search API request, the following error is returned even though using the correct access id/access key and have full RBAC permissions with the assigned roles.
Error 401 Full authentication is required to access this resource</title>\n</head>\n<body><h2>HTTP ERROR 401 Full authentication is required to access this resource
Cause:
If the access id/access key used is correct the common reason for this using the wrong endpoint URL as only relevant API endpoint should be used (corresponding to the deployment where the account is registered)
Resolution:
It could be seen that the endpoint used as below for accessing the search job API
service.us2.sumologic.com
whereas should be using the API endpoint and not service endpoint like below:
https://api.us2.sumologic.com/api/v1
For more info on the search API page related to endpoint:Endpoints-for-api-access
Sumo Logic has deployments that are assigned depending on the geographic location and the date an account is created. For API access, you must manually direct your API client to the correct Sumo Logic API URL.
See Sumo Logic Endpoints for the list of the URLs.
Comments
0 comments
Please sign in to leave a comment.