Skip to main content

CatalogService.InspectSource

This compatibility method authenticates the caller, then returns unimplemented. Use ProviderCatalogService/InspectConnectorSource.

CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.

POST /prokrust.api.v1alpha1.CatalogService/InspectSource

Request headers​

HeaderValue and purpose
AuthorizationUse Bearer $PROKRUST_TOKEN for a Kubernetes caller authorized for this operation. Browser calls use the signed-in session.
Content-Typeapplication/json selects ProtoJSON for this unary request.
Connect-Protocol-Version1 selects version 1 of the Connect protocol.

Request fields​

InspectSourceRequest

JSON fieldTypeMeaning
namespacestringKubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives.
connectionNamestringName of the legacy source connection selected for inspection.
connectionUidstringUID of the source connection instance observed by the caller.
connectionResourceVersionstringVersion of the observed source connection, used to detect a stale request.
pathstringSource-relative path to inspect with the selected connection.
formatstringAuto, Parquet, Csv, or Tsv. Auto is resolved and frozen in the suggestion.
readOptionsJSON objectprokrust-api ReadOptions and TableDiscovery JSON objects.
discoveryJSON objectLegacy Table discovery settings used to select candidate source objects.
rowLimituint32Zero defaults to 50; maximum 100.
maxBytesuint32Zero defaults to 1 MiB; maximum 1 MiB (protobuf and JSON).
acceptedTableSpecJSON objectOptional accepted Table.spec used to preview edited interpretations. The server requires the same connection/path and performs no writes.
connectionKindstringEmpty selects S3Connection for compatibility.
lakehouseJSON objectNative logical table source, matching Table.spec.lakehouse.
catalogBrowsestringNamespaces/Tables browse a REST lakehouse catalog. SourceTables lists one bounded physical-table page from the connector-allowed BigQuery dataset in path. SourceObjects lists bounded file candidates below the allowed prefix in path; candidate names do not imply multi-file grouping or schema validity. Browsing returns catalog_entries/next_page_token and performs no table writes.
pageTokenstringOpaque continuation from the preceding response. Omit it for the first page and keep other selection fields unchanged.

Example request​

Set PROKRUST_URL to the installation’s HTTPS origin and PROKRUST_TOKEN to your caller token. Replace the sample values with values from your installation.

curl --fail-with-body --silent --show-error \
-H "Authorization: Bearer $PROKRUST_TOKEN" \
-H 'Content-Type: application/json' \
-H 'Connect-Protocol-Version: 1' \
"$PROKRUST_URL/prokrust.api.v1alpha1.CatalogService/InspectSource" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"connectionName": "source",
"connectionUid": "f36380d0-960e-57af-b8dd-7819ec635a5d",
"connectionResourceVersion": "42",
"path": "records/"
}
JSON

Returned error​

{
"code": "unimplemented",
"message": "Use ProviderCatalogService/InspectConnectorSource"
}