Hi Airheads,
I am struggling with the REST API on an Aruba Instant AP 505 running version 8.13.1.1 LSR.
Goal: I am trying to automate bandwidth throttling by updating wlan ssid-profile or user-role settings via the REST API using Python (Requests).
The Problem: I can successfully log in and obtain a sid. I can also perform GET requests to see the configuration. However, every attempt to POST a configuration change results in a Status 200 but with an internal error message: "message": "Invalid API /rest/config/v1/...".
What iv have tried:
-
Endpoint verification: Iv have tried several paths based on the 8.x documentation:
-
Parameters: Iv discovered that the AP requires iap_ip_addr in the query parameters. Without it, i get "Missing parameter". With it, i get "Invalid API".
-
Payload Formats: I have tried both nested JSON objects and flat CLI-style JSON objects.
-
Permissions: The user is a standard admin with full access to the WebUI and CLI. allow-rest-api is enabled in the configuration.
Sample Request: POST https://<IAP-IP>:4343/rest/config/v1/wlan_ssid_profile/Labtest?sid=<sid>&iap_ip_addr=<IAP-IP> Response:
<response-element class="" ng-version="0.0.0-PLACEHOLDER"></response-element>
<response-element class="" ng-version="0.0.0-PLACEHOLDER"></response-element>
Documentation used:
Questions:
-
Is the Object API (/v1/obj) supported for writing in 8.13 LSR, or is it Read-Only?
-
What is the correct endpoint for sending CLI-style configuration changes in this specific version?
-
Are there any specific mgmt-user requirements beyond the standard admin role for REST POST operations?
- Is there a https://Device_IP/api/#/ page like on the ArubaCX , for ArubaOS also?
Any help or working examples for IAP 8.13 would be greatly appreciated!
------------------------------
All the best, have a splendid day
Th3Plug aka. JS
------------------------------