Skip to main content

CatalogService.GetActivity

Read a page of nodes and edges for one exact activity root. Inspect incomplete and unavailableReason when permissions or missing objects limit the graph.

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

POST /prokrust.api.v1alpha1.CatalogService/GetActivity

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​

GetActivityRequest

JSON fieldTypeMeaning
rootRefActivityReferenceExact workspace resource identity used as the root of the activity graph.
pageSizeint32Zero returns up to 50 nodes or roots. Request 1 through 200 to change the page size.
pageTokenstringOpaque 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/GetActivity" \
--data-binary @- <<'JSON'
{
"rootRef": {
"namespace": "analytics",
"kind": "TrainingRun",
"name": "train-values",
"uid": "91c90b29-d618-5dbf-bc4b-391c5aababcd"
},
"pageSize": 10
}
JSON

Response fields​

GetActivityResponse

JSON fieldTypeMeaning
nodeslist of ActivityNodeActivity or workflow nodes included on this page.
edgeslist of ActivityEdgeOwnership, dependency, and input-reuse relationships between activity nodes.
nextPageTokenstringOpaque continuation for the next page. Stop when it is empty.
incompleteboolTrue when missing objects or access restrictions prevented a complete view.

Example response​

{
"nodes": [
{
"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"
}
]
}