Turbonomic Plan Engine
Project description
vmt-plan: Turbonomic API plan engine
vmt-plan is a companion library to vmt-connect for working with the Turbonomic API. The core purpose of the library is to provide interfaces for constructing and running plans within Turbonomic.
Installation
pip install vmtplan
Usage
# Basic Plan - Note the import is vmtplanner <!>
import vmtconnect as vc
import vmtplanner as vp
vmt = vc.Session(host='localhost', username='bob', password='*****')
# scoping to two groups by UUID
scope = ['430e28cbaabf35522a180859d4160562d123ac78',
'e48fd3270917221d3e6290e1affead34b872e95b']
scenario = vp.PlanSpec('custom scenario', scope=scope)
# add 5 copies of a VM immediately using positional arguments
scenario.change_entity(vp.EntityAction.ADD, ['1341c28a-c9b7-46a5-ab25-321260482a91'], [0], 5)
# add 1 copy each month for 2 months using named arguments
scenario.change_entity(action=vp.EntityAction.ADD,
targets=['1341c28a-c9b7-46a5-ab25-321260482a91'],
count=1,
projection=[30, 60])
plan = vp.Plan(vmt, scenario)
plan.run()
Documentation
The user guide is a good place to start. Detailed documentation is also available here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vmtplan-2.3.0.tar.gz
(25.1 kB
view details)
Built Distribution
vmtplan-2.3.0-py3-none-any.whl
(60.4 kB
view details)
File details
Details for the file vmtplan-2.3.0.tar.gz
.
File metadata
- Download URL: vmtplan-2.3.0.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29d42e96cc1a9f1e08b79388a14db012b8dc3a4b60b18e7fc4fc130023597c53 |
|
MD5 | 81ae49e34542f928988efba7d14b61ce |
|
BLAKE2b-256 | 3d6e2173036cdadfd2fb545236c8a91f316a4b10f4aa3da1796a31d47c5d6d0a |
File details
Details for the file vmtplan-2.3.0-py3-none-any.whl
.
File metadata
- Download URL: vmtplan-2.3.0-py3-none-any.whl
- Upload date:
- Size: 60.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13be5045cfd7f81966b171f34eac97f363dbab7a5dbdcc6c0f83669c7845715f |
|
MD5 | ee54d0e0c5a3e44313ad428008a89208 |
|
BLAKE2b-256 | 21df47a89bdc7607740b8c08c376705d3b02e32948a791aa9b7ae8f3305d6d24 |