Skip to content

An unofficial python library to make Isilon API calls

License

Notifications You must be signed in to change notification settings

chassing/python-isilon-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-isilon-api

An unofficial python library to make Isilon API calls. This library is incomplete, not fully tested, and not supported by EMC. I only plan to fill in the features as I need them. Use at your own risk.

This is a library I created in order to make a copy tool with the goal of learning the API. That said, it does work in my environment and may be useful to others working with the API.

####Tested with:

  • OneFS 7.2
  • Python 2.7.6
  • HTTP Requests 2.5.3

API Features

  • Automatic Session/Connection management
  • Efficient reuse of HTTP connections
  • Automatic handling of resume tokens
  • Some basic error handling of sessions
  • Namespace

cp.py Features

  • Copies a source directory to a target directory
  • Can utilize file cloning (uses SSH connections)
  • Uses snaps to create a temporary static source
  • Multithreaded
  • Intelligently connects to multiple nodes in the cluster
  • Applies ACLs to target files
  • Can run in verify mode to only compare ACLS

Example: ./cp.py -c -i kcisilon -u root -p a /ifs/data/test /ifs/data/clones/test1

 ./cp.py --help  
 usage: cp.py [-h] -i URL -u USERNAME -p PASSWORD [-t THREADCOUNT] [-c] [-v]  
            src dst  
 
 Create a copy of a directory 
  
 positional arguments:  
   src             source directory, full path starting with /ifs  
   dst             destination directory, full path starting with /ifs  
 
 optional arguments:  
   -h, --help      show this help message and exit  
   -i URL          IP or DNS name of the cluster  
   -u USERNAME     API Username  
   -p PASSWORD     API Password  
   -t THREADCOUNT  Thread Count, default=16  
   -c              Use sparse cloning technology  
   -v              Verify ACLS only, do not copy or clone  

About

An unofficial python library to make Isilon API calls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%