Goal:
My goal is to take data from a Sumologic dashboard using the Sumologic API and display it within a dashboard in Power BI. I am checking the calls first within Git Bash, before entering the URLs into Power BI Desktop to visualize the data.
I have an Access ID - Looks like:
h2348f9and Access Key - Looks like:
23h9qwdjqqq9qqi39d3ef9f94kks9k94kThis is the url I am trying to use to access the Dashboard:
https://api.sumologic.com/api/v2/dashboards/{dashboard id goes here}According to Sumologic Get Dashboard DocumentationI have what I believe is the Dash ID
I acquired the dash ID from the end of the URL in my Sumologic UI.
I have successfully accessed data through the API for https://api.sumologic.com/api/v1/collectors?limit=10 using the PBI Desktop UI "Basic"
Authentication setting, by substituting the access ID for username and the Access key for password.
(As instructed by the Power BI Documentation on APIs see first few steps. It works, even though this states it is for Azure not SumoLogic)
Problem:
But when I curl the command in my Git Bash for GET dashboard,
curl -u "(AccessID):(AccessKey)" -X GET "https://api.sumologic.com/api/v2/dashboards/(dashboardID)"
I get this json response:
{
"id":"10NLC-3CNIS-5QN8J",
"errors":[
{"code":"user:not_found",
"message":"Object Not Found."}
]
}
I also am unable to add this call into Power BI, likely because of the same error. I was able to add the first URL https://api.sumologic.com/api/v1/collectors?limit=10 without any extra user info given.
This Error seems to confirm that the ID is correct, (as I used to get an "Incorrect ID" error instead of a json response before), but I'm not sure. How can I resolve this user-not-found error?
