10000 GitHub - swevm/scaleio_sdk: ScaleIO API integration written in Python
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

swevm/scaleio_sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonScale

A module for interacting with the EMC ScaleIO 1.3+ REST API.

Authors: Magnus Nilsson & Matt Cowger

Requirements:

Examples of use:

from scaleio import ScaleIO
sio = ScaleIO("http://192.168.50.12/api","admin","Scaleio123",verify_ssl=False)

#print all the known SDCs:
pprint(sio.sdc)

#print all the known SDSs:
pprint(sio.sds)

#print all the known Volumes:
pprint(sio.volumes)

#print all the known Protection Domains:
pprint(sio.protection_domains)

#Create a new Volume
sio.create_volume_by_pd_name('testvol001', 8192, sio.get_pd_by_name('default'))

#Map Volume to SDC (get_sdc_by_ip('ipaddr') can be used also to map against an SDC)
sio.map_volume_to_sdc(sio.get_volume_by_name('testvol'), sio.get_sdc_by_id('ce4d7e2a00000001'), False)

#Unmap Volume from SDC
sio.unmap_volume_from_sdc(sio.get_volume_by_name('testvol'), sio.get_sdc_by_id('ce4d7e2a00000001'))

#Delete Volume
sio.delete_volume(sio.get_volume_by_name('testvol'), 'ONLY_ME')


About

ScaleIO API integration written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0