How do you obtain a Dashboard API ID from the Folder API listing?
The new Dashboard API is does not seem capable of accepting IDs returned from the Folder API. For example, when listing the contents of a Folder, an item will be returned with a type indicating that it is a dashboard:
{'createdAt': '2022-05-10T06:21:51Z', 'createdBy': '0000000000ACB21B', 'modifiedAt': '2022-05-10T06:21:51Z', 'modifiedBy': '0000000000ACB21B', 'id': '00000000020D9464', 'name': 'Dynamic Schema Overview', 'itemType': 'Dashboard', 'parentId': '00000000020E554F', 'permissions': ['GrantView', 'Edit', 'View', 'GrantEdit']}
This ID does not work when fetching data from the Dashboards API:
GET https://api.sumologic.com/api/v2/dashboards/000000000210506D
404 Not Found
{"id":"S911B-UFEGI-XUOFV","errors":[{"code":"user:not_found","message":"Object Not Found."}]}
The actual ID for this dashboard appears to be something entirely different. If you use the ID found in the UI, you can retrieve it via the Dashboards API:
GET https://api.sumologic.com/api/v2/dashboards/YIEFj35I6g88WIVm4ccT65VWTacO1sjmu1pci6LUcHTKHY6U1Lhd2w1QifDn
200 OK
{ // a whole bunch of JSON }
Is there some way to convert the Folder API ID into a Dashboards API ID so I can retrieve it in a programmatic way?
-
Hi Taylor,
I see you have opened a support ticket with Sumo Logic and here is the last update from our support engineer:
Thanks for being patient on this. With the current design, it's not possible to implement this use case, we have raised an enhancement request for the dev team to update the Api so that such a use case can be accommodated.
As part of the enhancement, we will be expanding the list dashboard API to list all the dashboards. As of now, we don't have an ETA as this is an Enhancement Request but our dev team has already started evaluating the request.Hope this helps. If you have any further question please reach out to our support via ticket and we will be glad to help out. Thank you.
Please sign in to leave a comment.
Comments
1 comment