Skip to main content

List the tables and views the caller is granted.

GET/api/v1/query-sourcesanalytics:read

Granted tables and views only, by name; search keeps the names that contain the text. columns are null in list items.

Scopeanalytics:read
AsynchronousNo
MCP toollist_query_sources
Portal permissionsview_query_builder_schema
Pagingkeyset
Default ordername, query_source_id
Sort fieldsname, query_source_id

Parameters​

NameInTypeRequiredDescription
searchquerystring or nullOptionalSources whose name contains this text.
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of QuerySourceRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

QuerySource​

FieldTypeRequiredDescription
columnsarray of QuerySourceColumnRequiredEvery column with its keys; null in list items (get_query_source reads them).
kindstringRequiredtable or view.
namestringRequired
query_source_idstringRequiredbase64url (no padding) of the granted table or view name.
row_countstring or nullRequiredThe database's row estimate, as the query builder shows it; null in list items.
size_mbnumber or nullRequiredThe table's size on disk in megabytes (0 for a view, which has no storage of its own); null in list items.

QuerySourceColumn​

FieldTypeRequiredDescription
default_valuestring or nullRequiredThe column's default as the database states it; null when it has none.
foreign_columnstring or nullRequired
foreign_tablestring or nullRequiredThe table a foreign key points at; null when the column is no foreign key.
is_foreign_keybooleanRequired
is_indexedbooleanRequired
is_nullablebooleanRequired
is_primary_keybooleanRequired
is_uniquebooleanRequired
keystringRequired
namestringRequired
ordinal_positioninteger or nullRequiredThe column's place in the table, starting at 1.
typestringRequired