This release is a pre-release and may not be stable for production use.
vmwvro
A simple api library to interface with VMware vRealize Orchestrator (vRO).
Features
What you can do with vmwvro:
get workflow information
start a workflow
monitor a workflow run
Dependencies
Python 3.x
Installation
vmwvro is available on the Python Package Index
$ pip install vmwvro
Usage
Create a Session object. Session object contains the Url and authentication information for the VMware vRealize Orchestrator appliance.
from vmwvro import Session
vro_url = 'https://some_vro_server:8281'
vro_usr = 'some_user'
vro_pwd = 'some_password'
session = Session(url=vro_url, username=vro_usr, password=vro_pwd)
Create a Client object and pass in the session object. Client object exposes methods to interact with VMware vRealize Orchestrator.
from vmwvro import Client
client = Client(session)
Start a workflow - without any parameters.
wf = client.get_workflow(workflow_id)
wf_run = wf.start()
print("Workflow state: %s" % wf_run.state)
Start a workflow - with parameters.
from vmwvro.workflows import WorkflowParameters
param = WorkflowParameters()
param.add(name="vmname", value="some_vm_name", _type="VC:VirtualMachine")
param.add(name="user", "some_user")
wf_run = wf.start(param)
print("Workflow state: %s" % wf_run.state)
Wait for a workflow to complete.
wf_run.wait_until_complete()
print("Workflow completed with state: %s" % wf_run.state)
Metadata
Release files for vmwvro 1.0.1b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| vmwvro-1.0.1b1.tar.gz | 8.2 kB | Without provenance | Details |
Release files / vmwvro-1.0.1b1.tar.gz
| Download URL | vmwvro-1.0.1b1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9d8a75390458e273d0ebc9f93b8c25d804ec9adf29b7875ee6e2ce7483c28e5
|
|
BLAKE2b-256 checksum How to use checksums |
3f10fd2a3cb09acfd13c4ee7860829c059d377272f105cac8fce3ab1e0e8af82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for vmwvro 1.0.1b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.