Skip to main content

Actifio Python Client Library

This is a python package to handle Actifio RestAPI. Package wraps around the Rest API to facilitate for UDS and SARG functions. Package also provides functionality for higher functions.

Install

To install, we always recomend to use pip.

pip install Actifio

Documentation

You can find the documentation here.

Current Implemented Methods

Actifio.run_uds_command(cmdType, cmdUDS, cmdArgs)

Run UDS command, for udsinfo and udstask commands.

CmdType : Command Type takes either info or task as options (string)

cmdUDS : UDS command, as you would use in the CLI.

cmdArgs : Arguments for the UDS command. This option takes arguments as a dictionary. For example:

           vmdiscovery -discovercluster -host 1234 
           { 'discovercluster': None, 'host': "1234" }

           lsapplication -filtervalues "appname=mydb&hostname=myhost"
           { 'filtervalues': { 'appname': 'mydb', 'hostname': 'myhost' } }

           lshost 123
           { 'argument': "123" }

           RESTfulAPI_*.pdf would be good referecne point for the __SIMILARITY__ and 
           __PATTERN__.

Return

This method will return the output of the command in dictionary.

cmdSARG : SARG Command

Example:

try: 
  udsout = act.run_uds_command('info','lshost', { "filtervalue": { "hostname": "orademodb"} })
except Exception as e:
  print(e)
else:
  print(udsout['result'][0]['id'])

Actifio.run_sarg_command()

Run report commands for SARG.

How to use?

from Actifio import Actifio


act = Actifio('MyActifioAppliance','admin','password','xxxx-xxxx-xxxx-xxxx')

try:
  sargout = act.run_sarg_command('reportapps', { 'a': 'mydb'})
except Exception as e:
  print (e)
else:
  print(sargout) 

try: 
  udsout = act.run_uds_command('info','lshost', { "filtervalue": { "hostname": "orademodb"} })
except Exception as e:
  print(e)
else:
  print(udsout['result'][0]['id'])

License

Copyright 2018 <Kosala Atapattu kosala.atapattu@actifio.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Actifio-0.9.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Actifio-0.9.0-py2-none-any.whl (15.7 kB view details)

Uploaded Python 2

File details

Details for the file Actifio-0.9.0.tar.gz.

File metadata

  • Download URL: Actifio-0.9.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for Actifio-0.9.0.tar.gz
Algorithm Hash digest
SHA256 791fd0b448e2030f6bb97bc4cb1c1151952daf555301bf0ef05236013d141195
MD5 f8c716bb8bb49b7385cc32ab9eea21ba
BLAKE2b-256 3fc1b8d8f0b38023b5657c43526b0ce38bfc4dc4da3bd24f23627ef73c9307df

See more details on using hashes here.

File details

Details for the file Actifio-0.9.0-py2-none-any.whl.

File metadata

  • Download URL: Actifio-0.9.0-py2-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for Actifio-0.9.0-py2-none-any.whl
Algorithm Hash digest
SHA256 c303ebe3b2bdf05eaac8985876155e8ff8adc32aa811e89ed7754160805a5760
MD5 2c25043f1fafd63a83337b9afafd2b2c
BLAKE2b-256 f920ac1814970ffcea9afa02b881ea3ca93c33e80928492eeaa7f42223b1dc3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page