Files
vmware-api-simulator/docs/examples/perl.md
T
inecs f8d3cbdd59 Initial commit: VMware vSphere API simulator scaffold.
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.
2026-07-18 04:42:11 +03:00

699 B

Language / Язык: English | Русский

Perl

HTTP::Tiny + JSON cookbook using a Basic-auth session (vmware-api-session-id) against https://localhost.

cd examples/perl
cpanm --installdeps .   # or install HTTP::Tiny, JSON, IO::Socket::SSL manually
perl cookbook.pl

Override defaults with VSPHERE_BASE, VSPHERE_USER, VSPHERE_PASSWORD, VSPHERE_VM_NAME environment variables. See cookbook.pl for the session → list → create → power → wait-task → delete flow.

HTTP::Tiny is constructed with verify_SSL => 0 for the local self-signed development gateway certificate only.