CatalogService.GetActivityExecution
Read the Argo workflow linked to an activity owner. Supply workflowRef to pin the observed workflow. The response can carry an unavailability reason before an execution exists. The example shows a request made before a workflow reference exists.
CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.CatalogService/GetActivityExecution
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 |
|---|---|---|
ownerRef | ActivityReference | Exact workspace activity owner whose linked workflow should be inspected. |
workflowRef | ActivityReference | Exact Workflow identity. Pin it on the request to reject a changed execution. |
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/GetActivityExecution" \
--data-binary @- <<'JSON'
{
"ownerRef": {
"namespace": "analytics",
"kind": "TrainingRun",
"name": "train-values",
"uid": "91c90b29-d618-5dbf-bc4b-391c5aababcd"
},
"pageSize": 10
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
nodes | list of ActivityNode | Activity or workflow nodes included on this page. |
nextPageToken | string | Opaque continuation for the next page. Stop when it is empty. |
uiUrl | string | Argo UI link when a public UI base is configured and a workflow is available. |
unavailableReason | string | Reason execution or profile data cannot be shown, such as a missing workflow, missing publication, or denied read. |
workflowRef | ActivityReference | Exact Workflow identity. Pin it on the request to reject a changed execution. |
phase | string | Observed lifecycle phase. Interpret it together with the status or availability of the corresponding object. |
message | string | Human-readable diagnostic or progress detail to show with the machine-readable state. |
Example response
{
"unavailableReason": "WorkflowUnavailable"
}