Skip to main content

CatalogService.ListPredictionQueries

List PredictionQuery resources in one workspace. Pass nextPageToken back as pageToken to continue the same listing.

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

POST /prokrust.api.v1alpha1.CatalogService/ListPredictionQueries

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​

ListResourcesRequest

JSON fieldTypeMeaning
namespacestringRequired; cluster-wide listing is not exposed.
pageSizeint320 uses 100; valid explicit range is 1..500. Example: 25.
pageTokenstringOpaque Kubernetes continue token.

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/ListPredictionQueries" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"pageSize": 25
}
JSON

Response fields​

ListResourcesResponse

JSON fieldTypeMeaning
resourceslist of ResourceResource projections returned on this page. An empty page contains no matching resources.
nextPageTokenstringOpaque continuation for the next page. Stop when it is empty.
resourceVersionstringResource version of the Kubernetes list snapshot, distinct from the versions on individual items.

Example response​

{
"resources": [
{
"namespace": "analytics",
"name": "value-query",
"uid": "3001a61c-1c61-5f69-8131-1930387b24b2",
"resourceVersion": "42",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"graphRef": {
"name": "events-graph"
},
"pql": "PREDICT events.value FOR EACH events.event_id"
}
}
],
"resourceVersion": "42"
}

Kubernetes reference​

See the PredictionQuery reference for the resource configuration and controller observations.