Skip to main content

ProviderCatalogService.BrowseConnectorSources

Browse one bounded page of sources. Omit parent to browse the root. Pass a returned token back as opaque bytes. The example decodes to a selectable events entry.

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

POST /prokrust.api.v1alpha1.ProviderCatalogService/BrowseConnectorSources

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​

BrowseConnectorSourcesRequest

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.
parentSourceSelectorOptional parent selector for browsing below a source. Omit to browse the provider root.
pageSizeuint32Zero requests 100 entries from the provider. Set up to 1000 for another page size.
pageTokenbytesOpaque provider continuation bytes from the previous browse response. Encode them as base64 in ProtoJSON.

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