From API to usable PowerShell module
summary
A PowerShell module that wraps the Octopus Deploy REST API, built by calling invoke-restmethod and consolidating common work into invoke-octopus-method, handles paging (tasks returned 104 items at 30/page), authenticates via X-Octopus-ApiKey from credential XML or environment variables, and exposes PS type names and formatting plus parameter completers so objects show methods (machines, releases) and tab completion. Emphasis is on a small core set of CRUD commands, tolerant JSON updates, and growing functionality organically rather than full API coverage.
AI-written summary · about
chapters (25)
- 0:00Introduction
- 1:47Agenda
- 2:12API Basics
- 4:04Selfcontained requests
- 6:04Authentication
- 7:39Terraform
- 8:39Curl
- 9:48Links
- 10:48API vs User Command
- 13:10The Gap
- 13:27Pareto Principle
- 16:23Case Study
- 17:05Octopus Deploy
- 17:34Octopus Job
- 19:10Project Reports
- 22:16Demo
- 22:31Azure Machine
- 22:51Import module
- 33:46Get Octopus
- 36:16Get Project
- 38:38Types Formats
- 42:31Parameter completers
- 43:09Updating and completing
- 46:26Browser Dev Tools
- 47:36Quick Summary
related talks
48mAPIs are for Automata, PowerShell is for People
47mLeveraging Web Services with PowerShell
47mPowerShell + AutoRest + Swagger = Instant Modules
01h 33mA hands-on lab working
44mPowerShell and MS Graph API Advanced, from Zero to Hero
01h 45mWriting Award Winning PowerShell Functions and Script Modules
46mFrom Script to Tool: Building Robust, Meaningful Tools with PowerShell
55mMastering the Microsoft Graph PowerShell
