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
Code | Example Body |
---|---|
200 OK | See sample response |
Selected error responses
Code | Example 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:
- View Manager APIs for a full list of View Manager APIs and links to examples.
- Row and column level security to learn how to use views to secure data.
- View Manager for a description of the Imply View Manager.