Skip to main content

actifio-python-package

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

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?

You can install using PyPi:

pip install Actifio
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.1.3.tar.gz (5.3 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.1.3-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: Actifio-0.1.3.tar.gz
  • Upload date:
  • Size: 5.3 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.1.3.tar.gz
Algorithm Hash digest
SHA256 91f46577496a03e594cf5f0766ec95bf5324919a0006a6c9b3d0f1d00a89b8d9
MD5 6330d3d491dc7cd3375627d1669bbc9f
BLAKE2b-256 8f801236574a9ff9061505e41812a569d45963d6e0c885b06804e544c43d65a7

See more details on using hashes here.

File details

Details for the file Actifio-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: Actifio-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 2, Python 3
  • 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.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bca6b3512e95bccacfd1e2a48a0e70a0a2c935fcccd00089260975e0c4509a00
MD5 4f9808b4de5515d3d7c4b364f43f0337
BLAKE2b-256 caaf7f747b96d798405fa20f9acd3fc9106b8c6227bb5abc6b33645d533aead6

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