mittwald icon

mittwald

Interact with mittwald mStudio API

Actions100

Overview

This node operation, Project File System Get File Content, allows you to retrieve the content of a specific file within a given project. It is useful when you need to programmatically access logs, configuration files, or any other file stored in a project's file system for further processing, analysis, or monitoring.

Practical examples:

  • Fetching log files from a project to analyze errors or usage patterns.
  • Retrieving configuration files to verify settings or automate deployments.
  • Accessing report files generated by the project for integration with other tools.

Properties

Name Meaning
Project Id The unique identifier of the project from which to fetch the file content.
File The path and name of the file to retrieve (e.g., /home/example.log).
Inline Boolean flag indicating how the file should be served: true to serve inline (displayed in browser), or false to serve as an attachment (downloaded).

Output

The output contains the content of the requested file in JSON format. The exact structure depends on the API response but typically includes the file data as a string or stream.

If the file is binary, the node will handle it accordingly, serving the file content either inline or as an attachment based on the Inline property.

Dependencies

  • Requires an API key credential to authenticate requests against the mittwald mStudio API.
  • The node communicates with the mittwald API endpoint at https://api.mittwald.de.
  • Proper network access to the mittwald API service is necessary.

Troubleshooting

  • File Not Found: If the specified file path does not exist in the project, the API may return an error. Verify the file path and project ID are correct.
  • Authentication Errors: Ensure that the API key credential is valid and has sufficient permissions to access the project file system.
  • Permission Denied: The user associated with the API key might lack rights to read files in the specified project.
  • Network Issues: Connectivity problems to the mittwald API endpoint can cause request failures; check your network and proxy settings if applicable.

Links and References

Discussion