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
| Header | Value and purpose |
|---|---|
Authorization | Use Bearer $PROKRUST_TOKEN for a Kubernetes caller authorized for this operation. Browser calls use the signed-in session. |
Content-Type | application/json selects ProtoJSON for this unary request. |
Connect-Protocol-Version | 1 selects version 1 of the Connect protocol. |
Request fields
| JSON field | Type | Meaning |
|---|---|---|
namespace | string | Kubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives. |
connection | SourceConnectionRef | Registered connection identity to authorize and probe, browse, or inspect. |
parent | SourceSelector | Optional parent selector for browsing below a source. Omit to browse the provider root. |
pageSize | uint32 | Zero requests 100 entries from the provider. Set up to 1000 for another page size. |
pageToken | bytes | Opaque 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
| JSON field | Type | Meaning |
|---|---|---|
responseJson | bytes | Connector protocol response serialized as UTF-8 ProtoJSON bytes. Decode the outer base64 field before reading the inner message. |
Example response
{
"responseJson": "eyJlbnRyaWVzIjpbeyJkaXNwbGF5TmFtZSI6IkV2ZW50cyIsImNhdGVnb3J5IjoiZml4dHVyZSIsInNlbGVjdGFibGUiOnRydWUsInNlbGVjdG9yIjp7InNjaGVtYVZlcnNpb24iOiJ2MSIsImNhbm9uaWNhbEpzb24iOiJleUprWVhSaGMyVjBJam9pWlhabGJuUnpJbjA9In19XX0="
}