Resource Overview
Resources let you connect to databases, APIs, and other external systems.
Resources in Airplane allow you to easily configure connections to external systems like databases and APIs and use them in your tasks. Currently, Airplane supports PostgreSQL, MySQL, and REST APIs.
To create and manage resources, you must be a team admin. Visit the Resources settings page to add a new resource:

Supported Resources

For details on each specific resource, see below:
Don't see the database or APIs you're looking for? Let us know by emailing [email protected]–we're constantly adding more resources and your feedback helps!

Using Resources in Sessions

Resources can be used in sessions.
For example, once a database resource like Postgres has been configured, you can start a new session, add a SQL block, and run queries using it:
That's all you have to do–Airplane will handle securely passing the connection information to the agent running the query.

Using Resources in Tasks

Depending on the resource type, different task types support using resources as well.

SQL

When creating a SQL task you can select a database resource to query against:

REST

When you create a REST task, you can select a REST API. The REST API's base URL will be used, as well as any headers specified on the resource:

Custom Tasks

Resources aren't yet supported for custom tasks, but support for them is planned! You will eventually be able to attach resource values to environment variables passed to the task.
Last modified 9d ago