- Kibana Guide: other versions:
- Introduction
- Get started
- Set Up Kibana
- Discover
- Visualize
- Creating a Visualization
- Saving Visualizations
- Using rolled up data in a visualization
- Line, Area, and Bar charts
- Controls Visualization
- Data Table
- Markdown Widget
- Metric
- Goal and Gauge
- Pie Charts
- Coordinate Maps
- Region Maps
- Timelion
- TSVB
- Tag Clouds
- Heatmap Chart
- Vega Graphs
- Inspecting Visualizations
- Dashboard
- Canvas
- Graph data connections
- Machine learning
- Elastic Maps
- Code
- Infrastructure
- Logs
- APM
- Uptime
- SIEM
- Dev Tools
- Stack Monitoring
- Management
- Reporting from Kibana
- REST API
- Kibana plugins
- Limitations
- Release Highlights
- Breaking Changes
- Release Notes
- Developer guide
Bulk Get Objects
editBulk Get Objects
editThis functionality is beta. It’s on track to become a stable, permanent feature of Kibana. Caution should be exercised because it is possible a breaking change to these APIs will occur in a minor version, but we’ll avoid this wherever possible.
The bulk-get saved object API enables you to retrieve multiple Kibana saved objects by id.
Note: You cannot access this endpoint via the Console in Kibana.
Request
editPOST /api/saved_objects/_bulk_get
Request Body
editThe request body must be a JSON array containing objects, each of which contains the following properties:
-
type
(required) -
(string) Valid options, include:
visualization
,dashboard
,search
,index-pattern
,config
, andtimelion-sheet
-
id
(required) - (string) ID of object to retrieve
-
fields
(optional) - (array) The fields to return in the object’s response
Response body
editThe response body will have a top level saved_objects
property that contains
an array of objects, which represent the response for each of the requested
objects. The order of the objects in the response is identical to the order of
the objects in the request.
For any saved object that could not be found, an error object will exist in its place.
Examples
editThe following example attempts to retrieve an index pattern with id
my-pattern
and a dashboard with id my-dashboard
, but only the index pattern
exists.
POST api/saved_objects/_bulk_get [ { "type": "index-pattern", "id": "my-pattern" }, { "type": "dashboard", "id": "my-dashboard" } ]
A successful call returns a response code of 200
and a response body
containing a JSON structure similar to the following example:
{ "saved_objects": [ { "id": "my-pattern", "type": "index-pattern", "version": 1, "attributes": { "title": "my-pattern-*" } }, { "id": "my-dashboard", "type": "dashboard", "error": { "statusCode": 404, "message": "Not found" } } ] }
On this page