Skip to main content

ProviderCatalogService.InspectConnectorSource

Inspect one source using the selector version and configuration advertised by the enabled provider. The example decodes to selected metadata from the Synthetic connector.

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

POST /prokrust.api.v1alpha1.ProviderCatalogService/InspectConnectorSource

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​

InspectConnectorSourceRequest

JSON fieldTypeMeaning
namespacestringKubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives.
connectionSourceConnectionRefRegistered connection identity to authorize and probe, browse, or inspect.
selectorSourceSelectorProvider selector identifying one source, including its schema version and UTF-8 JSON configuration.

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.ProviderCatalogService/InspectConnectorSource" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"connection": {
"type": {
"apiVersion": "synthetic.sources.prokrust.ai/v1",
"kind": "SyntheticConnection"
},
"name": "source",
"uid": "5cd3c9cd-1f14-51be-8e21-45591e3e0065"
},
"selector": {
"schemaVersion": "v1",
"configJson": "eyJkYXRhc2V0IjoiZXZlbnRzIn0="
}
}
JSON

Response fields​

ConnectorDiscoveryResponse

JSON fieldTypeMeaning
responseJsonbytesConnector protocol response serialized as UTF-8 ProtoJSON bytes. Decode the outer base64 field before reading the inner message.

Example response​

{
"responseJson": "eyJkZXRlY3RlZEZvcm1hdHMiOlsiY3N2Il0sIm1ldGFkYXRhIjp7ImVzdGltYXRlZFJvd3MiOiIxMjgiLCJlc3RpbWF0ZWRPYmplY3RzIjoiMiIsImJhc2lzIjoic3ludGhldGljLWdlbmVyYXRvci1tZXRhZGF0YSJ9fQ=="
}