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.
699 B
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.