Get all data views APIedit

[preview] This functionality is in technical preview and may be changed or removed in a future release. Elastic will apply best effort 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.

Requestedit

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

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

Response codeedit

200
Indicates a successful call.

Exampleedit

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"
        }
    ]
}