Skip to main content

Source

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

Dremio keeps 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.

note

The Source API is supported only for AWS Glue Data Catalog sources.

Clearing the Permission Cache

Clear the AWS Lake Formation permission cache for an AWS Glue Data Catalog source.

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

Parameters

project-id Path   String (UUID)

Unique identifier of the project that contains the AWS Glue Data Catalog source.

Example: 319fbada-4857-4d52-8901-7a857416ded6


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/319fbada-4857-4d52-8901-7a857416ded6/source/glueProd/permission-cache' \
--header 'Authorization: Bearer <personal access token>' \
--header 'Content-Type: application/json'
Example Response
No response

Responses

204   No Content

400   Bad Request

404   Not Found

415   Unsupported Media Type

500   Internal Server Error