Actions64
- 定时任务 Actions
- 订阅管理 Actions
- 环境变量 Actions
- 配置文件 Actions
- 脚本管理 Actions
- 依赖管理 Actions
- 日志管理 Actions
- 系统设置 Actions
Overview
This node integrates with the QingLong Panel API to manage various resources related to task scheduling and automation. Specifically, for the 订阅管理 (Subscription Management) resource with the 创建订阅 (Create Subscription) operation, it allows users to create new subscription entries by sending detailed subscription configuration data to the QingLong backend.
Typical use cases include automating the creation of subscriptions that define scheduled tasks or scripts to be run on the QingLong platform. For example, a user can programmatically add a new subscription specifying its type, schedule, URL, whitelist/blacklist rules, and other advanced options like pre/post execution scripts or proxy settings.
Properties
| Name | Meaning |
|---|---|
| 请求Body | JSON object containing the subscription details. The expected structure includes fields such as: - type: Subscription type (string) - schedule: Schedule timing (string) - interval_schedule: Object with type (string) and value (number) - name: Subscription name (string) - url: Subscription URL (string) - whitelist: Whitelist rules (string) - blacklist: Blacklist rules (string) - branch: Branch (string) - dependences: Dependencies (string) - pull_type: Pull type (string) - pull_option: Pull options (object) - extensions: Extensions (string) - sub_before: Script to execute before subscription (string) - sub_after: Script to execute after subscription (string) - schedule_type: Schedule type (string) - alias: Alias (string) - proxy: Proxy settings (string) - autoAddCron: Automatically add cron job (boolean) - autoDelCron: Automatically delete cron job (boolean) |
Output
The node outputs the result of the API call in the json field under the property result. This typically contains the response from the QingLong API after creating the subscription, which may include confirmation details, the created subscription's ID, or error information if the creation failed.
No binary data output is involved in this operation.
Example output JSON structure:
{
"result": {
// API response data about the created subscription
}
}
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 the QingLong API endpoints.
- No additional external dependencies beyond the QingLong API service are required.
Troubleshooting
Common Issues:
- Invalid or missing API credentials will cause authentication failures.
- Malformed JSON in the
请求Bodyproperty can lead to request errors. - Providing unsupported or incomplete subscription fields may cause the API to reject the request.
Error Messages:
- If the operation is not implemented or recognized, the node throws an error indicating the operation is not supported.
- API errors returned from QingLong are propagated and should be checked for specific messages regarding invalid parameters or permission issues.
Resolution Tips:
- Ensure the API key credential is correctly configured and has sufficient permissions.
- Validate the JSON structure of the subscription body before executing.
- Refer to QingLong API documentation for correct field values and formats.
Links and References
- QingLong Panel API Documentation: https://qinglong.online/api/
- n8n Documentation on Creating Custom Nodes: https://docs.n8n.io/integrations/creating-nodes/
- JSON Schema Reference (for validating input JSON): https://json-schema.org/
This summary focuses solely on the static analysis of the provided source code and the specified resource-operation combination.