An object stores data content, such as documents, images, and so on. They can also store custom metadata with an object. Applies to Object Storage v1.
Upload object to container
openstack object create
    [--sort-column SORT_COLUMN]
    [--name <name>]
    <container>
    <filename>
    [<filename> ...]
--sort-column SORT_COLUMN¶specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
--name <name>¶Upload a file and rename it. Can only be used when uploading a single object
containerContainer for new object
filenameLocal filename(s) to upload
This command is provided by the python-openstackclient plugin.
Delete object from container
openstack object delete <container> <object> [<object> ...]
containerDelete object(s) from <container>
objectObject(s) to delete
This command is provided by the python-openstackclient plugin.
List objects
openstack object list
    [--sort-column SORT_COLUMN]
    [--delimiter <delimiter>]
    [--marker <marker>]
    [--end-marker <end-marker>]
    [--limit <num-objects>]
    [--long]
    [--all]
    <container>
--sort-column SORT_COLUMN¶specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
--delimiter <delimiter>¶Roll up items with <delimiter>
--marker <marker>¶Anchor for paging
--end-marker <end-marker>¶End anchor for paging
--limit <num-objects>¶Limit the number of objects returned
--longList additional fields in output
--allList all objects in container (default is 10000)
containerContainer to list
This command is provided by the python-openstackclient plugin.
Save object locally
openstack object save [--file <filename>] <container> <object>
--file <filename>¶Destination filename (defaults to object name); using ‘-‘ as the filename will print the file to stdout
containerDownload <object> from <container>
objectObject to save
This command is provided by the python-openstackclient plugin.
Set object properties
openstack object set --property <key =value> <container> <object>
--property <key=value>¶Set a property on this object (repeat option to set multiple properties)
containerModify <object> from <container>
objectObject to modify
This command is provided by the python-openstackclient plugin.
Display object details
openstack object show <container> <object>
containerDisplay <object> from <container>
objectObject to display
This command is provided by the python-openstackclient plugin.
Unset object properties
openstack object unset --property <key> <container> <object>
--property <key>¶Property to remove from object (repeat option to remove multiple properties)
containerModify <object> from <container>
objectObject to modify
This command is provided by the python-openstackclient plugin.
 
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.