# Get dashboards IDs for REST API backup/snapshots

**URL:** https://discuss.elastic.co/t/get-dashboards-ids-for-rest-api-backup-snapshots/180606
**Category:** Kibana
**Created:** [May 10, 2019, 6:15pm UTC](https://discuss.elastic.co/t/get-dashboards-ids-for-rest-api-backup-snapshots/180606 "2019-05-10T18:15:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alonchis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alonchis/32/52655_2.png) [@alonchis](https://discuss.elastic.co/u/alonchis)
#### Post date: [May 10, 2019, 6:15pm UTC](https://discuss.elastic.co/t/get-dashboards-ids-for-rest-api-backup-snapshots/180606/1 "2019-05-10T18:15:53Z")

</div>

Hello friends,  
Im tasked to create backups of dashboards and their visualizations, and from a [previous post](https://discuss.elastic.co/t/dashboard-backups/158382) i know that i can use the kibana REST api, but it looks like i need the dashboard id to get its contents. However, we have about 10 dashboards with around 10 visualizations and... as you can probably guess, keeping track of all IDs gets messy real quick.

Wondering if there is a way to get all dashboard id via rest, elasticsearch rest, curator, etc, so that i can eventually create a script to use those ids and save the resulting json somewhere?

---

<div class="post-metadata">

### Author: ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)
#### Post date: [May 13, 2019, 3:47pm UTC](https://discuss.elastic.co/t/get-dashboards-ids-for-rest-api-backup-snapshots/180606/2 "2019-05-13T15:47:12Z")

</div>

How about snapshotting the Kibana indices? Here are some details of the naming convention: [https://www.elastic.co/guide/en/kibana/current/upgrade-migrations.html#upgrade-migrations-process](https://www.elastic.co/guide/en/kibana/current/upgrade-migrations.html#upgrade-migrations-process). There is a `.kibana` alias which points to a `.kibana_X` index, where the highest value is usually the most current.

Also, starting in 7.2, we have a new API for bulk export/import of Kibana objects: [https://github.com/elastic/kibana/pull/30326](https://github.com/elastic/kibana/pull/30326)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 10, 2019, 3:47pm UTC](https://discuss.elastic.co/t/get-dashboards-ids-for-rest-api-backup-snapshots/180606/3 "2019-06-10T15:47:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
