TrainingService.ListModels
List Model resources in one workspace. Pass nextPageToken back as pageToken to continue the same listing.
TrainingService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.TrainingService/ListModels
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 | Required; cluster-wide listing is not exposed. |
pageSize | int32 | 0 uses 100; valid explicit range is 1..500. Example: 25. |
pageToken | string | Opaque 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.TrainingService/ListModels" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"pageSize": 25
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
resources | list of Resource | Resource projections returned on this page. An empty page contains no matching resources. |
nextPageToken | string | Opaque continuation for the next page. Stop when it is empty. |
resourceVersion | string | Resource version of the Kubernetes list snapshot, distinct from the versions on individual items. |
Example response
{
"resources": [
{
"namespace": "analytics",
"name": "trained-model",
"uid": "321b2231-6ace-5f7c-bbb5-c0f7d83f137a",
"resourceVersion": "42",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"trainingRunRef": {
"name": "train-values",
"uid": "91c90b29-d618-5dbf-bc4b-391c5aababcd"
},
"trainingInputDigest": "sha256:3687160df24be8c71552288897860d810047857e4968c55c565c3e07c4c5dca6",
"trainingResultDigest": "sha256:a0e12bb74ea98aa832ec34f24819defe41dcb19e2a6b51a89263502e3dae0d6c",
"queryDigest": "sha256:4c4ed1afbfdaa1e4c3bf7bbb82d730cecb7e384da91eea4f3cc093fd545524d6",
"graphSnapshotDigest": "sha256:4d1c4c419f2cda7b33d997f5fc95b905c7860d075781c65a290e0be5793c71d4",
"task": "Regression",
"formatVersion": "prokrust.model/v2",
"artifact": {
"uri": "s3://analytics-artifacts/model/manifest.json",
"digest": "sha256:af862f7b1abfc56b313380b8680192247d54e5d8109d76babe1338f416c2e413",
"mediaType": "application/json",
"sizeBytes": 640
}
}
}
],
"resourceVersion": "42"
}
Kubernetes reference
See the Model reference for the resource configuration and controller observations.