CatalogService.ListActivities
List workspace activity roots, with optional kind and state filters. Use the returned references to inspect one activity graph.
CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.CatalogService/ListActivities
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. |
kinds | list of string | Case-sensitive resource kind filters. Omit to list all supported activity kinds. |
states | list of string | Activity display-state filters. Omit to include all available states. |
pageSize | int32 | Zero returns up to 50 nodes or roots. Request 1 through 200 to change the page size. |
pageToken | string | Opaque continuation from the preceding response. Omit it for the first page and keep other selection fields unchanged. |
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/ListActivities" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"kinds": [
"TrainingRun"
],
"pageSize": 10
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
roots | list of ActivityNode | Top-level activities matching this page. Pass a root resourceRef to GetActivity. |
nextPageToken | string | Opaque continuation for the next page. Stop when it is empty. |
revision | string | Opaque revision for this activity inventory. Keep it with the returned page when comparing refreshes. |
Example response
{
"roots": [
{
"id": "analytics/TrainingRun/train-values/91c90b29-d618-5dbf-bc4b-391c5aababcd",
"resourceRef": {
"namespace": "analytics",
"kind": "TrainingRun",
"name": "train-values",
"uid": "91c90b29-d618-5dbf-bc4b-391c5aababcd"
},
"resourceVersion": "42",
"observedGeneration": "1",
"phase": "Running",
"displayState": "Running"
}
],
"revision": "sha256:0651863bf5d902262b17c4621ec340544ff016752543d99a92d7d22872d8a455"
}