Volume_snapshotsΒΆ

Volume snapshot interface (1.1 extension).

class novaclient.v1_1.volume_snapshots.Snapshot(manager, info, loaded=False)

Bases: novaclient.openstack.common.apiclient.base.Resource

A Snapshot is a point-in-time snapshot of an openstack volume.

Snapshot.NAME_ATTR = 'display_name'
Snapshot.delete()

Delete this snapshot.

class novaclient.v1_1.volume_snapshots.SnapshotManager(api)

Bases: novaclient.base.ManagerWithFind

Manage Snapshot resources.

SnapshotManager.create(volume_id, force=False, display_name=None, display_description=None)

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. :param display_name: Name of the snapshot :param display_description: Description of the snapshot :rtype: Snapshot

SnapshotManager.delete(snapshot)

Delete a snapshot.

Parameters:snapshot – The Snapshot to delete.
SnapshotManager.get(snapshot_id)

Get a snapshot.

Parameters:snapshot_id – The ID of the snapshot to get.
Return type:Snapshot
SnapshotManager.list(detailed=True)

Get a list of all snapshots.

Return type:list of Snapshot
SnapshotManager.resource_class

alias of Snapshot

Previous topic

Virtual_interfaces

Next topic

Volumes

This Page