We could use the saved_objects API to list the dashboards, match against the names, then use the export API to get the matching dashboards and their deps.
$ curl -s "http://localhost:5601/api/saved_objects/dashboard?per_page=10000" | jq '.saved_objects[] | {title: .attributes.title, id: .id}'
{
"title": "My Dashboard",
"id": "c9dea300-72f3-11e7-bb5f-6bf23f27ae74"
}
{
"title": "My Dashboard Copy",
"id": "371c43d0-72f6-11e7-bb5f-6bf23f27ae74"
}
We could use the saved_objects API to list the dashboards, match against the names, then use the export API to get the matching dashboards and their deps.