Skip to main content

Source

Use the Source API to clear the AWS Lake Formation permission cache for AWS Glue Data Catalog sources. The Source API is supported only for AWS Glue Data Catalog sources.

Dremio maintains a cache of permissions defined in AWS Lake Formation with a one-hour expiry time. When the cache for the queried table expires, Dremio requests permission information from AWS Lake Formation. After changing permissions on the AWS Lake Formation side, use the Source API to immediately invalidate Dremio's AWS Lake Formation permission cache.

Clear the Permission Cache

Method and URL
DELETE /v0/projects/{project_id}/source/{source-name}/permission-cache

Parameters

project_id Path   String (UUID)


source-name Path   String

The name of the AWS Glue Data Catalog source whose Lake Formation permission cache you want to clear.

Example: glueProd

Example

Request
curl -X DELETE "https://api.dremio.cloud/v0/projects/$PROJECT_ID/source/glueProd/permission-cache" \
-H "Authorization: Bearer $DREMIO_TOKEN" \
-H 'Content-Type: application/json'

A successful request returns an empty response body with HTTP status 204 No Content.

Response Status Codes

204   No Content

400   Bad Request

404   Not Found

415   Unsupported Media Type