# Kibana Spaces & Export Objects

**URL:** <https://discuss.elastic.co/t/kibana-spaces-export-objects/276349>\
**Category:** Kibana\
**Created:** [June 18, 2021, 7:56am UTC](https://discuss.elastic.co/t/kibana-spaces-export-objects/276349 "2021-06-18T07:56:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smm](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@smm](https://discuss.elastic.co/u/smm)\
**Post date:** [June 18, 2021, 7:56am UTC](https://discuss.elastic.co/t/kibana-spaces-export-objects/276349/1 "2021-06-18T07:56:24Z")

</div>

Hi there,  
as sysadmin I would like secure and therefore export Kibana related objects locally.  
I have 2 questions.

1. Example: the cluster has 10 spaces. I can go to each space and manually say 'Export n objects'. But is there a way to download all kibana objects for all spaces at once (to have less work)?
2. Is there an API so that I can accomplish the export objects task via CLI, even better via cron?  
Thank you!  
Stefano

---

<div class="post-metadata">

**Author:** ![dosant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dosant/32/64489_2.png) [@dosant](https://discuss.elastic.co/u/dosant)\
**Post date:** [June 18, 2021, 8:20am UTC](https://discuss.elastic.co/t/kibana-spaces-export-objects/276349/2 "2021-06-18T08:20:54Z")

</div>

Hi @smm,

There is a saved object API you could use: [Saved objects APIs | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/saved-objects-api.html)

Please note, this API is experimental and could be changed in future, but it should work for your case.

I see there is an undocumented `namespaces` param which you could use to specify a list of spaces or a `*` to get objects from all the spaces.

> <https://github.com/elastic/kibana/blob/7267f505a5414ccf9bf49dafb8f40033f75612d1/test/api_integration/apis/saved_objects/find.ts#L128-L148>

---

<div class="post-metadata">

**Author:** ![smm](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@smm](https://discuss.elastic.co/u/smm)\
**Post date:** [June 18, 2021, 8:53am UTC](https://discuss.elastic.co/t/kibana-spaces-export-objects/276349/3 "2021-06-18T08:53:46Z")

</div>

Ok - thanks for your insight!  
Stefano

---

<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:** [July 16, 2021, 8:54am UTC](https://discuss.elastic.co/t/kibana-spaces-export-objects/276349/4 "2021-07-16T08:54:02Z")

</div>

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