Actions4
List Objects
AI-generatedOverview
This node interacts with Alibaba Cloud OSS (Object Storage Service) to list objects stored in a specified bucket. It is useful for workflows that need to retrieve and process lists of files or objects stored in Alibaba Cloud OSS, such as for backup, synchronization, or data processing tasks. For example, a user can list all objects with a specific prefix to filter files in a particular folder or category.
Use Case Examples
- List all objects in a bucket with a prefix 'images/' to process image files.
- Retrieve a list of documents stored under 'reports/2024/' for further analysis.
Properties
| Name | Meaning |
|---|---|
| Prefix | Prefix filter when listing objects, used to narrow down the list to objects whose keys start with this prefix. |
Output
JSON
key- The key (path) of the object in OSS.lastModified- The last modified timestamp of the object.etag- The ETag (entity tag) of the object, typically a hash for the object content.type- The type of the object, e.g., 'File' or 'Folder'.size- The size of the object in bytes.
Dependencies
- Alibaba Cloud OSS API credentials including region, accessKeyId, accessKeySecret, bucket, and optionally endpoint.
Troubleshooting
- If the node returns an empty list, verify that the prefix is correct and that the bucket contains objects matching the prefix.
- Authentication errors may occur if the provided credentials are incorrect or expired; ensure valid Alibaba Cloud OSS API credentials are configured.
- Timeout errors can happen if the network connection to Alibaba Cloud OSS is slow or unstable; consider increasing the timeout or checking network connectivity.
Links
- Alibaba Cloud OSS Documentation - Official documentation for Alibaba Cloud Object Storage Service.
- ali-oss SDK on GitHub - The Node.js SDK used by this node to interact with Alibaba Cloud OSS.