Object storage CLI reference
The Swift command reference covers the swift client. The S3-compatible storage tools reference covers AWS CLI, s3cmd, and rclone.
See the OpenStackClient Object Storage v1 command reference for complete command syntax.
Use these commands to manage containers and objects in the Object Storage service. Replace CONTAINER_NAME, OBJECT_NAME, and LOCAL_FILE_PATH with the corresponding names and paths.
List containers#
openstack container listCreate a container#
openstack container create CONTAINER_NAMEDelete a container#
openstack container delete CONTAINER_NAMEShow container details#
openstack container show CONTAINER_NAMEList objects in a container#
openstack object list CONTAINER_NAMEUpload an object to a container#
openstack object create CONTAINER_NAME LOCAL_FILE_PATHDownload an object from a container#
openstack object save CONTAINER_NAME OBJECT_NAMEDelete an object from a container#
openstack object delete CONTAINER_NAME OBJECT_NAMEShow object details#
openstack object show CONTAINER_NAME OBJECT_NAMEOutput columns#
Select specific columns with --column COL1 --column COL2 or change the output format with -f json, -f csv, or -f table (default).
openstack container list#
| Column | Description |
|---|---|
| Name | Container name |
openstack container show#
| Field | Description |
|---|---|
| account | Swift account identifier (AUTH_PROJECT_UUID) |
| bytes_used | Total bytes stored in the container |
| container | Container name |
| object_count | Number of objects in the container |
| properties | Container metadata; Quake AI defaults expose Quota-Bytes (per-container max size) and Quota-Count (per-container max object count) |
| storage_policy | Storage policy name; the default is default-placement |
openstack object list#
| Column | Description |
|---|---|
| Name | Object name in the container |
openstack object list --long#
| Column | Description |
|---|---|
| Name | Object name |
| Bytes | Object size in bytes |
| Hash | MD5 etag |
| Content Type | MIME type |
| Last Modified | ISO 8601 timestamp |
openstack object show#
| Field | Description |
|---|---|
| account | Swift account identifier |
| container | Container name |
| content-length | Object size in bytes |
| content-type | MIME type |
| etag | MD5 hash |
| last-modified | RFC 1123 timestamp |
| object | Object name |