From 83802d7c668f6d837c2907f47b2552cd272fbe50 Mon Sep 17 00:00:00 2001 From: wangxiyuan Date: Tue, 20 Dec 2016 11:32:30 +0800 Subject: [PATCH] Add command guide for queue Change-Id: I759fd519cb47833aab5edcc893214023a8c051b3 Co-Authored-By: ZhaoBo --- doc/source/command-line.rst | 15 +++ doc/source/command/queue.rst | 175 +++++++++++++++++++++++++++++++++++ doc/source/index.rst | 1 + 3 files changed, 191 insertions(+) create mode 100644 doc/source/command-line.rst create mode 100644 doc/source/command/queue.rst diff --git a/doc/source/command-line.rst b/doc/source/command-line.rst new file mode 100644 index 00000000..6996806d --- /dev/null +++ b/doc/source/command-line.rst @@ -0,0 +1,15 @@ +============ +Command-line +============ + +This chapter documents the usage of Zaqar Client Command Line with API v2.0. + +Zaqar client now support some kinds of resources or actions: ``queue``, +``claim``, ``subscription``, ``pool``, ``flavor``, ``ping``, ``health``. + +Click the Link below for the details. + +.. toctree:: + :maxdepth: 1 + + command/queue diff --git a/doc/source/command/queue.rst b/doc/source/command/queue.rst new file mode 100644 index 00000000..4f0a3631 --- /dev/null +++ b/doc/source/command/queue.rst @@ -0,0 +1,175 @@ +Queue +===== + +For help on a specific :command:`openstack queue` command, enter: + +.. code-block:: console + + $ openstack queue COMMAND -h/--help + +The seven commands: + +.. code-block:: console + + queue create + queue delete + queue get metadata + queue list + queue set metadata + queue signed url + queue stats + +.. _openstack_queue_create: + +openstack queue create +---------------------- + +.. code-block:: console + + usage: openstack queue create [-h] [-f {json,shell,table,value,yaml}] + [-c COLUMN] [--max-width ] [--noindent] + [--prefix PREFIX] + + +Create a queue. + +**Positional arguments:** + +```` + Name of the queue. + + +.. _openstack_queue_delete: + +openstack queue delete +---------------------- + +.. code-block:: console + + usage: openstack queue delete [-h] + +Delete a queue. + +**Positional arguments:** + +```` + Name of the queue. + + +.. _openstack_queue_get_metadata: + +openstack queue get metadata +---------------------------- + +.. code-block:: console + + usage: openstack queue get metadata [-h] [-f {json,shell,table,value,yaml}] + [-c COLUMN] [--max-width ] + [--noindent] [--prefix PREFIX] + + +Get queue metadata. + +**Positional arguments:** + +```` + Name of the queue. + + +.. _openstack_queue_list: + +openstack queue list +-------------------- + +.. code-block:: console + + usage: openstack queue list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN] + [--max-width ] [--noindent] + [--quote {all,minimal,none,nonnumeric}] + [--marker ] [--limit ] + +List available queues. + +**Optional arguments:** + +``--marker `` + Queue's paging marker. + +``--limit `` + Page size limit. + + +.. _openstack_queue_set_metadata: + +openstack queue set metadata +---------------------------- + +.. code-block:: console + + usage: openstack queue set metadata [-h] + +Set queue metadata. + +**Positional arguments:** + +```` + Name of the queue. + +```` + Queue metadata. It should be json like. For example: '{"age": 18}' + + +.. _openstack_queue_signed_url: + +openstack queue signed url +-------------------------- + +.. code-block:: console + + usage: openstack queue signed url [-h] [-f {json,shell,table,value,yaml}] + [-c COLUMN] [--max-width ] + [--noindent] [--prefix PREFIX] + [--paths ] + [--ttl-seconds ] + [--methods ] + + +Create a pre-signed url for the queue. + +**Positional arguments:** + +```` + Name of the queue. + +**Optional arguments:** + +``--paths `` + Allowed paths in a comma-separated list. + Options: messages, subscriptions, claims. + +``--ttl-seconds `` + Length of time (in seconds) until the signature expires. + +``--methods `` + HTTP methods to allow as a comma-separated list. + Options: GET, HEAD, OPTIONS, POST, PUT, DELETE. + + +.. _openstack_queue_stats: + +openstack queue stats +--------------------- + +.. code-block:: console + + usage: openstack queue stats [-h] [-f {json,shell,table,value,yaml}] + [-c COLUMN] [--max-width ] [--noindent] + [--prefix PREFIX] + + +Get queue stats. + +**Positional arguments:** + +```` + Name of the queue. diff --git a/doc/source/index.rst b/doc/source/index.rst index b1263ff0..4aad6031 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -43,6 +43,7 @@ Contents :maxdepth: 1 client + command-line Release Notes =============