tencent cloud

All product documents
Cloud Object Storage
Listing Incomplete Multipart Uploads - lsparts
Last updated: 2024-01-06 16:15:35
Listing Incomplete Multipart Uploads - lsparts
Last updated: 2024-01-06 16:15:35
The lsparts command is used to list the generated incomplete multipart uploads.
Note:
For more information, see Multipart Upload.

Command Syntax

./coscli lsparts cos://<bucket-name>[/prefix/] [flag]
lsparts includes the following parameters:
Parameter Format
Description
Example
cos://<bucket-name>
Specifies the target bucket, which is accessible by using the bucket alias or bucket name configured in the configuration file as detailed in Download and Installation Configuration. If you use the bucket name for access, you also need to include the endpoint flag.
Access with the bucket alias: cos://example-alias
Access with the bucket name: cos://examplebucket-1250000000
/prefix/
Specifies a directory (optional).
/picture/
The lsparts command contains the following optional flags:
Flag Abbreviation
Flag Name
Description
-h
--help
Views the usage of this command.
None
--include
Includes specific objects.
None
--exclude
Excludes files with a specific pattern
None
--limit
Specifies the maximum quantity (0–1000) to be listed.
Note:
For other common options of this command (such as switching bucket and user account), see Common Options.

Examples

Listing all incomplete multipart uploads in bucket1 bucket

./coscli lsparts cos://bucket1
The returned information includes the object key (the unique identifier of the object in the bucket), multipart upload ID, multipart upload start time, and total number of incomplete multipart uploads in the bucket. Below is an example:
KEY | UPLOAD ID | INITIATE TIME
---------------+-------------------------------------+----------------------------
test.txt | 1671191183635d2b71b1d68a0********** | 2022-01-01T00:00:00.000Z
---------------+-------------------------------------+----------------------------
TOTAL: 1
----------------------------

Listing all incomplete multipart uploads in picture folder in bucket1 bucket

./coscli lsparts cos://bucket1/picture/

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support