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
| Parameter | Required | Description | Default |
|---|---|---|---|
<key> | Yes | Object name | — |
-b, --bucket <bucketId> | Yes | Bucket ID | — |
-m, --method <method> | No | GET / HEAD; HEAD is available on the authenticated path only | GET |
--json | No | Output { 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