{"id":27528,"library":"vmware-vapi-runtime","title":"VMware vAPI Runtime","description":"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.","status":"active","version":"9.0.0.0","language":"python","source_language":"en","source_url":"https://github.com/vmware/vcf-sdk-python","tags":["vmware","vapi","vsphere","sdk","cloud-foundation"],"install":[{"cmd":"pip install vmware-vapi-runtime","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"SOAP client dependency","package":"suds","optional":false},{"reason":"Common client classes","package":"vmware-vapi-common-client","optional":false}],"imports":[{"wrong":"from vmware.vapi.client import VapiClient","symbol":"VapiClient","correct":"from vmware.vapi.client import VapiClient"}],"quickstart":{"code":"import os\nfrom vmware.vapi.vsphere.client import create_vsphere_client\nfrom vmware.vapi.security.user_password import create_user_password_security_context\n\n# Authentication\nusername = os.environ.get('VSPHERE_USER', 'administrator@vsphere.local')\npassword = os.environ.get('VSPHERE_PASSWORD', '')\nserver = os.environ.get('VSPHERE_SERVER', 'vcenter.example.com')\n\nsecurity_context = create_user_password_security_context(username, password)\nclient = create_vsphere_client(server=server, username=username, password=password)\n# List VMs\nvm_list = client.vcenter.VM.list()\nprint(vm_list)","lang":"python","description":"Initialize vSphere client, authenticate, and list VMs using vAPI runtime."},"warnings":[{"fix":"Replace 'from vapi...' with 'from vmware.vapi...'","message":"In version 9.0.0.0, the package namespace changed from `vapi` to `vmware.vapi`. All imports must be updated.","severity":"breaking","affected_versions":">=9.0.0.0"},{"fix":"Use `from vmware.vapi.vsphere.client import create_vsphere_client`","message":"The `create_vsphere_client` helper function was added in 9.0.0.0, replacing manual StubConfiguration setup.","severity":"breaking","affected_versions":">=9.0.0.0"},{"fix":"Migrate to REST API calls using requests library.","message":"SOAP-based API calls via `suds` are deprecated and will be removed in future releases.","severity":"deprecated","affected_versions":">=9.0.0.0"}],"env_vars":null,"search_vec":"'2.61.2':23 'api':20 'approxim':32 'autom':16 'cadenc':25 'cloud':18,39 'cloud-found':38 'consum':13 'core':10 'current':21 'foundat':19,40 'infrastructur':11 'librari':7 'provid':8 'quarter':33 'releas':24,31 'runtim':3,6 'sdk':30,37 'tie':27 'vapi':2,5,35 'version':22 'vmware':1,4,14,29,34 'vsphere':15,36","created_at":"2026-05-01T17:46:43.842680+00:00","updated_at":"2026-05-01T17:46:43.842680+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'vmware.vapi.client'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://www.vmware.com/support/developer/vapi.html","github":"https://github.com/vmware/vcf-sdk-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/vmware-vapi-runtime/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}