anatools.client.volumes module

Volumes Functions

anatools.client.volumes.add_volume_access(self, volumeId, organizationId)

Add access to a volume for an organization.

Parameters
  • volumeId (str) – VolumeId to add access for.

  • organizationId (str) – Organization ID to add access

Returns

Status

Return type

str

anatools.client.volumes.create_managed_volume(self, name, organizationId=None)

Creates a new volume with the specified name in the organization.

Parameters
  • name (str) – The name of the new volume. Note: this name needs to be unique per organization.

  • organizationId (str) – The ID of the organization that the managed volume will belong to.

Returns

volumeId

Return type

str

anatools.client.volumes.delete_managed_volume(self, volumeId)

Removes the volumeId from the organization. Note that this will delete any remote data in the volume and channels that rely on this volume will need to be updated.

Parameters
  • organizationId (str) – The ID of the organization that the managed volume belongs to.

  • volumeId (str) – The ID of a specific Volume.

Returns

Status

Return type

str

anatools.client.volumes.delete_volume_data(self, volumeId, files=[])

Delete data from a volume.

Parameters
  • volumeId (str) – VolumeId to remove access to.

  • files (str) – The specific files to delete from the volume, if you wish to delete all then leave the list empty.

Returns

Status

Return type

str

anatools.client.volumes.download_volume_data(self, volumeId, files=[], localdir=None)

Download data from a volume.

Parameters
  • volumeId (str) – VolumeId to remove access to.

  • files (str) – The specific files to retrieve from the volume, if you wish to retrieve all then leave the list empty.

  • localdir (str) – The location of the local directory to download the files to. If not specified, this will download the files to the current directory.

Returns

Status

Return type

str

anatools.client.volumes.edit_managed_volume(self, volumeId, name)

Edits the name of a volume.

Parameters
  • volumeId (str) – The volumeId that will be updated.

  • name (str) – The new name of the new volume. Note: this name needs to be unique per organization.

Returns

Status

Return type

str

anatools.client.volumes.get_managed_volumes(self, organizationId=None, volumeId=None)

Retrieves the managed volumes for an organization.

Parameters
  • organizationId (str) – The ID of the organization that the managed volume belongs to.

  • volumeId (str) – The ID of a specific Volume.

Returns

Volume Info

Return type

json

anatools.client.volumes.get_volume_data(self, volumeId, files=[])

Retrieves information about data from a volume.

Parameters
  • volumeId (str) – VolumeId to remove access to.

  • files (str) – The specific files to retrieve information about from the volume, if you wish to retrieve all then leave the list empty.

Returns

Status

Return type

str

anatools.client.volumes.get_volumes(self, organizationId=None, volumeId=None)

Retrieves the managed volumes for an organization.

Parameters
  • organizationId (str) – The ID of the organization that the managed volume belongs to.

  • volumeId (str) – The ID of a specific Volume.

Returns

Volume Info

Return type

json

anatools.client.volumes.remove_volume_access(self, volumeId, organizationId)

Remove access to a volume for an organization.

Parameters
  • volumeId (str) – VolumeId to remove access to.

  • organizationId (str) – Organization ID to remove access.

Returns

Status

Return type

str

anatools.client.volumes.upload_volume_data(self, volumeId, files=[], localdir=None)

Upload data to a volume.

Parameters
  • volumeId (str) – VolumeId to remove access to.

  • files (str) – The specific files to push to the volume, if you wish to push all then leave the list empty.

  • localdir (str) – The location of the local directory to upload the files from. If not specified, this will try to upload the files from the current directory.

Returns

Status

Return type

str