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.
698 B
698 B
Language / Язык: English | Русский
Go
Uses the Go standard library (net/http) against
https://localhost with a Basic-auth session
(vmware-api-session-id).
cd examples/go
go run .
Override defaults with VSPHERE_BASE, VSPHERE_USER, VSPHERE_PASSWORD,
VSPHERE_VM_NAME. See main.go for the
session → list → create → power → wait-task → delete flow and the
waitTask helper that polls GET /api/cis/tasks/{task}.
TLS verification is disabled in the HTTP client for the local self-signed development gateway certificate only — do not reuse that transport against a real vCenter.