Starburst (Trino) data source API reference guide
The trino
endpoint allows you to connect and manage Trino data sources in Immuta.
Additional fields may be included in some responses you receive; however, these attributes are for internal purposes and are therefore undocumented.
POST
/trino/handler
Save the provided connection information as a data source.
Required Immuta permission: CREATE_DATA_SOURCE
This request creates a Trino data source.
GET
/trino/handler/{handlerId}
Get the handler metadata associated with the provided handler ID.
This request returns metadata for the handler with the ID 1
.
PUT
/trino/handler/{handlerId}
Update the data source metadata associated with the provided handler ID. This endpoint does not perform partial updates, but will allow the dictionary to be omitted. In this case, it uses the current dictionary.
Required: The global GOVERNANCE
permission or be the data source owner
This request updates the data source name to Marketing Data
for the data source with the handler ID 1
.
PUT
/trino/bulk
Update the data source metadata associated with the provided connection string.
Required: The global GOVERNANCE
permission or be the data source owner
This request updates the metadata for all data sources with the connection string specified in example-payload.json
.
The payload below adds a certificate (certificate.json
) to the data sources with the provided connection.
PUT
/trino/handler/{handlerId}/triggerHighCardinalityJob
Recalculate the high cardinality column for the specified data source.
Required: The global GOVERNANCE
permission or be the data source owner
The response returns a string of characters that identify the high cardinality job run.
This request re-runs the job that calculates the high cardinality column for the data source with the handler ID 30
.
PUT
/trino/handler/{handlerId}/refreshNativeViewJob
Refresh the view of a data source.
Required: The global GOVERNANCE
permission or be the data source owner
The response returns a string of characters that identifies the refresh view job run.
This request refreshes the view for the data source with the handler ID 7
.