Client classes for web services.
-
class RestClient(scheme, host, port, service_path, username, password, **kwargs)
Bases: cinder.volume.drivers.netapp.eseries.client.WebserviceClient
REST client specific to e-series storage service.
-
control_volume_copy_job(obj_id, control='start')
Controls a volume copy job.
-
create_host(label, host_type, ports=None, group_id=None)
Creates host on array.
-
create_host_with_port(label, host_type, port_id, port_label, port_type='iscsi', group_id=None)
Creates host on array with given port information.
-
create_snapshot_group(label, object_id, storage_pool_id, repo_percent=99, warn_thres=99, auto_del_limit=0, full_policy='failbasewrites')
Creates snapshot group on array.
-
create_snapshot_image(group_id)
Creates snapshot image in snapshot group.
-
create_snapshot_volume(image_id, label, base_object_id, storage_pool_id, repo_percent=99, full_thres=99, view_mode='readOnly')
Creates snapshot volume.
-
create_volume(pool, label, size, unit='gb', seg_size=0)
Creates volume on array.
-
create_volume_copy_job(src_id, tgt_id, priority='priority4', tgt_wrt_protected='true')
Creates a volume copy job.
-
create_volume_mapping(object_id, target_id, lun)
Creates volume mapping on array.
-
delete_snapshot_group(object_id)
Deletes given snapshot group from array.
-
delete_snapshot_image(object_id)
Deletes given snapshot image in snapshot group.
-
delete_snapshot_volume(object_id)
Deletes given snapshot volume.
-
delete_vol_copy_job(object_id)
Delete volume copy job.
-
delete_volume(object_id)
Deletes given volume from array.
-
delete_volume_mapping(map_object_id)
Deletes given volume mapping from array.
-
get_system_id()
Get the storage system id.
-
get_volume_mappings()
Creates volume mapping on array.
-
list_drives()
Lists drives in the array.
-
list_hardware_inventory()
Lists objects in the hardware inventory.
-
list_host_types()
Lists host types in storage system.
-
list_hosts()
Lists host objects in the system.
-
list_snapshot_groups()
Lists snapshot groups.
-
list_snapshot_images()
Lists snapshot images.
-
list_storage_pools()
Lists storage pools in the array.
-
list_storage_system()
List current storage system registered with web service.
-
list_storage_systems()
Lists managed storage systems registered with web service.
-
list_vol_copy_job(object_id)
List volume copy job.
-
list_volume(object_id)
List given volume from array.
-
list_volumes()
Lists all volumes in storage array.
-
register_storage_system(controller_addresses, password=None, wwn=None)
Registers storage system with web service.
-
set_system_id(system_id)
Set the storage system id.
-
update_host_type(host_ref, host_type)
Updates host type for a given host.
-
update_stored_system_password(password)
Update array password stored on web service.
-
update_volume(object_id, label)
Renames given volume in array.
-
class WebserviceClient(scheme, host, port, service_path, username, password, **kwargs)
Bases: object
Base client for e-series web services.
-
invoke_service(method='GET', url=None, params=None, data=None, headers=None, timeout=None, verify=False)