cterasdk.edge.volumes module#

class cterasdk.edge.volumes.Volumes(edge)#

Bases: BaseCommand

Edge Filer Volumes configuration APIs

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

Add a Volume.

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’s only one device available

  • passphrase (str,optional) – Passphrase for the volume

Returns:

Edge Filer 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:

Edge Filer response