Add support of setting snapshot state

This patch is going to add the functionality of
setting snapshot state which OSC currently lacks.

Closes-Bug:#1535239
Change-Id: I2afd6567416e75ba0c70b73351cf1eb5394b3373
This commit is contained in:
Xi Yang
2016-01-18 17:09:14 +08:00
parent 752705ae30
commit 189e4774f8
4 changed files with 47 additions and 4 deletions
doc/source/command-objects
openstackclient
tests
volume
releasenotes/notes

@ -2,7 +2,7 @@
snapshot
========
Block Storage v1
Block Storage v1, v2
snapshot create
---------------
@ -82,6 +82,7 @@ Set snapshot properties
[--name <name>]
[--description <description>]
[--property <key=value> [...] ]
[--state <state>]
<snapshot>
.. _snapshot_restore-snapshot:
@ -97,6 +98,14 @@ Set snapshot properties
Property to add or modify for this snapshot (repeat option to set multiple properties)
.. option:: --state <state>
New snapshot state.
Valid values are "available", "error", "creating",
"deleting", and "error_deleting".
*Volume version 2 only*
.. describe:: <snapshot>
Snapshot to modify (name or ID)