Coolify icon

Coolify

Interact with Coolify API

Overview

This node integrates with the Coolify API to manage various resources related to application deployment and infrastructure. Specifically, for the "Environment Variable" resource with the "Get Many" operation, it retrieves multiple environment variables associated with a specified application. This is useful in scenarios where you need to programmatically fetch all environment variables configured for an application, such as for auditing, synchronization, or dynamic configuration purposes.

Practical examples include:

  • Automatically retrieving environment variables before deploying or updating an application.
  • Exporting environment variables for backup or migration.
  • Integrating environment variable data into other workflows or systems.

Properties

Name Meaning
Application ID The unique identifier of the application whose environment variables you want to retrieve. This is a required string input.

Output

The node outputs an array of JSON objects representing the environment variables retrieved from the Coolify API for the specified application. Each object typically contains details about an individual environment variable, such as its name, value, and possibly metadata like creation date or scope (the exact structure depends on the Coolify API response).

No binary data output is involved in this operation.

Dependencies

  • Requires access to the Coolify API.
  • Needs an API authentication token credential configured in n8n to authorize requests to the Coolify service.
  • The node uses internal helper functions to make HTTP requests to endpoints like /api/v1/environmentVariables (implied by resource naming).
  • Network connectivity to the Coolify API endpoint is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Application ID: Ensure the Application ID provided exists and is correct.
    • Authentication errors: Verify that the API key or token credential is correctly set up and has sufficient permissions.
    • Network errors: Check network connectivity and API availability.
    • Resource or operation not implemented error: This occurs if the resource or operation name is misspelled or unsupported.
  • Error messages:

    • "The resource \"environmentVariable\" is not implemented!": Indicates the resource name is incorrect or missing implementation.
    • "The operation \"getAll\" is not implemented!": Indicates the operation name is invalid or not supported for the resource.

    To resolve these, verify the resource and operation names exactly match those supported by the node.

Links and References

Discussion