openstack-manuals/doc/user-guide/source/cli-swift-manage-objects.rst
Maria Zlatkova b94d0b58d4 [user-guide] Changes underscore to hyphen in RST files
Adds the following changes:

- Renames all the RST files in the user-guide folder to use
  hyphens instead of underscores;
- Adds redirects to the renamed files to .htaccess.

Change-Id: Ic5f1a90421add35d001363cd39bada0b56a04d7f
Implements: blueprint consistency-file-rename
2016-08-10 18:00:13 +03:00

1.1 KiB

Manage objects

  • To upload an object to a container, run the following command:

    $ swift upload CONTAINER OBJECT_FILENAME

    To upload in chunks, for large files, run the following command:

    $ swift upload -S CHUNK_SIZE CONTAINER OBJECT_FILENAME
  • To check the status of the object, run the following command:

    $ swift stat CONTAINER OBJECT_FILENAME
    Account: AUTH_7b5970fbe7724bf9b74c245e77c03bcg
    Container: storage1
    Object: images
    Content Type: application/octet-stream
    Content Length: 211616
    Last Modified: Tue, 18 Feb 2014 00:40:36 GMT
    ETag: 82169623d55158f70a0d720f238ec3ef
    Meta Orig-Filename: images.jpg
    Accept-Ranges: bytes
    X-Timestamp: 1392684036.33306
  • To list the objects in a container, run the following command:

    $ swift list CONTAINER
  • To download an object from a container, run the following command:

    $ swift download CONTAINER OBJECT_FILENAME