Skip to main content

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​

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​

GetTableProfileRequest

JSON fieldTypeMeaning
workspacestringName of the workspace namespace in which the caller starts or reads the profile.
profileUidstringUID 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​

GetTableProfileResponse

JSON fieldTypeMeaning
stateProfileStateCurrent profile state. Poll this field until the operation succeeds, fails or is cancelled.
accountingUsageAccountingCurrent observed and charged usage, when available.
resultArtifactRef (explicit presence)Immutable artifact reference for the retained result, when present.
failureFailureDetail (explicit presence)Structured error reason and diagnostics when available.
profileProfileResult (explicit presence)Verified inline result returned to the authorized caller, bounded to 1 MiB.
previewJsonbytesBase64-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.