storage_api.apis package

Submodules

storage_api.apis.storage module

class storage_api.apis.storage.AllExports(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

endpoint = '/_all_exports'
get(subsystem)[source]
mediatypes(resource_cls)
methods = ['GET']
class storage_api.apis.storage.AllLocks(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

endpoint = '/_all_locks'
get(subsystem, volume_name)[source]
mediatypes(resource_cls)
methods = ['GET']
class storage_api.apis.storage.AllSnapshots(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

endpoint = '/_all_snapshots'
get(subsystem, volume_name)[source]
mediatypes(resource_cls)
methods = ['GET']
class storage_api.apis.storage.AllVolumes(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

endpoint = '/_all_volumes'
get(subsystem)[source]
mediatypes(resource_cls)
methods = ['GET']
class storage_api.apis.storage.Export(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

delete(subsystem, policy)[source]
endpoint = '/_export'
get(subsystem, policy)[source]
mediatypes(resource_cls)
methods = ['DELETE', 'GET', 'POST']
post(subsystem, policy)[source]
class storage_api.apis.storage.ExportRule(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

delete(subsystem, policy, rule)[source]
endpoint = '/_export_rule'
mediatypes(resource_cls)
methods = ['DELETE', 'PUT']
put(subsystem, policy, rule)[source]
class storage_api.apis.storage.Locks(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

delete(subsystem, volume_name, host)[source]
endpoint = '/_locks'
mediatypes(resource_cls)
methods = ['DELETE', 'PUT']
put(subsystem, volume_name, host)[source]
class storage_api.apis.storage.Snapshots(api=None, *args, **kwargs)[source]

Bases: flask_restplus.resource.Resource

delete(subsystem, volume_name, snapshot_name)[source]
endpoint = '/_snapshots'
get(subsystem, volume_name, snapshot_name)[source]
mediatypes(resource_cls)
methods = ['DELETE', 'GET', 'POST']
post(subsystem, volume_name, snapshot_name)[source]
storage_api.apis.storage.Volume()[source]
storage_api.apis.storage.backend(backend_name)[source]

Return the actual backend object as given by backend_name. Has to be a function due to the app context not being available until later.

storage_api.apis.storage.default_error_handler(error)[source]
storage_api.apis.storage.exception_is_errorcode(api, exception, error_code, message=None)[source]

Context to make sure all Exceptions of a given type calls an api.abort with a suitable error and corresponding message.

If no message is passed, use str() on the exception.

storage_api.apis.storage.handle_netapp_exception(error)[source]

Return the error message from the filer and 500 status code

Module contents