-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Omada Open API Support #81
Comments
When migrating to using the official API integration, we should document which versions of the exporter are supported. (e.g exporter v0.11.0 needs controller version v5.12+) |
This would be nice to have. I tried making a client with the OpenAPI schema (http://omada/v3/api-docs/All) using openapi-generator and the results are a bit mixed. It's possible to autogenerate a Go client, but there are some issues:
For 1 and 2 there are relatively straightforward workarounds, but 3 might be the biggest problem. Making one request every 15 seconds already means 5760 requests per day. Maybe I missed a setting to increase or remove this limit, but otherwise you'd need to create multiple "applications" to bypass the limit. And yes the API call limit is enforced unfortunately: {"errorCode":-7132,"msg":"Our server is receiving too many requests now. Please try again later."} |
There's some talk around the limits here https://community.tp-link.com/en/business/forum/topic/623376?replyId=1256526
|
So, I also attempted to generate from the Open API schema and a lot of the spec was wrong/invalid. I pulled the JSON down and fixed all the errors, it still doesn't solve the API request limit but it at least generates a Go package |
Discussed in #80
Originally posted by codersaur September 22, 2023
I see in v5.12 on the Omada Controller Open API is now supported.
Open API: Omada Controller now supports Open API integration. You can access it through Global view > Settings > Platform Integration, which allows you to utilize the REST API of most Controller services. This feature enables you to develop custom applications, embed APIs, or combine your own applications.
Is this relevant for omada_exporter, and if so, is there a plan to migrate to using it?
The text was updated successfully, but these errors were encountered: