AIGC网盘

与AIGC网盘进行文件操作的集成节点

Overview

This node integrates with the AIGC Network Disk service to perform file management operations such as listing files, uploading files (from local binary data or external URLs), retrieving file information, downloading files, and deleting files (individually or in batches). It is useful for automating workflows that involve cloud file storage and management, enabling users to search, filter, sort, upload, download, and delete files programmatically.

A common scenario would be automatically syncing files from an external source into the AIGC Network Disk, then listing and processing those files based on metadata like category or upload time. For example, a user could list all video files uploaded in the last week, download selected files for processing, or batch delete outdated files.

Properties

Name Meaning
搜索关键词 (query) Keyword to search within file names and descriptions. Supports Chinese characters.
文件分类 (categoryId) Filter files by category. Options: 其他 (Other), 全部 (All), 视频 (Video), 图片 (Image), 文档 (Document), 压缩包 (Archive), 音频 (Audio).
排序字段 (sortBy) Field to sort results by. Options: 上传时间 (upload_time), 文件大小 (file_size), 访问次数 (access_count), 下载次数 (download_count).
排序方向 (sortOrder) Sort direction. Options: 降序 (desc), 升序 (asc).
页码 (page) Page number to retrieve, starting from 1.
每页数量 (size) Number of files per page, maximum 100.

These properties are used specifically for the "获取文件列表" (listFiles) operation.

Output

The output JSON object for the "获取文件列表" operation contains:

  • success: Boolean indicating if the request was successful.
  • data: The actual list of files returned by the API, including their metadata.
  • operation: The string "listFiles" indicating the performed operation.
  • params: The parameters used for the request (search query, category, sorting, pagination).

Example output structure:

{
  "success": true,
  "data": [
    {
      "id": "file_id_1",
      "filename": "example.jpg",
      "file_size": 123456,
      "file_type": "image/jpeg",
      "upload_time": "2024-01-01T12:00:00Z",
      ...
    },
    ...
  ],
  "operation": "listFiles",
  "params": {
    "query": "keyword",
    "category_id": 1,
    "sort_by": "upload_time",
    "sort_order": "desc",
    "page": 1,
    "size": 20
  }
}

No binary data is output for this operation.

Dependencies

  • Requires an API key credential for authenticating requests to the AIGC Network Disk API.
  • The node uses HTTP requests with authentication to communicate with the AIGC Network Disk service.
  • No additional environment variables are explicitly required beyond the API credential configuration.

Troubleshooting

  • Common issues:

    • Invalid or missing API token can cause authentication failures.
    • Providing invalid parameter values (e.g., non-numeric page or size, unsupported category ID) may result in API errors.
    • Network connectivity problems can cause timeouts or inability to reach the service.
  • Error messages:

    • "获取文件列表失败: <error message>" indicates failure to retrieve the file list, often due to network or authentication issues.
    • If the API returns HTTP errors, the node surfaces these with descriptive messages.
  • Resolution tips:

    • Verify the API key is correctly configured and has not expired.
    • Ensure all input parameters conform to expected types and allowed values.
    • Check network connectivity and retry if transient errors occur.

Links and References


This summary focuses exclusively on the "获取文件列表" (listFiles) operation of the AIGC Network Disk node as requested.

Discussion