_ExtStorageAction(action,
unique_id,
ext_params,
size=None,
grow=None,
metadata=None,
name=None,
uuid=None,
snap_name=None,
snap_size=None,
exclusive=None)
| source code
|
Take an External Storage action.
Take an External Storage action concerning or affecting a specific
Volume inside the External Storage.
- Parameters:
action (string) - which action to perform. One of: create / remove / grow / attach
/ detach / snapshot
unique_id (tuple (driver, vol_name)) - a tuple containing the type of ExtStorage (driver) and the Volume
name
ext_params (dict) - ExtStorage parameters
size (integer) - the size of the Volume in mebibytes
grow (integer) - the new size in mebibytes (after grow)
metadata (string) - metadata info of the Volume, for use by the provider
name (string) - name of the Volume (objects.Disk.name)
snap_size (integer) - the size of the snapshot
snap_name (string) - the name of the snapshot
exclusive (boolean) - Whether the Volume will be opened exclusively or not
uuid (string) - uuid of the Volume (objects.Disk.uuid)
- Returns: None or a block device path (during attach)
|