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 scripts. Specifically, the "脚本管理" (Script Management) resource with the "重命名脚本" (Rename Script) operation allows users to rename an existing script file within a specified script path on the Qinglong system.
Typical use cases include:
- Automating script maintenance by renaming scripts programmatically.
- Organizing scripts by updating filenames without manual intervention.
- Integrating script management into larger automation workflows where script names need to be updated dynamically.
For example, you might have a script named backup_old.js that you want to rename to backup_latest.js as part of a deployment pipeline.
Properties
| Name | Meaning |
|---|---|
| 脚本路径 | The directory path where the script is located. |
| 文件名 | The current filename of the script to be renamed. |
| 新文件名 | The new filename to assign to the script after renaming. |
Output
The node outputs JSON data under the json.result field containing the response from the Qinglong API regarding the rename operation. This typically includes success status or error details returned by the API.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the Qinglong Panel API.
- The node uses HTTP requests to interact with the Qinglong API endpoints.
- Proper configuration of the API credentials in n8n is necessary for successful execution.
Troubleshooting
Common Issues:
- Incorrect script path or filename may cause the API to fail to locate the script.
- Insufficient permissions or invalid API credentials will result in authentication errors.
- Providing an empty or invalid new filename can cause the rename operation to fail.
Error Messages:
- Errors thrown by the node indicate unimplemented operations if the operation name is incorrect.
- API errors from Qinglong are passed through and should be checked for details such as "file not found" or "permission denied".
Resolution Tips:
- Verify the script path and filename exist on the Qinglong server.
- Ensure the API key credential is valid and has sufficient permissions.
- Double-check the new filename for validity and uniqueness within the target directory.
Links and References
- Qinglong Panel API Documentation: https://qinglong.online/api/
- Qinglong Project Homepage: https://qinglong.app/ (general reference)