blob: 21a893701895299518477485b85ef5f8b5f3f0bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
===============
volume snapshot
===============
Block Storage v1, v2
volume snapshot create
----------------------
Create new volume snapshot
.. program:: volume snapshot create
.. code:: bash
openstack volume snapshot create
[--volume <volume>]
[--description <description>]
[--force]
[--property <key=value> [...] ]
[--remote-source <key=value> [...]]
<snapshot-name>
.. option:: --volume <volume>
Volume to snapshot (name or ID) (default is <snapshot-name>)
.. option:: --description <description>
Description of the snapshot
.. option:: --force
Create a snapshot attached to an instance. Default is False
.. option:: --property <key=value>
Set a property to this snapshot (repeat option to set multiple properties)
*Volume version 2 only*
.. option:: --remote-source <key=value>
The attribute(s) of the exsiting remote volume snapshot
(admin required) (repeat option to specify multiple attributes)
e.g.: '--remote-source source-name=test_name --remote-source source-id=test_id'
*Volume version 2 only*
.. _volume_snapshot_create-snapshot-name:
.. describe:: <snapshot-name>
Name of the new snapshot
volume snapshot delete
----------------------
Delete volume snapshot(s)
.. program:: volume snapshot delete
.. code:: bash
openstack volume snapshot delete
[--force]
<snapshot> [<snapshot> ...]
.. option:: --force
Attempt forced removal of snapshot(s), regardless of state (defaults to False)
.. _volume_snapshot_delete-snapshot:
.. describe:: <snapshot>
Snapshot(s) to delete (name or ID)
volume snapshot list
--------------------
List volume snapshots
.. program:: volume snapshot list
.. code:: bash
openstack volume snapshot list
[--all-projects]
[--project <project> [--project-domain <project-domain>]]
[--long]
[--limit <num-snapshots>]
[--marker <snapshot>]
[--name <name>]
[--status <status>]
[--volume <volume>]
.. option:: --all-projects
Include all projects (admin only)
.. option:: --project <project>
Filter results by project (name or ID) (admin only)
*Volume version 2 only*
.. option:: --project-domain <project-domain>
Domain the project belongs to (name or ID).
This can be used in case collisions between project names exist.
*Volume version 2 only*
.. option:: --long
List additional fields in output
.. option:: --status <status>
Filters results by a status.
('available', 'error', 'creating', 'deleting' or 'error_deleting')
.. option:: --name <name>
Filters results by a name.
.. option:: --volume <volume>
Filters results by a volume (name or ID).
.. option:: --limit <num-snapshots>
Maximum number of snapshots to display
*Volume version 2 only*
.. option:: --marker <snapshot>
The last snapshot ID of the previous page
*Volume version 2 only*
volume snapshot set
-------------------
Set volume snapshot properties
.. program:: volume snapshot set
.. code:: bash
openstack volume snapshot set
[--name <name>]
[--description <description>]
[--no-property]
[--property <key=value> [...] ]
[--state <state>]
<snapshot>
.. option:: --name <name>
New snapshot name
.. option:: --description <description>
New snapshot description
.. option:: --no-property
Remove all properties from :ref:`\<snapshot\> <volume_snapshot_set-snapshot>`
(specify both :option:`--no-property` and :option:`--property` to
remove the current properties before setting new properties.)
.. option:: --property <key=value>
Property to add or modify for this snapshot (repeat option to set multiple properties)
.. option:: --state <state>
New snapshot state.
("available", "error", "creating", "deleting", or "error_deleting") (admin only)
(This option simply changes the state of the snapshot in the database with
no regard to actual status, exercise caution when using)
*Volume version 2 only*
.. _volume_snapshot_set-snapshot:
.. describe:: <snapshot>
Snapshot to modify (name or ID)
volume snapshot show
--------------------
Display volume snapshot details
.. program:: volume snapshot show
.. code:: bash
openstack volume snapshot show
<snapshot>
.. _volume_snapshot_show-snapshot:
.. describe:: <snapshot>
Snapshot to display (name or ID)
volume snapshot unset
---------------------
Unset volume snapshot properties
.. program:: volume snapshot unset
.. code:: bash
openstack volume snapshot unset
[--property <key>]
<snapshot>
.. option:: --property <key>
Property to remove from snapshot (repeat option to remove multiple properties)
.. _volume_snapshot_unset-snapshot:
.. describe:: <snapshot>
Snapshot to modify (name or ID)
|