wanghao 8f0b9f5b07 Adding the doc of message in CLI
The doc of message is missing in zaqarclient.
So this patch will add it and also remove the unused docs for
other resources.

Change-Id: I55c745a81226487292220edfb629ca4f7dfd95d7
Closes-Bug: #1893145
Signed-off-by: wanghao <sxmatch1986@gmail.com>
2020-08-27 08:51:23 +08:00

1.7 KiB

Health

For help on a specific openstack messaging message command, enter:

$ openstack messaging message COMMAND -h/--help

The one command:

messaging message list
messaging message post

openstack messaging message list

usage: openstack messaging message list [-h] [-f {csv,json,table,value,yaml}]
                                     [-c COLUMN]
                                     [--quote {all,minimal,none,nonnumeric}]
                                     [--noindent] [--max-width <integer>]
                                     [--fit-width] [--print-empty]
                                     [--sort-column SORT_COLUMN]
                                     [--message-ids <message_ids>]
                                     [--limit <limit>] [--echo]
                                     [--include-claimed]
                                     [--include-delayed]
                                     [--client-id <client_id>]
                                     <queue_name>

List all of the messages in a queue.

Positional arguments:

<queue_name>

Name of the queue.

openstack messaging message post

usage: openstack messaging message post [-h] [--client-id <client_id>]
                                     <queue_name> <messages>

Post the messages to a queue.

Positional arguments:

<queue_name>

Name of the queue.

<messages>

messages. It should be json like. For example: '[{"body": "msg", "ttl": 60}]'