CatalogService.ListTableSnapshotFiles
List files in the verified TableSnapshot output manifest. Retain the manifest digest and file index for preview or download.
CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.CatalogService/ListTableSnapshotFiles
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 |
|---|---|---|
namespace | string | Kubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives. |
name | string | Kubernetes metadata.name of the selected resource in this namespace. |
uid | string | Kubernetes metadata.uid identifying this particular object. Read it from the resource before targeting an existing instance. |
offset | uint32 | Manifest object index; zero starts the first page. |
pageSize | uint32 | Zero defaults to 100; maximum 100. |
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/ListTableSnapshotFiles" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"name": "events-snapshot",
"uid": "db607470-6181-53ce-91b8-615446c4e0fa",
"pageSize": 10
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
manifestDigest | string | SHA-256 identity of the verified manifest. Keep it with file indices so they refer to the same publication. |
files | list of ArtifactFile | Manifest entries on this page, including the indices needed for preview or download. |
nextOffset | uint32 | Manifest entry offset to use for the following page when hasMore is true. |
hasMore | bool | True when another page is available. Continue with the returned offset or cursor for this operation. |
Example response
{
"manifestDigest": "sha256:c687d66a4fa16752ac849be49935d560250318839e5e350e3aa129c2d732a103",
"files": [
{
"index": 0,
"filename": "part-00000.parquet",
"mediaType": "application/vnd.apache.parquet",
"sizeBytes": "4096",
"digest": "sha256:dd09164db4dac30d29bce5833b8942470afe8064e3b8bdffc60d900d249f1db2"
}
],
"nextOffset": 1
}