The Snapshot
class inherits from Resource
.
openstack.block_store.v2.snapshot.
Snapshot
(attrs=None, loaded=False)¶Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct
resource objects, which are preferrable to entering through
this initializer. See Resource.new()
and
Resource.existing()
.
Parameters: |
|
---|
id
= None¶A ID representing this snapshot.
name
= None¶Name of the snapshot. Default is None.
status
= None¶The current status of this snapshot. Potential values are creating, available, deleting, error, and error_deleting.
description
= None¶Description of snapshot. Default is None.
created_at
= None¶The timestamp of this snapshot creation.
metadata
= None¶Metadata associated with this snapshot.
volume_id
= None¶The ID of the volume this snapshot was taken of.
size
= None¶The size of the volume, in GBs.
force
= None¶Indicate whether to snapshot, even if the volume is attached. Default is False.
The SnapshotDetail
class inherits from
Snapshot
.
openstack.block_store.v2.snapshot.
SnapshotDetail
(attrs=None, loaded=False)¶Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct
resource objects, which are preferrable to entering through
this initializer. See Resource.new()
and
Resource.existing()
.
Parameters: |
|
---|
progress
= None¶The percentage of completeness the snapshot is currently at.
project_id
= None¶The project ID this snapshot is associated with.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.