Skip to main content

tcb storage objects stat

Query an object's metadata.

v3.4.0+

PG mode storage commands have been available since @cloudbase/cli@3.4.0.

Usage​

tcb storage objects stat <key> -b <bucketId> [options]

Parameters​

ParameterRequiredDescriptionDefault
<key>YesObject name—
-b, --bucket <bucketId>YesBucket ID—
-m, --method <method>NoGET / HEAD; HEAD is available on the authenticated path onlyGET
--jsonNoOutput { status, headers, body }, where body is the IObjectInfoHttpPayload—

The table output follows this field order: id / name / bucket_id / version / size / content_type / cache_control / etag / last_modified / created_at / metadata.

Examples​

tcb storage objects stat test/hello.txt -b my-bucket
tcb storage objects stat test/hello.txt -b my-bucket --json