From PowerCLI to API – Taking Your Automation Skills to...
summary
Shows that switching from PowerCLI object wrappers to raw API calls cuts overhead and reveals more properties and methods: concrete timing examples 1.89s vs 1.25s and snapshot queries 2.35s vs <1s, measured 30–80% savings at scale. Uses PowerCLI Get-VM/Get-View, Invoke-RestMethod with vCenter REST, VS Code, Postman and curl2ps, demonstrates building a session token and created VM via REST API that boots successfully. Also explains JSON payloads, enumerations, and where to find managed object IDs.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 3:28Automation beyond PowerShell
- 10:09Planning automation
- 18:52PowerCLI vs API performance
- 24:07Modular code and API
- 30:49REST API basics
- 36:45vCenter REST API auth
- 42:21Create VM via API
- 50:24Summary
related talks
42mPowerCLI: How to Automate Your VMWare Environment Reports
46mPractical PowerShell Integration from Bare Metal to the Cloud
22mData Mining vSphere with PowerCLI
25mCreating Automation with APIs and PowerShell
48mGoing Core with VMware PowerCLI!
34mWhip Your Scripts into Shape: Optimizing PowerShell for Speed
51mPowerShell Techniques and Performance Tweaks - Full Throttle
40mA Practical Guide to Streamlined Data Management and...
