Volume extension
1. manage(**attrs)
Creates a Block Storage volume by using existing storage rather than allocating new storage.
Parameters:
| Name | Type | Description |
|---|---|---|
| host | xsd:string | The OpenStack Block Storage host where the existing volume resides. |
| ref | xsd:string | A reference to the existing volume. The internal structure of this reference depends on the volume driver implementation. For details about the required elements in the structure, see the documentation for the volume driver. |
| name (Optional) | xsd:string | The volume name. |
| availability_zone (Optional) | xsd:string | The availability zone. |
| description (Optional) | xsd:string | The volume description. |
| volume_type (Optional) | xsd:string | The associated volume type. |
| bootable (Optional) | xsd:boolean | Enables or disables the bootable attribute. You can boot an instance from a bootable volume. |
| metadata (Optional) | xsd:string | One or more metadata key and value pairs to associate with the volume. |
Return value: Volume Instance
Return value example:
istack/volumev2/v2/Volume Volume
id : dfa903aa-e9f4-4e67-905f-4e18197d816a
links : [{u'href': u'http://10.200.43.31:8776/v2/cde9cbf5a7f1401a9389c84ba98bdcf6/volumes/dfa903aa-e9f4-4e67-905f-4e18197d816a', u'rel': u'self'}, {u'href': u'http://10.200.43.31:8776/cde9cbf5a7f1401a9389c84ba98bdcf6/volumes/dfa903aa-e9f4-4e67-905f-4e18197d816a', u'rel': u'bookmark'}]
name : New Volume python test
2. image_metadata(**attrs)
show image metadata for volume
Parameters:
| Name | Type | Description |
|---|---|---|
| host | xsd:string | The OpenStack Block Storage host where the existing volume resides. |
| ref | xsd:dict | A reference to the existing volume. The internal structure of this reference is dependent on the implementation of the volume driver, see the specific driver's documentation for details of the required elements in the structure. |
| name (Optional) | xsd:string | The volume name. |
| availability_zone (Optional) | xsd:string | The availability zone. |
| description (Optional) | xsd:string | The volume description. |
| volume_type (Optional) | xsd:string | The associated volume type. |
| bootable (Optional) | xsd:boolean | Enables or disables the bootable attribute. You can boot an instance from a bootable volume. |
| metadata (Optional) | xsd:dict | One or more metadata key and value pairs to associate with the volume. |
Return value: Volume Instance
Return value example:
istack/volumev2/v2/Volume Volume
id : dfa903aa-e9f4-4e67-905f-4e18197d816a
links : [{u'href': u'http://10.200.43.31:8776/v2/cde9cbf5a7f1401a9389c84ba98bdcf6/volumes/dfa903aa-e9f4-4e67-905f-4e18197d816a', u'rel': u'self'}, {u'href': u'http://10.200.43.31:8776/cde9cbf5a7f1401a9389c84ba98bdcf6/volumes/dfa903aa-e9f4-4e67-905f-4e18197d816a', u'rel': u'bookmark'}]
name : New Volume python test
3. backend_storage_pools()
List back-end storage pools
Parameters: None
Return value: List of Pool
Return value example:
istack/volumev2/v2/pool Pool
name : testserver@lvm#lvm