2016-12-20 11:32:30 +08:00
|
|
|
Queue
|
|
|
|
=====
|
|
|
|
|
|
|
|
For help on a specific :command:`openstack queue` command, enter:
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
$ openstack queue COMMAND -h/--help
|
|
|
|
|
2017-06-08 04:30:24 -04:00
|
|
|
The fourteen commands:
|
2016-12-20 11:32:30 +08:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
queue create
|
2017-06-08 04:30:24 -04:00
|
|
|
messaging queue create
|
2016-12-20 11:32:30 +08:00
|
|
|
queue delete
|
2017-06-08 04:30:24 -04:00
|
|
|
messaging queue delete
|
2016-12-20 11:32:30 +08:00
|
|
|
queue get metadata
|
2017-06-08 04:30:24 -04:00
|
|
|
messaging queue get metadata
|
2016-12-20 11:32:30 +08:00
|
|
|
queue list
|
2017-06-08 04:30:24 -04:00
|
|
|
messaging queue list
|
2016-12-20 11:32:30 +08:00
|
|
|
queue set metadata
|
2017-06-08 04:30:24 -04:00
|
|
|
messaging queue set metadata
|
2016-12-20 11:32:30 +08:00
|
|
|
queue signed url
|
2017-06-08 04:30:24 -04:00
|
|
|
messaging queue signed url
|
2016-12-20 11:32:30 +08:00
|
|
|
queue stats
|
2017-06-08 04:30:24 -04:00
|
|
|
messaging queue stats
|
2016-12-20 11:32:30 +08:00
|
|
|
|
|
|
|
.. _openstack_queue_create:
|
|
|
|
|
|
|
|
openstack queue create
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack queue create [-h] [-f {json,shell,table,value,yaml}]
|
|
|
|
[-c COLUMN] [--max-width <integer>] [--noindent]
|
|
|
|
[--prefix PREFIX]
|
|
|
|
<queue_name>
|
|
|
|
|
|
|
|
Create a queue.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
|
|
|
|
2017-06-08 04:30:24 -04:00
|
|
|
.. _openstack_messaging_queue_create:
|
|
|
|
|
|
|
|
openstack messaging queue create
|
2018-03-20 18:29:45 +09:00
|
|
|
--------------------------------
|
2017-06-08 04:30:24 -04:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack messaging queue create [-h] [-f {json,shell,table,value,yaml}]
|
|
|
|
[-c COLUMN] [--max-width <integer>] [--noindent]
|
|
|
|
[--prefix PREFIX]
|
|
|
|
<queue_name>
|
|
|
|
|
|
|
|
Create a queue.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
2016-12-20 11:32:30 +08:00
|
|
|
|
|
|
|
.. _openstack_queue_delete:
|
|
|
|
|
|
|
|
openstack queue delete
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack queue delete [-h] <queue_name>
|
|
|
|
|
|
|
|
Delete a queue.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
|
|
|
|
2017-06-08 04:30:24 -04:00
|
|
|
.. _openstack_messaging_queue_delete:
|
|
|
|
|
|
|
|
openstack messaging queue delete
|
2018-03-20 18:29:45 +09:00
|
|
|
--------------------------------
|
2017-06-08 04:30:24 -04:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack messaging queue delete [-h] <queue_name>
|
|
|
|
|
|
|
|
Delete a queue.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
2016-12-20 11:32:30 +08:00
|
|
|
|
|
|
|
.. _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 <integer>]
|
|
|
|
[--noindent] [--prefix PREFIX]
|
|
|
|
<queue_name>
|
|
|
|
|
|
|
|
Get queue metadata.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
|
|
|
|
2017-06-08 04:30:24 -04:00
|
|
|
.. _openstack_messaging_queue_get_metadata:
|
|
|
|
|
|
|
|
openstack messaging queue get metadata
|
2018-03-20 18:29:45 +09:00
|
|
|
--------------------------------------
|
2017-06-08 04:30:24 -04:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack messaging queue get metadata [-h] [-f {json,shell,table,value,yaml}]
|
|
|
|
[-c COLUMN] [--max-width <integer>]
|
|
|
|
[--noindent] [--prefix PREFIX]
|
|
|
|
<queue_name>
|
|
|
|
|
|
|
|
Get queue metadata.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
2016-12-20 11:32:30 +08:00
|
|
|
|
|
|
|
.. _openstack_queue_list:
|
|
|
|
|
|
|
|
openstack queue list
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack queue list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
|
|
|
|
[--max-width <integer>] [--noindent]
|
|
|
|
[--quote {all,minimal,none,nonnumeric}]
|
|
|
|
[--marker <queue_id>] [--limit <limit>]
|
2017-04-06 08:06:24 +08:00
|
|
|
[--detailed]
|
2016-12-20 11:32:30 +08:00
|
|
|
|
|
|
|
List available queues.
|
|
|
|
|
|
|
|
**Optional arguments:**
|
|
|
|
|
|
|
|
``--marker <queue_id>``
|
|
|
|
Queue's paging marker.
|
|
|
|
|
|
|
|
``--limit <limit>``
|
|
|
|
Page size limit.
|
|
|
|
|
2017-04-06 08:06:24 +08:00
|
|
|
``--detailed``
|
|
|
|
If show detailed information of queue.
|
|
|
|
|
2017-06-08 04:30:24 -04:00
|
|
|
.. _openstack_messaging_queue_list:
|
|
|
|
|
|
|
|
openstack messaging queue list
|
2018-03-20 18:29:45 +09:00
|
|
|
------------------------------
|
2017-06-08 04:30:24 -04:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack messaging queue list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
|
|
|
|
[--max-width <integer>] [--noindent]
|
|
|
|
[--quote {all,minimal,none,nonnumeric}]
|
|
|
|
[--marker <queue_id>] [--limit <limit>]
|
|
|
|
[--detailed]
|
|
|
|
|
|
|
|
List available queues.
|
|
|
|
|
|
|
|
**Optional arguments:**
|
|
|
|
|
|
|
|
``--marker <queue_id>``
|
|
|
|
Queue's paging marker.
|
|
|
|
|
|
|
|
``--limit <limit>``
|
|
|
|
Page size limit.
|
|
|
|
|
|
|
|
``--detailed``
|
|
|
|
If show detailed information of queue.
|
2016-12-20 11:32:30 +08:00
|
|
|
|
|
|
|
.. _openstack_queue_set_metadata:
|
|
|
|
|
|
|
|
openstack queue set metadata
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack queue set metadata [-h] <queue_name> <queue_metadata>
|
|
|
|
|
2017-06-08 04:30:24 -04:00
|
|
|
Set queue metadata.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
|
|
|
|
|
|
|
``<queue_metadata>``
|
|
|
|
Queue metadata. It should be json like. For example: '{"age": 18}'
|
|
|
|
|
|
|
|
.. _openstack_messaging_queue_set_metadata:
|
|
|
|
|
|
|
|
openstack messaging queue set metadata
|
2018-03-20 18:29:45 +09:00
|
|
|
--------------------------------------
|
2017-06-08 04:30:24 -04:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack messaging queue set metadata [-h] <queue_name> <queue_metadata>
|
|
|
|
|
2017-06-22 06:15:45 -04:00
|
|
|
Set queue metadata.All the metadata of the queue will be replaced by
|
|
|
|
queue_metadata.
|
2016-12-20 11:32:30 +08:00
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
|
|
|
|
|
|
|
``<queue_metadata>``
|
|
|
|
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 <integer>]
|
|
|
|
[--noindent] [--prefix PREFIX]
|
|
|
|
[--paths <paths>]
|
|
|
|
[--ttl-seconds <ttl_seconds>]
|
|
|
|
[--methods <methods>]
|
|
|
|
<queue_name>
|
|
|
|
|
|
|
|
Create a pre-signed url for the queue.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
|
|
|
|
|
|
|
**Optional arguments:**
|
|
|
|
|
2017-06-08 04:30:24 -04:00
|
|
|
``--paths <paths>``
|
|
|
|
Allowed paths in a comma-separated list.
|
|
|
|
Options: messages, subscriptions, claims.
|
|
|
|
|
|
|
|
``--ttl-seconds <ttl_seconds>``
|
|
|
|
Length of time (in seconds) until the signature expires.
|
|
|
|
|
|
|
|
``--methods <methods>``
|
|
|
|
HTTP methods to allow as a comma-separated list.
|
|
|
|
Options: GET, HEAD, OPTIONS, POST, PUT, DELETE.
|
|
|
|
|
|
|
|
.. _openstack_messaging_queue_signed_url:
|
|
|
|
|
|
|
|
openstack messaging queue signed url
|
2018-03-20 18:29:45 +09:00
|
|
|
------------------------------------
|
2017-06-08 04:30:24 -04:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack messaging queue signed url [-h] [-f {json,shell,table,value,yaml}]
|
|
|
|
[-c COLUMN] [--max-width <integer>]
|
|
|
|
[--noindent] [--prefix PREFIX]
|
|
|
|
[--paths <paths>]
|
|
|
|
[--ttl-seconds <ttl_seconds>]
|
|
|
|
[--methods <methods>]
|
|
|
|
<queue_name>
|
|
|
|
|
|
|
|
Create a pre-signed url for the queue.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
|
|
|
|
|
|
|
**Optional arguments:**
|
|
|
|
|
2016-12-20 11:32:30 +08:00
|
|
|
``--paths <paths>``
|
|
|
|
Allowed paths in a comma-separated list.
|
|
|
|
Options: messages, subscriptions, claims.
|
|
|
|
|
|
|
|
``--ttl-seconds <ttl_seconds>``
|
|
|
|
Length of time (in seconds) until the signature expires.
|
|
|
|
|
|
|
|
``--methods <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 <integer>] [--noindent]
|
|
|
|
[--prefix PREFIX]
|
|
|
|
<queue_name>
|
|
|
|
|
|
|
|
Get queue stats.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
2017-03-13 12:01:39 +08:00
|
|
|
|
2017-06-08 04:30:24 -04:00
|
|
|
.. _openstack_messaging_queue_stats:
|
|
|
|
|
|
|
|
openstack messaging queue stats
|
2018-03-20 18:29:45 +09:00
|
|
|
-------------------------------
|
2017-06-08 04:30:24 -04:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack messaging queue stats [-h] [-f {json,shell,table,value,yaml}]
|
|
|
|
[-c COLUMN] [--max-width <integer>] [--noindent]
|
|
|
|
[--prefix PREFIX]
|
|
|
|
<queue_name>
|
|
|
|
|
|
|
|
Get queue stats.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
2017-03-13 12:01:39 +08:00
|
|
|
|
|
|
|
.. _openstack_queue_purge:
|
|
|
|
|
|
|
|
openstack queue purge
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack queue purge [-h] [--resource_types <resource_types>]
|
|
|
|
<queue_name>
|
|
|
|
|
|
|
|
Purge a queue. All the metadata of the queue will be kept. Use
|
|
|
|
``--resource_types`` to specify which resource should be pured. If
|
|
|
|
``--resource_types`` is not specified, all the messages and subscriptions in
|
|
|
|
the queue will be purged by default.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
|
|
|
|
|
|
|
**Optional arguments:**
|
|
|
|
|
2018-03-20 18:29:45 +09:00
|
|
|
``--resource_types <resource_types>``
|
2017-03-13 12:01:39 +08:00
|
|
|
Resource types want to be purged. Support ``messages`` and ``subscriptions``.
|
2017-06-08 04:30:24 -04:00
|
|
|
|
|
|
|
.. _openstack_messaging_queue_purge:
|
|
|
|
|
|
|
|
openstack messaging queue purge
|
2018-03-20 18:29:45 +09:00
|
|
|
-------------------------------
|
2017-06-08 04:30:24 -04:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
usage: openstack messaging queue purge [-h] [--resource_types <resource_types>]
|
|
|
|
<queue_name>
|
|
|
|
|
|
|
|
Purge a queue. All the metadata of the queue will be kept. Use
|
|
|
|
``--resource_types`` to specify which resource should be pured. If
|
|
|
|
``--resource_types`` is not specified, all the messages and subscriptions in
|
|
|
|
the queue will be purged by default.
|
|
|
|
|
|
|
|
**Positional arguments:**
|
|
|
|
|
|
|
|
``<queue_name>``
|
|
|
|
Name of the queue.
|
|
|
|
|
|
|
|
**Optional arguments:**
|
|
|
|
|
2018-03-20 18:29:45 +09:00
|
|
|
``--resource_types <resource_types>``
|
2017-06-08 04:30:24 -04:00
|
|
|
Resource types want to be purged. Support ``messages`` and ``subscriptions``.
|