For details on how to use block_store, see Using OpenStack Block Store
The block_store high-level interface is available through the block_store member of a Connection object. The block_store member will only be added if the service is detected.
Get a single snapshot
Parameters: | snapshot – The value can be the ID of a snapshot or a Snapshot instance. |
---|---|
Returns: | One Snapshot |
Raises: | ResourceNotFound when no resource can be found. |
Create a new snapshot from attributes
Parameters: | attrs (dict) – Keyword arguments which will be used to create a Snapshot, comprised of the properties on the Snapshot class. |
---|---|
Returns: | The results of snapshot creation |
Return type: | Snapshot |
Delete a snapshot
Parameters: |
|
---|---|
Returns: | None |
Get a single type
Parameters: | type – The value can be the ID of a type or a Type instance. |
---|---|
Returns: | One Type |
Raises: | ResourceNotFound when no resource can be found. |
Create a new type from attributes
Parameters: | attrs (dict) – Keyword arguments which will be used to create a Type, comprised of the properties on the Type class. |
---|---|
Returns: | The results of type creation |
Return type: | Type |
Delete a type
Parameters: |
|
---|---|
Returns: | None |
Get a single volume
Parameters: | volume – The value can be the ID of a volume or a Volume instance. |
---|---|
Returns: | One Volume |
Raises: | ResourceNotFound when no resource can be found. |
Create a new volume from attributes
Parameters: | attrs (dict) – Keyword arguments which will be used to create a Volume, comprised of the properties on the Volume class. |
---|---|
Returns: | The results of volume creation |
Return type: | Volume |
Delete a volume
Parameters: |
|
---|---|
Returns: | None |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.