Skip to main content

CatalogService.CancelSnapshotBuild

Request cancellation of the pinned build. The disposition distinguishes a new request, an already terminal build, and a build that began committing.

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

POST /prokrust.api.v1alpha1.CatalogService/CancelSnapshotBuild

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​

CancelResourceRequest

JSON fieldTypeMeaning
namespacestringKubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives.
namestringKubernetes metadata.name of the selected resource in this namespace.
uidstringRequired; prevents cancellation of a same-name replacement.
resourceVersionstringRequired; prevents a stale control from targeting newer state.

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/CancelSnapshotBuild" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"name": "build-events",
"uid": "7ed5f1f4-990e-51f4-a2d4-2397f01135e6",
"resourceVersion": "42"
}
JSON

Response fields​

CancelBuildResponse

JSON fieldTypeMeaning
resourceResourceResource projection for the object affected by the operation.
dispositionCancellationDispositionWhether cancellation was requested, the build already terminated, or the commit began.

Example response​

{
"resource": {
"namespace": "analytics",
"name": "build-events",
"uid": "7ed5f1f4-990e-51f4-a2d4-2397f01135e6",
"resourceVersion": "43",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"request": {
"requestId": "retry-001",
"ordinal": 1,
"snapshotRef": {
"kind": "TableSnapshot",
"name": "events-snapshot",
"uid": "f5d66dad-e2ca-5db3-8ea8-7569d0eaa226"
},
"dataRequestDigest": "sha256:fda8e2881d694c1a37a2bd187acc3c9b1e0b31fd202c091901ba7ce1c8a5e93b"
},
"control": {
"cancelRequested": true
}
}
},
"disposition": "CANCELLATION_DISPOSITION_REQUESTED"
}