Get all data views API

edit

[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. Retrieve a list of all data views.

For the most up-to-date API details, refer to the open API specification.

Request

edit

GET <kibana host>:<port>/api/data_views

GET <kibana host>:<port>/s/<space_id>/api/data_views

Response code

edit
200
Indicates a successful call.

Example

edit

Retrieve the list of data views:

$ curl -X GET api/data_views

The API returns a list of data views:

{
    "data_view": [
        {
            "id": "e9e024f0-d098-11ec-bbe9-c753adcb34bc",
            "namespaces": [
                "default"
            ],
            "title": "tmp*",
            "type": "rollup",
            "typeMeta": {}
        },
        {
            "id": "90943e30-9a47-11e8-b64d-95841ca0b247",
            "namespaces": [
                "default"
            ],
            "title": "kibana_sample_data_logs"
        }
    ]
}