青龙面板[Qinglong] icon

青龙面板[Qinglong]

青龙面板计划任务节点.详细API请参考:https://qinglong.online/api/

Overview

This node integrates with the Qinglong Panel API, a platform for managing scheduled tasks and scripts. Specifically, the "脚本管理" (Script Management) resource with the "更新脚本内容" (Update Script Content) operation allows users to update the content of a script file located on the Qinglong server.

Typical use cases include:

  • Automating updates to scripts stored in Qinglong without manual intervention.
  • Dynamically modifying script contents as part of a workflow.
  • Managing script versions or applying patches programmatically.

For example, you might use this node to update a maintenance script's code before triggering its execution, ensuring the latest logic is always run.

Properties

Name Meaning
脚本路径 The directory path where the target script file is located on the Qinglong server.
文件名 The name of the script file to be updated.
文件内容 The new content/text that will replace the existing content of the specified script file.

Output

The node outputs JSON data under the json field of the first input item. This JSON contains a result property which holds the response from the Qinglong API after attempting to update the script content. The structure and details of this response depend on the Qinglong API but typically confirm success or provide error information.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Qinglong Panel API.
  • The node uses internal helper functions to obtain authentication tokens and make HTTP requests to Qinglong endpoints.
  • The Qinglong API base URL and authentication must be configured properly in n8n credentials.

Troubleshooting

  • Common issues:

    • Incorrect script path or filename may cause the API to fail updating the script.
    • Insufficient permissions or invalid API credentials can lead to authentication errors.
    • Network connectivity problems between n8n and the Qinglong server.
  • Error messages:

    • If the operation is not implemented or parameters are missing, the node throws an error indicating the operation is not supported.
    • API errors returned from Qinglong are surfaced via the node’s error handling, often including descriptive messages from the API.
  • Resolution tips:

    • Verify the script path and filename exactly match those on the Qinglong server.
    • Ensure the API key credential is valid and has necessary permissions.
    • Check network access and firewall settings.
    • Review the API response message for specific failure reasons.

Links and References

Discussion