f8d3cbdd59
Add the FastAPI app, PostgreSQL migrations, Docker/Helm packaging, API contracts, docs, client examples, and the unit/integration/compatibility test suite for local client and tooling labs without a real vCenter.
Language / Язык: English | Русский
Runnable client cookbooks
Companion code for docs/clients.md and docs/examples/.
Prerequisites
make up
VSPHERE_PROFILE=demo-cluster make seed # or small / large
Default lab credentials: administrator@vsphere.local / VMware1!.
Native vSphere smokes
python examples/python/vsphere_rest_smoke.py https://localhost
python examples/python/vsphere_soap_smoke.py https://localhost
python examples/python/vsphere_lifecycle.py # REST create/power/guest FS + SOAP CreateVM
python examples/python/requests_cookbook.py # raw requests, no SDK
ansible-playbook -i examples/ansible/inventory.ini examples/ansible/vsphere_playbook.yml
cd examples/terraform/vsphere && terraform init && terraform apply
cd examples/pulumi && pulumi up
cd examples/go && go run .
cd examples/java && javac Cookbook.java && java Cookbook
cd examples/perl && cpanm --installdeps . && perl cookbook.pl
make vsphere-surface
Layout
| Path | Stack |
|---|---|
python/vsphere_*.py |
Native REST + SOAP smokes / lifecycle |
python/requests_cookbook.py |
Raw requests REST cookbook (session, create/power/delete) |
ansible/vsphere_playbook.yml |
Ansible REST lifecycle |
terraform/vsphere/ |
Terraform hashicorp/vsphere (SOAP-backed provider) |
pulumi/ |
Pulumi REST ComponentResource |
go/, java/, perl/ |
Minimal REST cookbooks in other languages (stdlib HTTP clients, Basic-auth session) |
An independent pulumi-vsphere lab suite lives under
pulumi-tests/ — run make pulumi-tests from the
repo root (or make test-pulumi inside that directory).
Guides: docs/examples/. Coverage matrix: docs/api-coverage.md.