You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List all existing volumes in a specified zone. By default, the volume listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
138
+
List all existing volumes in a specified zone. By default, the volumes listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
139
139
:param zone: Zone to target. If none is passed will use default zone from the config.
140
-
:param order_by: Sort order of the returned volumes.
141
-
:param project_id: Only list volumes of this project ID.
142
-
:param page: Positive integer to choose the page to return.
143
-
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
140
+
:param order_by: Criteria to use when ordering the list.
141
+
:param project_id: Filter by Project ID.
142
+
:param page: Page number.
143
+
:param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100.
144
144
:param name: Filter the return volumes by their names.
145
-
:param product_resource_id: Filter by a Product Resource Id linked to this volume (such as an Instance Server Id).
145
+
:param product_resource_id: Filter by a product resource ID linked to this volume (such as an Instance ID).
List all existing volumes in a specified zone. By default, the volume listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
185
+
List all existing volumes in a specified zone. By default, the volumes listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
186
186
:param zone: Zone to target. If none is passed will use default zone from the config.
187
-
:param order_by: Sort order of the returned volumes.
188
-
:param project_id: Only list volumes of this project ID.
189
-
:param page: Positive integer to choose the page to return.
190
-
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
187
+
:param order_by: Criteria to use when ordering the list.
188
+
:param project_id: Filter by Project ID.
189
+
:param page: Page number.
190
+
:param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100.
191
191
:param name: Filter the return volumes by their names.
192
-
:param product_resource_id: Filter by a Product Resource Id linked to this volume (such as an Instance Server Id).
192
+
:param product_resource_id: Filter by a product resource ID linked to this volume (such as an Instance ID).
Create a new empty volume by specifying the `size`.
229
-
To create a volume from an existing snapshot, specify the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size.
230
-
In that case the created volume will have the same volume class (and underlying IOPS limitations) as the originating snapshot.
231
-
You can specify the desired performance of the volume by setting `requirements` accordingly.
228
+
Create a volume.
229
+
To create a new volume from scratch, you must specify `from_empty` and the `size`.
230
+
To create a volume from an existing snapshot, specify `from_snapshot` and the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size. The volume will take on the same volume class and underlying IOPS limitations as the original snapshot.
232
231
:param zone: Zone to target. If none is passed will use default zone from the config.
233
-
:param name: Name of the volume you want to create.
232
+
:param name: Name of the volume.
234
233
:param perf_iops: The maximum IO/s expected, according to the different options available in stock (`5000 | 15000`).
235
234
236
235
One-of ('requirements'): at most one of 'perf_iops' could be set.
237
236
:param project_id: UUID of the project the volume belongs to.
238
-
:param from_empty: Create a new and empty volume.
237
+
:param from_empty: Specify the size of the new volume if creating a new one from scratch.
239
238
240
239
One-of ('from_'): at most one of 'from_empty', 'from_snapshot' could be set.
241
-
:param from_snapshot: Create a volume from an existing snapshot.
240
+
:param from_snapshot: Specify the snapshot ID of the original snapshot.
242
241
243
242
One-of ('from_'): at most one of 'from_empty', 'from_snapshot' could be set.
244
243
:param tags: List of tags assigned to the volume.
@@ -282,7 +281,7 @@ async def get_volume(
282
281
Get a volume.
283
282
Retrieve technical information about a specific volume. Details such as size, type, and status are returned in the response.
284
283
:param zone: Zone to target. If none is passed will use default zone from the config.
285
-
:param volume_id: UUID of the volume you want to get.
284
+
:param volume_id: UUID of the volume.
286
285
:return: :class:`Volume <Volume>`
287
286
288
287
Usage:
@@ -312,7 +311,7 @@ async def wait_for_volume(
312
311
"""
313
312
Waits for :class:`Volume <Volume>` to be in a final state.
314
313
:param zone: Zone to target. If none is passed will use default zone from the config.
315
-
:param volume_id: UUID of the volume you want to get.
314
+
:param volume_id: UUID of the volume.
316
315
:param options: The options for the waiter
317
316
:return: :class:`Volume <Volume>`
318
317
@@ -378,17 +377,17 @@ async def update_volume(
378
377
) ->Volume:
379
378
"""
380
379
Update a volume.
381
-
Update technical details about a volume, such as its name, tags, or its new size and `volume_type` (within the same Block Storage class).
382
-
You can only resize a volume to a larger size. It is not possible for now to change your Block Storage Class.
380
+
Update the technical details of a volume, such as its name, tags, or its new size and `volume_type` (within the same Block Storage class).
381
+
You can only resize a volume to a larger size. It is currently not possible to change your Block Storage Class.
383
382
:param zone: Zone to target. If none is passed will use default zone from the config.
384
383
:param volume_id: UUID of the volume.
385
384
:param name: When defined, is the new name of the volume.
386
-
:param size: Optional field for growing a volume (size must be equal or larger than the current one).
385
+
:param size: Optional field for increasing the size of a volume (size must be equal or larger than the current one).
387
386
Size in bytes of the volume, with a granularity of 1 GB (10^9 bytes).
388
-
Must be compliant with the minimum and maximum allowed size.
387
+
Must be compliant with the minimum (1GB) and maximum (10TB) allowed size.
389
388
:param tags: List of tags assigned to the volume.
390
389
:param perf_iops: The maximum IO/s expected, according to the different options available in stock (`5000 | 15000`).
391
-
The selected value must be available on the Storage Class where is currently located the volume.
390
+
The selected value must be available for the volume's current storage class.
392
391
:return: :class:`Volume <Volume>`
393
392
394
393
Usage:
@@ -434,12 +433,12 @@ async def list_snapshots(
434
433
List all snapshots.
435
434
List all available snapshots in a specified zone. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
436
435
:param zone: Zone to target. If none is passed will use default zone from the config.
437
-
:param order_by: Sort order of the returned snapshots.
438
-
:param project_id: Only list snapshots of this project ID.
439
-
:param page: Positive integer to choose the page to return.
440
-
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
441
-
:param volume_id: Filter the return snapshots by the volume it belongs to.
442
-
:param name: Filter the return snapshots by their names.
436
+
:param order_by: Criteria to use when ordering the list.
437
+
:param project_id: Filter by Project ID.
438
+
:param page: Page number.
439
+
:param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100.
440
+
:param volume_id: Filter snapshots by the ID of the original volume.
List all available snapshots in a specified zone. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
483
482
:param zone: Zone to target. If none is passed will use default zone from the config.
484
-
:param order_by: Sort order of the returned snapshots.
485
-
:param project_id: Only list snapshots of this project ID.
486
-
:param page: Positive integer to choose the page to return.
487
-
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
488
-
:param volume_id: Filter the return snapshots by the volume it belongs to.
489
-
:param name: Filter the return snapshots by their names.
483
+
:param order_by: Criteria to use when ordering the list.
484
+
:param project_id: Filter by Project ID.
485
+
:param page: Page number.
486
+
:param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100.
487
+
:param volume_id: Filter snapshots by the ID of the original volume.
0 commit comments