diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-09-29 02:38:37 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-09-29 02:38:37 +0000 |
| commit | fe879b5bd1769940c4c81e43c8bc9d45b58eaed3 (patch) | |
| tree | f2b3ba4a5a845a69185890eb502d8d8ba8821d61 /doc/source/command-objects | |
| parent | 08df1d0afcc182f3bf448a344e4ed9ca9ed1f65b (diff) | |
| parent | c9e0c01f67a00e63bb5d8b5781d7e8e87b39136c (diff) | |
| download | python-openstackclient-fe879b5bd1769940c4c81e43c8bc9d45b58eaed3.tar.gz | |
Merge "Add and modify options for "volume create" command"
Diffstat (limited to 'doc/source/command-objects')
| -rw-r--r-- | doc/source/command-objects/volume.rst | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/doc/source/command-objects/volume.rst b/doc/source/command-objects/volume.rst index f772557f..8f123361 100644 --- a/doc/source/command-objects/volume.rst +++ b/doc/source/command-objects/volume.rst @@ -13,21 +13,23 @@ Create new volume .. code:: bash os volume create - --size <size> + [--size <size>] [--type <volume-type>] - [--image <image>] - [--snapshot <snapshot>] - [--source <volume>] + [--image <image> | --snapshot <snapshot> | --source <volume> | --source-replicated <replicated-volume>] [--description <description>] [--user <user>] [--project <project>] [--availability-zone <availability-zone>] + [--consistency-group <consistency-group>] [--property <key=value> [...] ] + [--hint <key=value> [...] ] + [--multi-attach] <name> -.. option:: --size <size> (required) +.. option:: --size <size> Volume size in GB + (Required unless --snapshot or --source or --source-replicated is specified) .. option:: --type <volume-type> @@ -46,10 +48,14 @@ Create new volume Use :option:`\<snapshot\>` as source of volume (name or ID) -.. option:: --source <source> +.. option:: --source <volume> Volume to clone (name or ID) +.. option:: --source-replicated <replicated-volume> + + Replicated volume to clone (name or ID) + .. option:: --description <description> Volume description @@ -66,10 +72,23 @@ Create new volume Create volume in :option:`\<availability-zone\>` +.. option:: --consistency-group <consistency-group> + + Consistency group where the new volume belongs to + .. option:: --property <key=value> Set a property on this volume (repeat option to set multiple properties) +.. option:: --hint <key=value> + + Arbitrary scheduler hint key-value pairs to help boot an instance + (repeat option to set multiple hints) + +.. option:: --multi-attach + + Allow volume to be attached more than once (default to False) + .. _volume_create-name: .. describe:: <name> |
