Volume_snapshotsΒΆ
DEPRECATED: Volume snapshot interface (1.1 extension).
-
class
novaclient.v2.volume_snapshots.
Snapshot
(manager, info, loaded=False, resp=None) Bases:
novaclient.base.Resource
DEPRECATED: A Snapshot is a point-in-time snapshot of an openstack volume.
Populate and bind to a manager.
Parameters: - manager – BaseManager object
- info – dictionary representing resource attributes
- loaded – prevent lazy-loading if set to True
- resp – Response or list of Response objects
-
NAME_ATTR
= 'display_name'
-
delete
() DEPRECATED: Delete this snapshot.
Returns: An instance of novaclient.base.TupleWithMeta
-
class
novaclient.v2.volume_snapshots.
SnapshotManager
(api) Bases:
novaclient.base.ManagerWithFind
DEPRECATED: Manage
Snapshot
resources.-
create
(volume_id, force=False, display_name=None, display_description=None) DEPRECATED: Create a snapshot of the given volume.
Parameters: - volume_id – The ID of the volume to snapshot.
- force – If force is True, create a snapshot even if the volume is attached to an instance. Default is False.
- display_name – Name of the snapshot
- display_description – Description of the snapshot
Return type: Snapshot
-
delete
(snapshot) DEPRECATED: Delete a snapshot.
Parameters: snapshot – The Snapshot
to delete.Returns: An instance of novaclient.base.TupleWithMeta
-
get
(snapshot_id) DEPRECATED: Get a snapshot.
Parameters: snapshot_id – The ID of the snapshot to get. Return type: Snapshot
-
list
(detailed=True) DEPRECATED: Get a list of all snapshots.
Return type: list of Snapshot
-
resource_class
alias of
Snapshot
-