cterasdk.edge.volumes module

class cterasdk.edge.volumes.Volumes(gateway)

Bases: cterasdk.edge.base_command.BaseCommand

Gateway Volumes configuration APIs

add(name, size=None, filesystem='xfs', device=None, passphrase=None)

Add a new volume to the gateway

Parameters:
  • name (str) – Name of the new volume
  • size (int,optional) – Size of the new volume, defaults to the device’s size
  • filesystem (str,optional) – Filesystem to use, defaults to xfs
  • device (str,optional) – Name of the device to use for the new volume, can be left as None if there the gateway has only one
  • passphrase (str,optional) – Passphrase for the volume
Returns:

Gateway response

delete(name)

Delete a volume

Parameters:name (str) – Name of the volume to delete
delete_all()

Delete all volumes

get(name=None)

Get Volume. If a volume name was not passed as an argument, a list of all storage volumes will be retrieved :param str,optional name: Name of the volume

modify(name, size=None)

Modify an existing volume

Parameters:size (int,optional) – New size of the volume, if not set, the size will not change
Returns:Gateway response