Skip to main content

CatalogService.RetrySnapshotPreparation

Submit the next retry command for an observed failed preparation. Copy the exact failed attempt references and use a stable command ID for a retry of the same request.

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

POST /prokrust.api.v1alpha1.CatalogService/RetrySnapshotPreparation

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​

RetrySnapshotPreparationRequest

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.
uidstringKubernetes metadata.uid identifying this particular object. Read it from the resource before targeting an existing instance.
resourceVersionstringOpaque Kubernetes resource version. Copy the value from a current read. Preserve it as a string.
commandIdstringStable retry command identifier. Reuse it only when replaying the same command.
sequenceuint64Set to the observed command sequence plus one. Reuse the same sequence for an identical command replay.
failedBuildRefslist of BuildAttemptReferenceExact observed failed builds to retry. Copy name, UID, and ordinal from the current preparation status.
resourceOverridesmap from string to JSON objectOptional per-step resource settings for the selected failed builds. Keys identify the preparation steps.

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/RetrySnapshotPreparation" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"name": "prepare-events",
"uid": "31ac6f19-054f-5aae-b389-794e31eaf935",
"resourceVersion": "42",
"commandId": "retry-001",
"sequence": "1",
"failedBuildRefs": [
{
"name": "build-events",
"uid": "7ed5f1f4-990e-51f4-a2d4-2397f01135e6",
"ordinal": 1
}
]
}
JSON

Response fields​

Resource

JSON fieldTypeMeaning
namespacestringKubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives.
namestringKubernetes metadata.name. Combine it with namespace and UID when acting on an existing object.
uidstringKubernetes metadata.uid identifying this particular object. Read it from the resource before targeting an existing instance.
resourceVersionstringOpaque Kubernetes resource version. Copy the value from a current read. Preserve it as a string.
generationint64Kubernetes spec generation. Compare it with status.observedGeneration to check whether the controller processed this spec.
specJSON objectComplete Kubernetes spec object for this resource kind. Use the corresponding CRD field reference.
statusJSON objectController observations from the CRD status, when published. Compare observedGeneration with generation before interpreting conditions.
labelsmap from string to stringKubernetes labels included in the resource projection. Use them to identify release or application ownership.
annotationsmap from string to stringKubernetes annotation values included in the projection. Check the owning tool’s annotations before changing a managed object.
creationTimestampstringKubernetes creation time in RFC 3339 format.
deletionTimestampstringAccepted deletion remains pending until the resource disappears.

Example response​

{
"namespace": "analytics",
"name": "prepare-events",
"uid": "31ac6f19-054f-5aae-b389-794e31eaf935",
"resourceVersion": "43",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"graphRef": {
"name": "events-graph"
},
"coverage": {
"completeThrough": "2026-05-12T10:00:00Z"
},
"tables": {
"events": {
"snapshotTemplate": {}
}
},
"control": {
"retry": {
"commandId": "retry-001",
"sequence": 1,
"failedBuildRefs": [
{
"name": "build-events",
"uid": "7ed5f1f4-990e-51f4-a2d4-2397f01135e6",
"ordinal": 1
}
]
}
}
}
}

For the fields inside a resource definition or status, select the kind in the Kubernetes reference.