青龙面板[Qinglong] icon

青龙面板[Qinglong]

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

Overview

This node integrates with the QingLong Panel API to manage scheduled tasks and related resources such as views, subscriptions, environment variables, configurations, scripts, dependencies, logs, and system settings. Specifically, for the "定时任务" (Scheduled Task) resource and the "删除视图" (Delete View) operation, it allows users to delete one or multiple views from the QingLong crontab views list.

Common scenarios include automating the management of scheduled task views in QingLong, such as cleaning up unused or obsolete views programmatically within an n8n workflow. For example, a user might want to delete specific views based on certain criteria or after processing their data elsewhere.

Properties

Name Meaning
视图列表【可多选】 (viewsIds) A multi-select list of view IDs to delete. Users can select one or more views to be removed from the QingLong panel. The options are dynamically loaded from existing views via the API.

Output

The node outputs the JSON response returned by the QingLong API after attempting to delete the specified views. This typically contains information about the success or failure of the deletion request.

  • The output is accessible under the json.result field of the first input item.
  • No binary data output is produced by this operation.

Example output structure:

{
  "result": {
    // API response details about the deletion operation
  }
}

Dependencies

  • Requires an API key credential for authenticating with the QingLong Panel API.
  • The node uses internal helper functions to obtain an authentication token and make HTTP requests to QingLong's REST API endpoints.
  • The node expects the QingLong API base URL and credentials to be configured properly in n8n.

Troubleshooting

  • Common issues:

    • Invalid or expired API token: Ensure the API key credential is valid and has sufficient permissions.
    • Specifying non-existent view IDs: The selected view IDs must exist; otherwise, the API may return errors.
    • Network connectivity problems: Verify that the n8n instance can reach the QingLong API endpoint.
  • Error messages:

    • If the operation is not implemented or unsupported, the node throws an error indicating the operation is not yet implemented.
    • API errors from QingLong will be surfaced as node execution errors with relevant messages.
  • Resolution tips:

    • Double-check the selected views in the multi-select property.
    • Confirm API credentials and network access.
    • Review the detailed error message for clues and consult QingLong API documentation if needed.

Links and References

Discussion