lsparts command is used to list the generated incomplete multipart uploads.cos:PutBucket. cos:ListMultipartUploads, cos:ListParts../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/ |
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. |
None | --upload-id | Upload record ID. When uploading the uploadid, you need to specify the specific file. Only show the fragment information of the file corresponding to the uploadid. If the uploadid is not passed in, show the parts being uploaded under the specified prefix. |
./coscli lsparts cos://bucket1
KEY | UPLOAD ID | INITIATE TIME---------------+-------------------------------------+----------------------------test.txt | 1671191183635d2b71b1d68a0********** | 2022-01-01T00:00:00.000Z---------------+-------------------------------------+----------------------------TOTAL: 1----------------------------
./coscli lsparts cos://bucket1/test.txt --upload-id="1671191183635d2b71b1d68a0**********"
PARTNUMBER | ETAG | LAST MODIFIED | SIZE-------------+------------------------------------+---------------------------+------------1 | "58f06dd588d8ffb3beb46ada6309436b" | 2024-12-17T16:34:48+08:00 | 32.00 MB2 | "58f06dd588d8ffb3beb46ada6309436b" | 2024-12-17T16:34:48+08:00 | 32.00 MB3 | "58f06dd588d8ffb3beb46ada6309436b" | 2024-12-17T16:34:48+08:00 | 32.00 MB4 | "58f06dd588d8ffb3beb46ada6309436b" | 2024-12-17T16:34:48+08:00 | 32.00 MB-------------+------------------------------------+---------------------------+------------TOTAL: 4-------------
Feedback