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

Get the tables and columns of a foreign database.

GET/api/v1/foreign-data-connections/{foreign_data_connection_id}/database-schemaconnectors:read
注記

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

Logs in to the foreign database with the connection's stored credentials and lists its tables and views with their columns, keys and indexes: what a dataview or virtual view on that connection is built from. The credentials are never returned. 503 when the foreign database cannot be reached. Needs View Query Schema Metadata, View Foreign Data Connections and Use Foreign Data Connections.

スコープconnectors:read (機密性の高いスコープ)
非同期いいえ
MCP ツールget_foreign_data_connection_database_schema
Portal の権限view_query_schema_metadata, view_foreign_data_connections, use_foreign_data_connections

パラメーター​

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

応答​

ステータス説明本文
200Success.application/json ForeignDataSchema
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 のコードです。各コードからそのページに移動できます。

スキーマ​

ForeignDataColumn​

フィールド型必須説明
data_typestring必須The foreign database's own type name.
default_valuestring または null必須
foreign_columnstring または null必須
foreign_tablestring または null必須The table a foreign key points at.
is_foreign_keyboolean必須
is_indexedboolean必須
is_nullableboolean必須
is_primary_keyboolean必須
is_uniqueboolean必須
namestring必須
ordinal_positioninteger または null必須

ForeignDataSchema​

フィールド型必須説明
foreign_data_connection_idstring必須
tablesForeignDataTable の配列必須Every table and view the connection's login can see, with its columns.

ForeignDataTable​

フィールド型必須説明
columnsForeignDataColumn の配列必須
row_countstring または null必須The database's row estimate.
schema_namestring必須The database schema holding the table.
size_mbnumber必須
table_namestring必須
typestring または null必須table, view, materialized view or temporary table; null where the database does not say.