Update CLI reference for python-swiftclient 2.6.0
Change-Id: If64d8090550f0f4bf2cbce003c6e97e85311eedb
This commit is contained in:
committed by
Christian Berendt
parent
917c4bc9e7
commit
346c4c90f9
@@ -15,7 +15,7 @@
|
||||
interface (CLI) for the OpenStack Object Storage API and its extensions.
|
||||
|
||||
This chapter documents <command>swift</command> version
|
||||
<literal>2.5.0</literal>.
|
||||
<literal>2.6.0</literal>.
|
||||
</para>
|
||||
|
||||
<para>For help on a specific <command>swift</command>
|
||||
@@ -44,7 +44,7 @@
|
||||
[--os-endpoint-type <endpoint-type>]
|
||||
[--os-cacert <ca-certificate>] [--insecure]
|
||||
[--no-ssl-compression]
|
||||
<subcommand> [--help]</computeroutput></screen>
|
||||
<subcommand> [--help] [<subcommand options>]</computeroutput></screen>
|
||||
<variablelist wordsize="10">
|
||||
<title>Subcommands</title>
|
||||
<varlistentry>
|
||||
@@ -313,7 +313,7 @@ Delete a container or objects within a container.
|
||||
<variablelist wordsize="10">
|
||||
<title>Optional arguments</title>
|
||||
<varlistentry>
|
||||
<term><command>--all</command></term>
|
||||
<term><command>-a, --all</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Delete all containers and objects.
|
||||
@@ -379,7 +379,7 @@ Download objects from containers.
|
||||
<variablelist wordsize="10">
|
||||
<title>Optional arguments</title>
|
||||
<varlistentry>
|
||||
<term><command>--all</command></term>
|
||||
<term><command>-a, --all</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Indicates that you really want to download
|
||||
@@ -388,7 +388,7 @@ Download objects from containers.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--marker</command></term>
|
||||
<term><command>-m, --marker</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Marker to use when starting a container or account
|
||||
@@ -397,7 +397,7 @@ Download objects from containers.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--prefix <prefix></command></term>
|
||||
<term><command>-p, --prefix <prefix></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Only download items beginning with <prefix>
|
||||
@@ -405,7 +405,7 @@ Download objects from containers.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--remove-prefix</command></term>
|
||||
<term><command>-r, --remove-prefix</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
An optional flag for --prefix <prefix>, use this
|
||||
@@ -414,17 +414,17 @@ Download objects from containers.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--output <out_file></command></term>
|
||||
<term><command>-o, --output <out_file></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
For a single file download, stream the output to
|
||||
For a single file download, stream the output to
|
||||
<out_file>. Specifying "-" as <out_file> will
|
||||
redirect to stdout.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--output-dir <out_directory></command></term>
|
||||
<term><command>-D, --output-dir <out_directory></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
An optional directory to which to store objects.
|
||||
@@ -461,11 +461,11 @@ Download objects from containers.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--header <header_name:header_value></command></term>
|
||||
<term><command>-H, --header <header:value></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Adds a customized request header to the query, like
|
||||
"Range" or "If-Match". This argument is repeatable.
|
||||
"Range" or "If-Match". This option may be repeated.
|
||||
Example --header "content-type:text/plain"
|
||||
</para>
|
||||
</listitem>
|
||||
@@ -479,6 +479,21 @@ Download objects from containers.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--no-shuffle</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
By default, when downloading a complete account or
|
||||
container, download order is randomised in order to
|
||||
to reduce the load on individual drives when multiple
|
||||
clients are executed simultaneously to download the
|
||||
same set of objects (e.g. a nightly automated download
|
||||
script to multiple servers). Enable this option to
|
||||
submit download jobs to the thread pool in the order
|
||||
they are listed in the object store.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</section>
|
||||
<section xml:id="swiftclient_subcommand_list">
|
||||
@@ -501,7 +516,7 @@ Lists the containers for the account or the objects for a container.
|
||||
<variablelist wordsize="10">
|
||||
<title>Optional arguments</title>
|
||||
<varlistentry>
|
||||
<term><command>--long</command></term>
|
||||
<term><command>-l, --long</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Long listing format, similar to ls -l.
|
||||
@@ -518,7 +533,7 @@ Lists the containers for the account or the objects for a container.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--totals</command></term>
|
||||
<term><command>-t, --totals</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Used with -l or --lh, only report totals.
|
||||
@@ -526,7 +541,7 @@ Lists the containers for the account or the objects for a container.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--prefix</command></term>
|
||||
<term><command>-p, --prefix</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Only list items beginning with the prefix.
|
||||
@@ -534,7 +549,7 @@ Lists the containers for the account or the objects for a container.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--delimiter</command></term>
|
||||
<term><command>-d, --delimiter</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Roll up items with the given delimiter. For containers
|
||||
@@ -574,7 +589,7 @@ If the container is not found, it will be created automatically.
|
||||
<variablelist wordsize="10">
|
||||
<title>Optional arguments</title>
|
||||
<varlistentry>
|
||||
<term><command>--read-acl <acl></command></term>
|
||||
<term><command>-r, --read-acl <acl></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Read ACL for containers. Quick summary of ACL syntax:
|
||||
@@ -584,7 +599,7 @@ If the container is not found, it will be created automatically.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--write-acl <acl></command></term>
|
||||
<term><command>-w, --write-acl <acl></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Write ACL for containers. Quick summary of ACL syntax:
|
||||
@@ -593,36 +608,37 @@ If the container is not found, it will be created automatically.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--sync-to <sync-to></command></term>
|
||||
<term><command>-t, --sync-to <sync-to></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Sync To for containers, for multi-cluster replication.
|
||||
Sync To for containers, for multi-cluster replication.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--sync-key <sync-key></command></term>
|
||||
<term><command>-k, --sync-key <sync-key></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Sync Key for containers, for multi-cluster replication.
|
||||
Sync Key for containers, for multi-cluster replication.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--meta <name:value></command></term>
|
||||
<term><command>-m, --meta <name:value></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Sets a meta data item. This option may be repeated.
|
||||
Sets a meta data item. This option may be repeated.
|
||||
Example: -m Color:Blue -m Size:Large
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--header <header></command></term>
|
||||
<term><command>-H, --header <header:value></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set request headers. This option may be repeated.
|
||||
Example -H "content-type:text/plain"
|
||||
Adds a customized request header.
|
||||
This option may be repeated. Example
|
||||
-H "content-type:text/plain" -H "Content-Length: 4000"
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -687,8 +703,9 @@ Generates a temporary URL for a Swift object.
|
||||
<term><command><seconds></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The amount of time in seconds the temporary URL will
|
||||
be valid for.
|
||||
The amount of time in seconds the temporary URL will be
|
||||
valid for; or, if --absolute is passed, the Unix
|
||||
timestamp when the temporary URL will expire.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -711,6 +728,19 @@ Generates a temporary URL for a Swift object.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
<variablelist wordsize="10">
|
||||
<title>Optional arguments</title>
|
||||
<varlistentry>
|
||||
<term><command>--absolute</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Interpet the <seconds> positional argument as a Unix
|
||||
timestamp rather than a number of seconds in the
|
||||
future.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</section>
|
||||
<section xml:id="swiftclient_subcommand_upload">
|
||||
@@ -718,7 +748,7 @@ Generates a temporary URL for a Swift object.
|
||||
|
||||
<screen><computeroutput>Usage: swift upload</computeroutput></screen>
|
||||
<para>
|
||||
Uploads specified files and directories to the given container.
|
||||
Uploads specified files and directories to the given container.
|
||||
</para> <variablelist wordsize="10">
|
||||
<title>Positional arguments</title>
|
||||
<varlistentry>
|
||||
@@ -742,7 +772,7 @@ Uploads specified files and directories to the given container.
|
||||
<variablelist wordsize="10">
|
||||
<title>Optional arguments</title>
|
||||
<varlistentry>
|
||||
<term><command>--changed</command></term>
|
||||
<term><command>-c, --changed</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Only upload files that have changed since the last
|
||||
@@ -759,10 +789,10 @@ Uploads specified files and directories to the given container.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--segment-size <size></command></term>
|
||||
<term><command>-S, --segment-size <size></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Upload files in segments no larger than <size> (in
|
||||
Upload files in segments no larger than <size> (in
|
||||
Bytes) and then create a "manifest" file that will
|
||||
download all the segments as if it were the original
|
||||
file.
|
||||
@@ -808,12 +838,12 @@ Uploads specified files and directories to the given container.
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><command>--header <header></command></term>
|
||||
<term><command>-H, --header <header:value></command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set request headers with the syntax header:value.
|
||||
This option may be repeated.
|
||||
Example -H "content-type:text/plain".
|
||||
Adds a customized request header. This option may be
|
||||
repeated. Example -H "content-type:text/plain"
|
||||
-H "Content-Length: 4000".
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
Reference in New Issue
Block a user