Use the getallpartsize command to list all parts from incomplete multipart uploads in a bucket, including the size of each part and the total storage consumed.
ossutil 1.0 is no longer updated. Migrate to ossutil 2.0 and use the list-multipart-uploads command instead.
Prerequisites
Before you run this command, ensure that you have:
The
oss:ListPartsandoss:ListMultipartUploadspermissions on the target bucket. For details, see Attach a custom policy to a RAM user.
Usage notes
ossutil V1.6.16 and later use
ossutilas the binary name on all operating systems. Earlier versions require a system-specific binary name. For details, see ossutil command reference.For background on multipart uploads, see Multipart upload.
Command syntax
ossutil getallpartsize oss://<bucket-name><bucket-name> is the name of the bucket to inspect.
Examples
List all parts from incomplete multipart uploads in examplebucket:
ossutil getallpartsize oss://examplebucketOutput:
PartNumber UploadId Size(Byte) Path
1 F18A92392DFD4B3FA897C267829FE417 52428800 oss://examplebucket/exampleobject.txt
2 F18A92392DFD4B3FA897C267829FE417 52428800 oss://examplebucket/exampleobject.txt
3 F18A92392DFD4B3FA897C267829FE417 52428800 oss://examplebucket/exampleobject.txt
4 F18A92392DFD4B3FA897C267829FE417 52428800 oss://examplebucket/exampleobject.txt
5 F18A92392DFD4B3FA897C267829FE417 52428800 oss://examplebucket/exampleobject.txt
6 F18A92392DFD4B3FA897C267829FE417 52428800 oss://examplebucket/exampleobject.txt
total part count:6 total part size(MB):300.00
0.142115(s) elapsedCommon options
To access a bucket in a different region, use -e to specify the endpoint. To access a bucket owned by a different Alibaba Cloud account, use -i for the AccessKey ID and -k for the AccessKey secret.
For example, to list parts in testbucket owned by another account in the China (Hangzhou) region:
ossutil getallpartsize oss://testbucket -e oss-cn-hangzhou.aliyuncs.com -i yourAccessKeyID -k yourAccessKeySecretFor the full list of options, see Common options.