Merge "Update for python-swiftclient 2.3"
This commit is contained in:
@@ -10,10 +10,14 @@
|
|||||||
<?dbhtml stop-chunking?>
|
<?dbhtml stop-chunking?>
|
||||||
|
|
||||||
<title>Object Storage command-line client</title>
|
<title>Object Storage command-line client</title>
|
||||||
<para>The <command>swift</command> client is the command-line interface
|
|
||||||
(CLI) for the OpenStack Object Storage API and its extensions. This chapter documents
|
<para>The <command>swift</command> client is the command-line
|
||||||
<command>swift</command> version 2.2.0.
|
interface (CLI) for the OpenStack Object Storage API and its extensions.
|
||||||
|
|
||||||
|
This chapter documents <command>swift</command> version
|
||||||
|
<literal>2.3.0</literal>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>For help on a specific <command>swift</command>
|
<para>For help on a specific <command>swift</command>
|
||||||
command, enter:
|
command, enter:
|
||||||
</para>
|
</para>
|
||||||
@@ -25,8 +29,15 @@
|
|||||||
[--auth-version <auth_version>] [--user <username>]
|
[--auth-version <auth_version>] [--user <username>]
|
||||||
[--key <api_key>] [--retries <num_retries>]
|
[--key <api_key>] [--retries <num_retries>]
|
||||||
[--os-username <auth-user-name>] [--os-password <auth-password>]
|
[--os-username <auth-user-name>] [--os-password <auth-password>]
|
||||||
|
[--os-user-id <auth-user-id>]
|
||||||
|
[--os-user-domain-id <auth-user-domain-id>]
|
||||||
|
[--os-user-domain-name <auth-user-domain-name>]
|
||||||
[--os-tenant-id <auth-tenant-id>]
|
[--os-tenant-id <auth-tenant-id>]
|
||||||
[--os-tenant-name <auth-tenant-name>]
|
[--os-tenant-name <auth-tenant-name>]
|
||||||
|
[--os-project-id <auth-project-id>]
|
||||||
|
[--os-project-name <auth-project-name>]
|
||||||
|
[--os-project-domain-id <auth-project-domain-id>]
|
||||||
|
[--os-project-domain-name <auth-project-domain-name>]
|
||||||
[--os-auth-url <auth-url>] [--os-auth-token <auth-token>]
|
[--os-auth-url <auth-url>] [--os-auth-token <auth-token>]
|
||||||
[--os-storage-url <storage-url>] [--os-region-name <region-name>]
|
[--os-storage-url <storage-url>] [--os-region-name <region-name>]
|
||||||
[--os-service-type <service-type>]
|
[--os-service-type <service-type>]
|
||||||
@@ -111,6 +122,14 @@
|
|||||||
swift -A https://auth.api.rackspacecloud.com/v1.0 -U user -K api_key stat -v
|
swift -A https://auth.api.rackspacecloud.com/v1.0 -U user -K api_key stat -v
|
||||||
swift --os-auth-url https://api.example.com/v2.0 --os-tenant-name tenant \
|
swift --os-auth-url https://api.example.com/v2.0 --os-tenant-name tenant \
|
||||||
--os-username user --os-password password list
|
--os-username user --os-password password list
|
||||||
|
swift --os-auth-url https://api.example.com/v3 --auth-version 3\
|
||||||
|
--os-project-name project1 --os-project-domain-name domain1 \
|
||||||
|
--os-username user --os-user-domain-name domain1 \
|
||||||
|
--os-password password list
|
||||||
|
swift --os-auth-url https://api.example.com/v3 --auth-version 3\
|
||||||
|
--os-project-id 0123456789abcdef0123456789abcdef \
|
||||||
|
--os-user-id abcdef0123456789abcdef0123456789 \
|
||||||
|
--os-password password list
|
||||||
swift --os-auth-token 6ee5eb33efad4e45ab46806eac010566 \
|
swift --os-auth-token 6ee5eb33efad4e45ab46806eac010566 \
|
||||||
--os-storage-url https://10.1.5.2:8080/v1/AUTH_ced809b6a4baea7aeab61a \
|
--os-storage-url https://10.1.5.2:8080/v1/AUTH_ced809b6a4baea7aeab61a \
|
||||||
list
|
list
|
||||||
@@ -135,6 +154,14 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><command>--os-help</command></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Show OpenStack authentication options.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><command>-s, --snet</command></term>
|
<term><command>-s, --snet</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -164,8 +191,8 @@
|
|||||||
<term><command>--info</command></term>
|
<term><command>--info</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Show the curl commands and results of all http
|
Show the curl commands and results of all http queries
|
||||||
queries which return an error.
|
which return an error.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@@ -217,105 +244,6 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-username=<auth-user-name></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
OpenStack username. Defaults to <code>env[OS_USERNAME]</code>.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-password=<auth-password></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
OpenStack password. Defaults to <code>env[OS_PASSWORD]</code>.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-tenant-id=<auth-tenant-id></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
OpenStack tenant ID. Defaults to <code>env[OS_TENANT_ID]</code>.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-tenant-name=<auth-tenant-name></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
OpenStack tenant name. Defaults to
|
|
||||||
<code>env[OS_TENANT_NAME]</code>.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-auth-url=<auth-url></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
OpenStack auth URL. Defaults to <code>env[OS_AUTH_URL]</code>.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-auth-token=<auth-token></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
OpenStack token. Defaults to <code>env[OS_AUTH_TOKEN]</code>. Used
|
|
||||||
with --os-storage-url to bypass the usual
|
|
||||||
username/password authentication.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-storage-url=<storage-url></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
OpenStack storage URL. Defaults to
|
|
||||||
<code>env[OS_STORAGE_URL]</code>. Overrides the storage url
|
|
||||||
returned during auth. Will bypass authentication when
|
|
||||||
used with --os-auth-token.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-region-name=<region-name></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
OpenStack region name. Defaults to
|
|
||||||
<code>env[OS_REGION_NAME]</code>.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-service-type=<service-type></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
OpenStack Service type. Defaults to
|
|
||||||
<code>env[OS_SERVICE_TYPE]</code>.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-endpoint-type=<endpoint-type></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
OpenStack Endpoint type. Defaults to
|
|
||||||
<code>env[OS_ENDPOINT_TYPE]</code>.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>--os-cacert=<ca-certificate></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Specify a CA bundle file to use in verifying a TLS
|
|
||||||
(https) server certificate. Defaults to
|
|
||||||
<code>env[OS_CACERT]</code>.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><command>--insecure</command></term>
|
<term><command>--insecure</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@@ -339,7 +267,7 @@
|
|||||||
</variablelist>
|
</variablelist>
|
||||||
</section>
|
</section>
|
||||||
<section xml:id="swiftclient_subcommand_delete">
|
<section xml:id="swiftclient_subcommand_delete">
|
||||||
<title>swift delete command</title>
|
<title>swift delete</title>
|
||||||
|
|
||||||
<screen><computeroutput>Usage: swift delete</computeroutput></screen>
|
<screen><computeroutput>Usage: swift delete</computeroutput></screen>
|
||||||
<para>
|
<para>
|
||||||
@@ -403,7 +331,7 @@ Delete a container or objects within a container.
|
|||||||
</variablelist>
|
</variablelist>
|
||||||
</section>
|
</section>
|
||||||
<section xml:id="swiftclient_subcommand_download">
|
<section xml:id="swiftclient_subcommand_download">
|
||||||
<title>swift download command</title>
|
<title>swift download</title>
|
||||||
|
|
||||||
<screen><computeroutput>Usage: swift download</computeroutput></screen>
|
<screen><computeroutput>Usage: swift download</computeroutput></screen>
|
||||||
<para>
|
<para>
|
||||||
@@ -420,7 +348,7 @@ Download objects from containers.
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><command>[object]</command></term>
|
<term><command><object></command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Name of object to download. Specify multiple times
|
Name of object to download. Specify multiple times
|
||||||
@@ -436,8 +364,8 @@ Download objects from containers.
|
|||||||
<term><command>--all</command></term>
|
<term><command>--all</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Indicates that you really want to download everything
|
Indicates that you really want to download
|
||||||
in the account.
|
everything in the account.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@@ -454,7 +382,7 @@ Download objects from containers.
|
|||||||
<term><command>--prefix <prefix></command></term>
|
<term><command>--prefix <prefix></command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Only download items beginning with <prefix>.
|
Only download items beginning with <prefix>
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@@ -473,7 +401,7 @@ Download objects from containers.
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Number of threads to use for downloading objects.
|
Number of threads to use for downloading objects.
|
||||||
Default is 10
|
Default is 10.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@@ -482,7 +410,7 @@ Download objects from containers.
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Number of threads to use for downloading containers.
|
Number of threads to use for downloading containers.
|
||||||
Default is 10
|
Default is 10.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@@ -517,7 +445,7 @@ Download objects from containers.
|
|||||||
</variablelist>
|
</variablelist>
|
||||||
</section>
|
</section>
|
||||||
<section xml:id="swiftclient_subcommand_list">
|
<section xml:id="swiftclient_subcommand_list">
|
||||||
<title>swift list command</title>
|
<title>swift list</title>
|
||||||
|
|
||||||
<screen><computeroutput>Usage: swift list</computeroutput></screen>
|
<screen><computeroutput>Usage: swift list</computeroutput></screen>
|
||||||
<para>
|
<para>
|
||||||
@@ -581,7 +509,7 @@ Lists the containers for the account or the objects for a container.
|
|||||||
</variablelist>
|
</variablelist>
|
||||||
</section>
|
</section>
|
||||||
<section xml:id="swiftclient_subcommand_post">
|
<section xml:id="swiftclient_subcommand_post">
|
||||||
<title>swift post command</title>
|
<title>swift post</title>
|
||||||
|
|
||||||
<screen><computeroutput>Usage: swift post</computeroutput></screen>
|
<screen><computeroutput>Usage: swift post</computeroutput></screen>
|
||||||
<para>
|
<para>
|
||||||
@@ -665,7 +593,7 @@ If the container is not found, it will be created automatically.
|
|||||||
</variablelist>
|
</variablelist>
|
||||||
</section>
|
</section>
|
||||||
<section xml:id="swiftclient_subcommand_stat">
|
<section xml:id="swiftclient_subcommand_stat">
|
||||||
<title>swift stat command</title>
|
<title>swift stat</title>
|
||||||
|
|
||||||
<screen><computeroutput>Usage: swift stat</computeroutput></screen>
|
<screen><computeroutput>Usage: swift stat</computeroutput></screen>
|
||||||
<para>
|
<para>
|
||||||
@@ -684,8 +612,7 @@ Displays information for the account, container, or object.
|
|||||||
<term><command>[object]</command></term>
|
<term><command>[object]</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Name of object to stat. Specify multiple times
|
Name of object to stat.
|
||||||
for multiple objects.
|
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@@ -704,7 +631,7 @@ Displays information for the account, container, or object.
|
|||||||
</variablelist>
|
</variablelist>
|
||||||
</section>
|
</section>
|
||||||
<section xml:id="swiftclient_subcommand_upload">
|
<section xml:id="swiftclient_subcommand_upload">
|
||||||
<title>swift upload command</title>
|
<title>swift upload</title>
|
||||||
|
|
||||||
<screen><computeroutput>Usage: swift upload</computeroutput></screen>
|
<screen><computeroutput>Usage: swift upload</computeroutput></screen>
|
||||||
<para>
|
<para>
|
||||||
|
Reference in New Issue
Block a user