Skip to main content

ProviderCatalogService.ProbeSourceConnection

Run the enabled provider’s access probe against the pinned connection. Decode responseJson as UTF-8 connector ProtoJSON. The example decodes to a positive usability result. The connection UID must still match the caller-readable object.

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

POST /prokrust.api.v1alpha1.ProviderCatalogService/ProbeSourceConnection

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​

ProbeSourceConnectionRequest

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.

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