TableProfileService.CancelTableProfile
Request cancellation of an outstanding profile. If cancellation is pending, poll GetTableProfile until it reports a terminal state. A repeated cancellation returns the current state.
TableProfileService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.profile.v1.TableProfileService/CancelTableProfile
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 |
|---|---|---|
workspace | string | Name of the workspace namespace in which the caller starts or reads the profile. |
profileUid | string | UID returned by StartTableProfile. Use it in the same workspace and caller scope. |
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.profile.v1.TableProfileService/CancelTableProfile" \
--data-binary @- <<'JSON'
{
"workspace": "analytics",
"profileUid": "00000000-0000-4000-8000-000000000006"
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
state | ProfileState | Cancellation state, or the existing terminal state if work already ended. Poll GetTableProfile to confirm the outcome. |
Example response
{
"state": "PROFILE_STATE_CANCEL_REQUESTED"
}