Dear All,
I have been working in a script that replicates all the Kibana objects (index-patterns, searches, visualizations and dashboards) from a source server into others. I am using the Bulk Create Saved Objects API, with good results. Nevertheless, It came to my awareness that, that in regards references, I should be using the the name field (of the object a suppose) to define reference to an object, as per the documentation:
" references
(Optional, array) Objects with name
, id
, and type
properties that describe the other saved objects in the referenced object. To refer to the other saved object, use name
in the attributes. Never use id
to refer to the other saved object. id
can be automatically updated during migrations, import, or export."[1]
But there is no "name" attribute within the attributes of the object, I have been trying to find this "name field" with diverse APIs, but I do not find any reference to it, ie. the find api [2]. The import works flawless using the objects Ids, but in this case I am setting the ids during import, so I do not let Kibana create random ids and avoid the warning stated previously in [1]
So my question is, to what does the documentation refers as "name" in this context? is it the title?
or something else?
We are using Kibana 7.0.1 in all of our installations.
[1] https://www.elastic.co/guide/en/kibana/7.x/saved-objects-api-create.html (Browsed Feb 11th, 2020)
[2] https://www.elastic.co/guide/en/kibana/7.x/saved-objects-api-find.html (Browsed on Feb 11th, 2020), it actually contradicts the [1], as this only export as references the object type and the object id of the reference
Thanks in advance,
Erik