Skip to content

Instantly share code, notes, and snippets.

View FurbyX92's full-sized avatar

Daniel FurbyX92

View GitHub Profile
@mbentley
mbentley / omada_api.ps1
Last active June 10, 2024 15:26
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