メインコンテンツまでスキップ

Get a granted table or view with its columns and keys.

GET/api/v1/query-sources/{query_source_id}analytics:read
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

The columns of one source (name, database type, position, primary key, nullability, default, unique, indexed, foreign-key target) and the table's row estimate and size in megabytes: what the query builder's source picker shows. Needs View Query Builder Schema, and 403 when the caller holds no query-builder grant on the source. Use the column names in execute_query_sources.

スコープanalytics:read
非同期いいえ
MCP ツールget_query_source
Portal の権限view_query_builder_schema

パラメーター​

名前場所型必須説明
query_source_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-None-Matchheaderstring任意Answers 304 when the representation is unchanged (resources that publish an ETag).

応答​

ステータス説明本文
200Success.application/json QuerySource
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
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

QuerySource​

フィールド型必須説明
columnsQuerySourceColumn の配列必須Every column with its keys; null in list items (get_query_source reads them).
kindstring必須table or view.
namestring必須
query_source_idstring必須base64url (no padding) of the granted table or view name.
row_countstring または null必須The database's row estimate, as the query builder shows it; null in list items.
size_mbnumber または null必須The table's size on disk in megabytes (0 for a view, which has no storage of its own); null in list items.

QuerySourceColumn​

フィールド型必須説明
default_valuestring または null必須The column's default as the database states it; null when it has none.
foreign_columnstring または null必須
foreign_tablestring または null必須The table a foreign key points at; null when the column is no foreign key.
is_foreign_keyboolean必須
is_indexedboolean必須
is_nullableboolean必須
is_primary_keyboolean必須
is_uniqueboolean必須
keystring必須
namestring必須
ordinal_positioninteger または null必須The column's place in the table, starting at 1.
typestring必須