The Volume
class inherits from Resource
.
The base resource
_synchronized (bool) – This is not intended to be used directly. See
new()
and
existing()
.
connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow
Resource objects to be used without an active Connection, such as
in unit tests. Use of self._connection
in Resource code should
protect itself with a check for None.
TODO(briancurtin): This is currently undocumented in the API.
The availability zone.
ID of the consistency group.
The timestamp of this volume creation.
The date and time when the resource was updated.
The volume description.
Extended replication status on this volume.
The volume’s current back-end.
The ID of the image from which you want to create the volume. Required to create a bootable volume.
Enables or disables the bootable attribute. You can boot an instance from a bootable volume. Type: bool
True
if this volume is encrypted, False
if not.
Type: bool
The volume ID that this volume’s name on the back-end is based on.
The status of this volume’s migration (None means that a migration is not currently in progress).
The project ID associated with current back-end.
Data set by the replication driver
Status of replication on this volume.
Scheduler hints for the volume
The size of the volume, in GBs. Type: int
To create a volume from an existing snapshot, specify the ID of the existing volume snapshot. If specified, the volume is created in same availability zone and with same size of the snapshot.
To create a volume from an existing volume, specify the ID of the existing volume. If specified, the volume is created with same size of the source volume.
One of the following values: creating, available, attaching, in-use deleting, error, error_deleting, backing-up, restoring-backup, error_restoring. For details on these statuses, see the Block Storage API documentation.
The user ID associated with the volume
One or more metadata key and value pairs about image
The name of the associated volume type.
Extend a volume size.
Set volume bootable status flag
Reset volume statuses (admin operation)
Attach volume to server
Detach volume from server
Unmanage volume
Change volume type
Migrate volume
Complete volume migration
Force volume deletion
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.