Overview
The SQL API provides programmatic access to Lunar's data through SQL queries. Through this interface, you can access and analyze information about your components, domains, policies, and more.
Accessing the SQL API
To access the SQL API, use the Lunar CLI command lunar sql connection-string
to get a PostgreSQL connection string that can be used with any PostgreSQL client:
The access is read-only and restricted to only the views described in this documentation.
Available Views
For detailed information about available views, explore these pages:
Last updated