青龙面板[Qinglong] icon

青龙面板[Qinglong]

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

Overview

This node integrates with the QingLong panel API, a task scheduling and management platform. It allows users to perform various operations on different resources such as crontabs, subscriptions, environment variables, configuration files, scripts, dependencies, logs, and system settings.

Specifically, for the 配置文件 (Configuration File) resource with the 保存配置文件 (Save Configuration File) operation, the node sends a POST request to save or update a configuration file on the QingLong server. This is useful when automating the management of configuration files remotely, such as updating script configurations or other system settings stored as files.

Practical example:
You have a JSON configuration file that needs to be updated regularly based on external data or workflow results. Using this node, you can automate saving the updated content directly to the QingLong panel without manual intervention.

Properties

Name Meaning
请求Body (body) JSON object containing the configuration file details to save. Expected format: {"name":"filename:string","content":"file content:string"}

Output

The node outputs the response from the QingLong API in the json field under the property result. This typically contains the API's confirmation or result of the save operation, such as success status or error messages.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating requests to the QingLong API.
  • The node depends on the QingLong API being accessible at its configured endpoint.
  • No additional environment variables are explicitly required beyond the API authentication.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Incorrectly formatted JSON in the "请求Body" property may lead to API errors.
    • Specifying a non-existent configuration file name or insufficient permissions on the QingLong server could cause save failures.
  • Error messages:

    • Errors thrown by the node include messages indicating unimplemented operations if the selected operation is not supported.
    • API errors returned from QingLong will be included in the node's error output; check the message for details like invalid parameters or authorization issues.
  • Resolution tips:

    • Ensure the API key credential is correctly set up and has necessary permissions.
    • Validate the JSON structure in the input body before execution.
    • Confirm the target configuration file name exists or is allowed to be created/updated.

Links and References

Discussion