According to the Kibana API doc, I can query for all dashboards using
curl -u user:pwd -X GET 'https://kibana.elastic-cloud.com:9243/api/saved_objects/_find?type=dashboard'
and I can query for all spaces using
curl -u user:pwd -X GET 'https://kibana.elastic-cloud.com:9243/api/spaces/space'
and I can query for all dashboards within a space using
curl -u user:pwd -X GET 'https://kibana.elastic-cloud.com:9243/s/my_spaces_name/api/saved_objects/_find?type=dashboard'
BUT if i wanted to query for ALL dashboards in Elasticsearch AND cross-reference each dashboard in result with a possible related spaces? I can figure out how to do this by
- Query all Spaces
- Iterate over each spaces in result, and query each space for child Dashboards
- Query All Dashboards globally
- Merge the two results
There MUST be a better, more time/resource efficient way to perform this?