summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-12-15 03:31:50 +0000
committerGerrit Code Review <review@openstack.org>2016-12-15 03:31:50 +0000
commit524eb543203d9841cb40689f5fb7402d14605a86 (patch)
tree133378ed8b39ff83e781523b5422bba14a963671 /doc
parent39a0eda48666e88fea3ba2109773dbadaa2d5474 (diff)
parent4d040eecd9ff72c1a0a804b753a8e43956d00d02 (diff)
downloadpython-swiftclient-524eb543203d9841cb40689f5fb7402d14605a86.tar.gz
Merge "Add commands examples for copy and delete"
Diffstat (limited to 'doc')
-rw-r--r--doc/source/cli.rst30
1 files changed, 28 insertions, 2 deletions
diff --git a/doc/source/cli.rst b/doc/source/cli.rst
index ad91ca9..6c58d11 100644
--- a/doc/source/cli.rst
+++ b/doc/source/cli.rst
@@ -294,6 +294,30 @@ List the contents of a container:
testSwift.txt
+Copy an object to new destination:
+
+.. code-block:: bash
+
+ > swift copy -d /DestContainer/testSwift.txt SourceContainer testSwift.txt
+
+ SourceContainer/testSwift.txt copied to /DestContainer/testSwift.txt
+
+Delete an object from a container:
+
+.. code-block:: bash
+
+ > swift delete TestContainer testSwift.txt
+
+ testSwift.txt
+
+Delete a container:
+
+.. code-block:: bash
+
+ > swift delete TestContainer
+
+ TestContainer
+
Display auth related authentication variables in shell friendly format:
.. code-block:: bash
@@ -318,8 +342,10 @@ Download an object from a container:
To upload an object to a container, your current working directory must be
where the file is located or you must provide the complete path to the file.
- In the case that you provide the complete path of the file, that complete
- path will be the name of the uploaded object.
+ In other words, the --object-name <object-name> is an option that will upload
+ file and name object to <object-name> or upload directory and use <object-name> as
+ object prefix. In the case that you provide the complete path of the file,
+ that complete path will be the name of the uploaded object.
For example: