- Kibana Guide: other versions:
- What is Kibana?
- What’s new in 7.17
- Kibana concepts
- Quick start
- Set up
- Install Kibana
- Configure Kibana
- Alerting and action settings
- APM settings
- Banners settings
- Development tools settings
- Graph settings
- Fleet settings
- i18n settings
- Logging settings
- Logs settings
- Metrics settings
- Machine learning settings
- Monitoring settings
- Reporting settings
- Secure settings
- Search sessions settings
- Security settings
- Spaces settings
- Task Manager settings
- Telemetry settings
- URL drilldown settings
- Start and stop Kibana
- Access Kibana
- Securing access to Kibana
- Add data
- Upgrade Kibana
- Logging configuration migration
- Configure security
- Configure reporting
- Configure monitoring
- Production considerations
- Discover
- Dashboard and visualizations
- Canvas
- Maps
- Build a map to compare metrics by country or region
- Track, visualize, and alert on assets in real time
- Map custom regions with reverse geocoding
- Heat map layer
- Tile layer
- Vector layer
- Plot big data
- Search geographic data
- Configure map settings
- Connect to Elastic Maps Service
- Import geospatial data
- Troubleshoot
- Reporting and sharing
- Machine learning
- Graph
- Alerting
- Observability
- APM
- Security
- Dev Tools
- Fleet
- Osquery
- Stack Monitoring
- Stack Management
- REST API
- Get features API
- Kibana spaces APIs
- Kibana role management APIs
- User session management APIs
- Saved objects APIs
- Index patterns APIs
- Alerting APIs
- Action and connector APIs
- Cases APIs
- Import and export dashboard APIs
- Logstash configuration management APIs
- Machine learning APIs
- Short URLs APIs
- Get Task Manager health
- Upgrade assistant APIs
- Kibana plugins
- Accessibility
- Release notes
- Kibana 7.17.28
- Kibana 7.17.27
- Kibana 7.17.26
- Kibana 7.17.25
- Kibana 7.17.24
- Kibana 7.17.23
- Kibana 7.17.22
- Kibana 7.17.21
- Kibana 7.17.20
- Kibana 7.17.19
- Kibana 7.17.18
- Kibana 7.17.17
- Kibana 7.17.16
- Kibana 7.17.15
- Kibana 7.17.14
- Kibana 7.17.13
- Kibana 7.17.12
- Kibana 7.17.11
- Kibana 7.17.10
- Kibana 7.17.9
- Kibana 7.17.8
- Kibana 7.17.7
- Kibana 7.17.6
- Kibana 7.17.5
- Kibana 7.17.4
- Kibana 7.17.3
- Kibana 7.17.2
- Kibana 7.17.1
- Kibana 7.17.0
- Developer guide
A newer version is available. For the latest information, see the
current release documentation.
Import dashboard API
editImport dashboard API
editDeprecated in 7.15.0.
Use Import objects instead.
[preview] This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Import dashboards and corresponding saved objects.
Request
editPOST <kibana host>:<port>/api/kibana/dashboards/import
POST <kibana host>:<port>/s/<space-id>/api/kibana/dashboards/import
Query parameters
edit-
force
- (Optional, boolean) Overwrite any existing objects on ID conflict.
-
exclude
- (Optional, array) Saved object types that you want to exclude from the import.
Request body
editUse the complete response body from the Export dashboard API as the request body. Do not manually construct a payload to the endpoint. The max payload size is determined by the savedObjects.maxImportPayloadBytes
configuration key.
Response body
edit-
objects
- (array) A top level property that includes the saved objects.
Response code
edit-
200
- Indicates a successful call, even if there are errors importing individual saved objects. If there are errors, the error information is returned in the response body on an object-by-object basis.
Example
edit$ curl -X POST api/kibana/dashboards/import?exclude=index-pattern { "objects": [ { "id": "80b956f0-b2cd-11e8-ad8e-85441f0c2e5c", "type": "visualization", "updated_at": "2018-09-07T18:40:33.247Z", "version": 1, "attributes": { "title": "Count Example", "visState": "{\"title\":\"Count Example\",\"type\":\"metric\",\"params\":{\"addTooltip\":true,\"addLegend\":false,\"type\":\"metric\",\"metric\":{\"percentageMode\":false,\"useRanges\":false,\"colorSchema\":\"Green to Red\",\"metricColorMode\":\"None\",\"colorsRange\":[{\"from\":0,\"to\":10000}],\"labels\":{\"show\":true},\"invertColors\":false,\"style\":{\"bgFill\":\"#000\",\"bgColor\":false,\"labelColor\":false,\"subText\":\"\",\"fontSize\":60}}},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}}]}", "uiStateJSON": "{}", "description": "", "version": 1, "kibanaSavedObjectMeta": { "searchSourceJSON": "{\"index\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"filter\":[]}" } } }, { "id": "90943e30-9a47-11e8-b64d-95841ca0b247", "type": "index-pattern", "updated_at": "2018-09-07T18:39:47.683Z", "version": 1, "attributes": { "title": "kibana_sample_data_logs", "timeFieldName": "timestamp", "fields": "<truncated for example>", "fieldFormatMap": "{\"hour_of_day\":{}}" } }, { "id": "942dcef0-b2cd-11e8-ad8e-85441f0c2e5c", "type": "dashboard", "updated_at": "2018-09-07T18:41:05.887Z", "version": 1, "attributes": { "title": "Example Dashboard", "hits": 0, "description": "", "panelsJSON": "[{\"gridData\":{\"w\":24,\"h\":15,\"x\":0,\"y\":0,\"i\":\"1\"},\"version\":\"7.0.0-alpha1\",\"panelIndex\":\"1\",\"type\":\"visualization\",\"id\":\"80b956f0-b2cd-11e8-ad8e-85441f0c2e5c\",\"embeddableConfig\":{}}]", "optionsJSON": "{\"useMargins\":true,\"hidePanelTitles\":false}", "version": 1, "timeRestore": false, "kibanaSavedObjectMeta": { "searchSourceJSON": "{\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"filter\":[]}" } } } ] }
Was this helpful?
Thank you for your feedback.