Actions64
- 定时任务 Actions
- 订阅管理 Actions
- 环境变量 Actions
- 配置文件 Actions
- 脚本管理 Actions
- 依赖管理 Actions
- 日志管理 Actions
- 系统设置 Actions
Overview
This node integrates with the Qinglong Panel API, a platform for managing scheduled tasks and environment variables. Specifically, for the resource "环境变量" (Environment Variables) and operation "启用环境变量" (Enable Environment Variables), the node enables one or more selected environment variables in Qinglong.
Common scenarios include:
- Activating specific environment variables to control task behavior dynamically.
- Managing multiple environment variables in batch to enable or disable features without manual intervention.
- Automating environment variable state changes as part of larger workflows.
For example, you might use this node to enable a set of API keys or configuration flags before running scheduled scripts that depend on them.
Properties
| Name | Meaning |
|---|---|
| 环境变量列表【可多选】 (envIds) | List of environment variable IDs to enable. Multiple selections allowed. |
The property 环境变量列表【可多选】 lets users select one or more environment variables by their IDs to be enabled via the API call.
Output
The node outputs JSON data under the field json.result, which contains the response from the Qinglong API after attempting to enable the specified environment variables.
The structure of the output depends on the Qinglong API's response but typically includes success status, any error messages, and details about the updated environment variables.
No binary data output is involved.
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 endpoints.
- No additional external dependencies beyond the Qinglong API and its authentication are required.
Troubleshooting
Common issues:
- Invalid or expired API credentials will cause authentication failures.
- Specifying environment variable IDs that do not exist or belong to another user may result in errors.
- Network connectivity problems can prevent successful API calls.
Error messages:
"环境变量模块的env_enable操作暂未实现"("The env_enable operation for the environment variable module is not yet implemented") — This should not occur here since the operation is implemented; if it does, verify the node version.- API errors returned from Qinglong will be passed through; check the message for details such as permission denied or invalid parameters.
Resolutions:
- Ensure the API key credential is valid and has sufficient permissions.
- Verify the environment variable IDs are correct and accessible.
- Check network connectivity and firewall settings.
Links and References
- Qinglong Panel API documentation: https://qinglong.online/api/
- n8n Documentation on creating custom nodes: https://docs.n8n.io/integrations/creating-nodes/
- Qinglong GitHub repository (for source and API details): https://github.com/whyour/qinglong