You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Common commands
Query properties (stat)
Copy page
Download PDF
Query properties (stat)
You can use the stat command to query bucket or object properties.​
Querying bucket properties​
Command syntax​
​
Linux/macOS
Windows
​
​
​
./tosutil stat tos://bucket [-acl] [-e=xxx] [-re=xxx] [-i=xxx] [-k=xxx] [-t=xxx] [-conf=xxx]​
​
​
​
Parameters​
For descriptions of common optional parameters, see Global options.​
​
Parameter​
Type​
Description​
bucket​
String​
Bucket name.​
-acl​
Bool​
Query bucket access control list (ACL) when querying bucket properties.​
​
Example​
Use the following command to query the properties of the bucketname bucket.​
  • Command​
​
./tosutil stat tos://bucketname​
​
  • Output​
​
Start at 2022-10-27 10:42:49.230198 +0000 UTC​
​
Bucket:​
tos://bucketname​
Region:​
cn-beijing​
StorageClass:​
STANDARD​
​
Querying object properties​
Command syntax​
​
Linux/macOS
Windows
​
​
​
./tosutil stat tos://bucket/key [-acl] [-versionId=xxx] [-sbh] [-e=xxx] [-re=xxx] [-i=xxx] [-k=xxx] [-t=xxx] [-conf=xxx]​
​
​
​
Parameters​
For descriptions of common optional parameters, see Global options.​
​
Parameter​
Type​
Description​
bucket​
String​
Bucket name.​
key​
String​
Object name.​
-acl​
Bool​
Query object ACL when querying object properties.​
-versionId​
String​
Query the properties of the object with the specified version ID.​
-sbh​
Bool​
Display standard HTTP properties when querying object properties.​
​
Example​
Use the following command to query the properties of the object1.png object, including standard HTTP properties, in the bucketname bucket.​
  • Command​
​
./tosutil stat tos://bucketname/object1.png -sbh​
​
  • Output​
​
Start at 2022-10-27 10:43:24.667148 +0000 UTC​
​
Key:​
tos://bucketname/object1.png​
LastModified:​
2022-08-29 08:50:54 +0000 UTC​
Size:​
29098​
StorageClass:​
STANDARD​
VersionID:​
57CE0809CDADB97E0EFC​
HashCrc64ecma:​
644630079489775590​
ETag:​
cbd8273ce352dfac24d5d65fa3f81dc0​
ContentType:​
image/png​
ContentDisposition:​
attachment;filename="test.png"​
ContentLanguage:​
en​
Type:​
file​
​
​
Last updated: 2025.12.17 18:33:43