TableProfileService.GetTableProfile
Read the state and available results for the caller’s profile. Use the UID returned by StartTableProfile. A queued profile can be polled until it reaches a terminal state.
TableProfileService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.profile.v1.TableProfileService/GetTableProfile
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/GetTableProfile" \
--data-binary @- <<'JSON'
{
"workspace": "analytics",
"profileUid": "00000000-0000-4000-8000-000000000006"
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
state | ProfileState | Current profile state. Poll this field until the operation succeeds, fails or is cancelled. |
accounting | UsageAccounting | Current observed and charged usage, when available. |
result | ArtifactRef (explicit presence) | Immutable artifact reference for the retained result, when present. |
failure | FailureDetail (explicit presence) | Structured error reason and diagnostics when available. |
profile | ProfileResult (explicit presence) | Verified inline result returned to the authorized caller, bounded to 1 MiB. |
previewJson | bytes | Base64-encoded UTF-8 JSON containing schemaVersion, columns and rows in a sample preview, limited to 100 rows and 1 MiB. |
Example response
{
"state": "PROFILE_STATE_QUEUED"
}
Kubernetes reference
See the TableProfile reference for the resource configuration and controller observations.