Skip to content

Instantly share code, notes, and snippets.

View Naman1997's full-sized avatar
🎧
Focusing

Naman Arora Naman1997

🎧
Focusing
View GitHub Profile
@mbentley
mbentley / omada_api.ps1
Last active June 21, 2024 21:35
Example API Calls Using Powershell and Bash/curl for Omada Controller (last validated on 5.12.7)
### PowerShell Example
# set variables
$OMADA_URL = "https://omada.example.com:8043"
$USERNAME = "admin"
$PASSWORD = "test12345"
# get controller id from the API
$CONTROLLER_ID = (Invoke-RestMethod -Uri "${OMADA_URL}/api/info" -Method Get -UseBasicParsing).result.omadacId
# set the login request body as json