Skip to main content

List views or inspect a single view

List all views or inspect a single view.

URL

GET /druid-ext/view-manager/v1/views/{view name}

Optional resource

{view name}:The view name to list. If you don't provide a view name, the API returns all views.

Success response

CodeExample Body
200 OKSee sample response

Selected error responses

CodeExample Body
404 Not Found "error": "View[nonexistent] not found."

Sample request

curl --location --request GET 'http://localhost:8081/druid-ext/view-manager/v1/views/' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Basic <encoded authorization string>'

Sample response

{
"english": {
"viewName": "english",
"viewNamespace": null,
"viewSql": "SELECT __time, added, channel, page FROM druid.wikipedia WHERE channel = '#en.wikipedia'",
"lastModified": "2021-04-13T21:17:52.987Z"
},
"french": {
"viewName": "french",
"viewNamespace": null,
"viewSql": "SELECT __time, added, channel, page FROM druid.wikipedia WHERE channel = '#fr.wikipedia'",
"lastModified": "2021-04-13T21:56:51.117Z"
}
}

Learn more

See the following topics for more information: