mittwald icon

mittwald

Interact with mittwald mStudio API

Actions100

Overview

The "Project File System Get Disk Usage" operation retrieves disk usage information starting from a specified directory within a given project. This node is useful for monitoring storage consumption in project environments, helping users identify how much disk space is used by files and directories under a certain path.

Practical examples include:

  • Checking the disk usage of log files or data folders within a project to manage storage limits.
  • Automating alerts or reports based on disk usage thresholds.
  • Integrating disk usage data into dashboards for resource monitoring.

Properties

Name Meaning
Project Id The unique identifier of the project for which disk usage is being calculated.
Directory The starting directory path from which to calculate disk usage. Defaults to /home/example.log.

Output

The node outputs JSON data containing the disk usage statistics starting from the specified directory within the project. The exact structure is not detailed in the provided code, but typically it would include fields such as total size, used space, free space, or breakdowns per subdirectory.

No binary data output is indicated.

Dependencies

  • Requires an API key credential to authenticate requests to the mittwald mStudio API.
  • The node uses the mittwald mStudio API endpoint at https://api.mittwald.de.
  • Proper configuration of the API authentication credential in n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Project Id may cause the API request to fail.
    • Incorrect directory paths might result in empty or error responses.
    • Network connectivity problems can prevent access to the mittwald API.
  • Error messages:

    • Authentication errors indicate issues with the API key credential; verify and update credentials.
    • "Directory not found" or similar errors suggest the specified directory does not exist or is inaccessible.
    • API rate limiting or quota exceeded errors require checking API usage limits.

Links and References

Discussion