Registry / http-networking / vmware-vapi-runtime

vmware-vapi-runtime

JSON →
library9.0.0.0pypypiunverified

VMware vAPI Runtime library provides the core infrastructure for consuming VMware vSphere Automation and Cloud Foundation APIs. Current version 2.61.2. Release cadence is tied to VMware SDK releases, approximately quarterly.

pip install vmware-vapi-runtime
INSTALL
IMPORT
SIG · VMWARE-VAPI-RUNTIM
V
vmware-vapi-runtime
http-networkingpythonv9.0.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VapiClient
from vmware.vapi.client import VapiClient
from vmware.vapi.client import VapiClient

Initialize vSphere client, authenticate, and list VMs using vAPI runtime.

import os from vmware.vapi.vsphere.client import create_vsphere_client from vmware.vapi.security.user_password import create_user_password_security_context # Authentication username = os.environ.get('VSPHERE_USER', 'administrator@vsphere.local') password = os.environ.get('VSPHERE_PASSWORD', '') server = os.environ.get('VSPHERE_SERVER', 'vcenter.example.com') security_context = create_user_password_security_context(username, password) client = create_vsphere_client(server=server, username=username, password=password) # List VMs vm_list = client.vcenter.VM.list() print(vm_list)
Debug
Known issues
breakingIn version 9.0.0.0, the package namespace changed from `vapi` to `vmware.vapi`. All imports must be updated.
fix
Replace 'from vapi...' with 'from vmware.vapi...'
affects: >=9.0.0.0
breakingThe `create_vsphere_client` helper function was added in 9.0.0.0, replacing manual StubConfiguration setup.
fix
Use `from vmware.vapi.vsphere.client import create_vsphere_client`
affects: >=9.0.0.0
deprecatedSOAP-based API calls via `suds` are deprecated and will be removed in future releases.
fix
Migrate to REST API calls using requests library.
affects: >=9.0.0.0
Upgrade
Version history
9.0.0.0latest on PyPI
Audit
Dependencies
sudsrequiredSOAP client dependency
vmware-vapi-common-clientrequiredCommon client classes
Agent activity
28 hits · last 30 days
node
24
OpenAI (training)
1
Resources
vmware-vapi-runtime — pip install vmware-vapi-runtime · libregistry