openapi on 6.2 fails to get clients
Dear Support,
I'm using client credentials grant login which works fine.
write-host '#devices'
$reqDevices = Invoke-RestMethod -SkipCertificateCheck -SkipHeaderValidation -Uri "$OMADA_URL/openapi/v1/$omadaCid/sites/$SITE_ID/devices?page=1&pageSize=100" -Method Get -Headers $RequestHeaders #-WebSession $OmadaSession
#devices
$reqDevices.result.data | ft
this works perfectly
BUT:
write-host '#clients'
$reqClients = Invoke-RestMethod -SkipCertificateCheck -SkipHeaderValidation -Uri "$OMADA_URL/openapi/v2/$omadaCid/sites/$SITE_ID/clients?page=1&pageSize=100" -Method Get -Headers $RequestHeaders #-WebSession $OmadaSession
#clients
$reqClients.result.data | select name,mac | write-host
gives an error:
Invoke-RestMethod: /Volumes/Media/python/omada/omada-openapi.ps1:89:15
Line |
89 | … eqClients = Invoke-RestMethod -SkipCertificateCheck -SkipHeaderValida …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| { "timestamp": 1776723123082, "status": 405, "error": "Method Not Allowed", "path": "/openapi/v2/38ce6a8f70770e7cfac68966....../sites/69e0a50642803......./clients" } (I shortened the omada id and site id)
with this I can no longer retrieve any clients. This was the case though all beta/early releases of 6.2 SW controller.
btw: this also applies for. /api/v2 using "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites/${SITE_ID}/clients?currentPage=1¤tPageSize=100" also general error



