SoftLayer.iscsi

ISCSI Manager/helpers

class SoftLayer.managers.iscsi.ISCSIManager(client)[source]

Manages iSCSI storages

cancel_iscsi(volume_id, reason='unNeeded', immediate=False)[source]

Cancels the given iSCSI volume

Parameters:volume_id (integer) – the volume ID
create_iscsi(size=None, location=None)[source]

Places an order for iSCSI volume :param integer size: size of iSCSI volume to create :param string location: datacenter to use to create volume in

create_snapshot(volume_id, notes='No longer needed')[source]

Orders a snapshot for given volume

Parameters:volume_id (integer) – the volume ID
create_snapshot_space(volume_id, capacity)[source]

Orders a snapshot space for given volume

Parameters:
  • volume_id (integer) – the volume ID
  • capacity (integer) – capacity in ~GB
delete_snapshot(snapshot_id)[source]

Deletes the given snapshot

Params:integer snapshot_id: the snapshot ID
get_iscsi(volume_id, **kwargs)[source]

Get details about a iSCSI storage

Parameters:volume_id (integer) – the volume ID
Returns:A dictionary containing a large amount of information about the specified storage.
list_iscsi()[source]

List iSCSI volume

resolve_ids(identifier)

Takes a string and tries to resolve to a list of matching ids.

What exactly ‘identifier’ can be depends on the resolvers

Parameters:identifier (string) – identifying string
Returns list:
restore_from_snapshot(volume_id, snapshot_id)[source]

Restore the volume to snapshot’s contents :params: imteger volume_id: the volume ID :params: integer snapshot_id: the snapshot ID