The Volume class inherits from Resource.
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: |
|
---|
A ID representing this volume.
The name of this volume.
A list of links associated with this volume. Type: list
The availability zone.
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.
The volume description.
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.
The size of the volume, in GBs. Type: int
The ID of the image from which you want to create the volume. Required to create a bootable volume.
The name of the associated volume type.
Enables or disables the bootable attribute. You can boot an instance from a bootable volume. Type: bool
One or more metadata key and value pairs to associate with the 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.
TODO(briancurtin): This is currently undocumented in the API.
The timestamp of this volume creation.
The VolumeDetail class inherits from Volume.
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: |
|
---|
The volume’s current back-end.
The project ID associated with current back-end.
The status of this volume’s migration (None means that a migration is not currently in progress).
The volume ID that this volume’s name on the back-end is based on.
Status of replication on this volume.
Extended replication status on this volume.
ID of the consistency group.
Data set by the replication driver
True if this volume is encrypted, False if not. Type: bool
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.