Aliyun Bailian | 阿里云百炼 icon

Aliyun Bailian | 阿里云百炼

Access Alibaba Cloud Aliyun Bailian video generation, editing, and task APIs.

File → Get Many | 列出文件

AI-generated

Summary

List files from the Aliyun Bailian service, optionally within a specific workspace, supporting pagination and different output formats.

Inputs

  • workspaceId — Optional workspace ID to restrict the file listing to a specific workspace if your account or region requires it.
  • returnAll — Whether to automatically fetch all pages of files instead of one page.
  • listOutputMode (required) — Choose the output format: either a flat list of file items or raw page envelopes preserving pagination metadata.
  • limit — When Return All is disabled and Output Mode is items only, limit the maximum number of files returned (1-1000).
  • pageNo — The page number to start listing files from (minimum 1).
  • pageSize — The number of files to return per page (1-100).

Output shape

a list of file items or a list of page envelope objects, depending on Output Mode

If Return All is true, all pages will be retrieved automatically until completion. If Output Mode is 'items', the output contains one entry per file; if 'envelope', one entry per page including pagination metadata like total items, page number, and page size.

Examples

Example 1: List up to 50 files from page 1, returning a flat list of file items

returnAll=false, limit=50, pageNo=1, pageSize=20, listOutputMode='items'

Example 2: Fetch all files automatically, returning pagination envelopes

returnAll=true, listOutputMode='envelope'

Links

Discussion