Cockpit

Actions

The Cockpit node allows you to automate work in Cockpit, and integrate Cockpit with other applications. n8n has built-in support for a wide range of Cockpit features, including creating a collection entry, storing data from a form submission, and getting singletons.

On this page, you'll find a list of operations the Cockpit node supports and links to more resources.

Credentials

Refer to Cockpit credentials for guidance on setting up authentication.

Examples and templates

For usage examples and templates to help you get started, take a look at n8n's Cockpit integrations list.

Basic Operations#

  • Collection
    • Create a collection entry
    • Get all collection entries
    • Update a collection entry
  • Form
    • Store data from a form submission
  • Singleton
    • Get a singleton

Example Usage#

This workflow allows you to get entries from a collection in Cockpit. You can also find the workflow on the website. This example usage workflow would use the following two nodes. - Start - Cockpit

The final workflow should look like the following image.

A workflow with the Cockpit node

1. Start node#

The start node exists by default when you create a new workflow.

2. Cockpit node#

  1. First of all, you'll have to enter credentials for the Cockpit node. You can find out how to do that here.
  2. Select your collection from the Collection dropdown list.
  3. Click on Execute Node to run the workflow.
 
 

Credentials

You can use these credentials to authenticate the following nodes with Cockpit.

Prerequisites#

Create a Cockpit account.

Using Access Token#

  1. Open your Cockpit dashboard.
  2. Click on your profile in the top right.
  3. Click on "Account".
  4. Scroll down and copy API key.
  5. Use selected API key and your Cockpit URL in your Cockpit node credentials in n8n.

Getting Cockpit credentials