Developer

 View Only
  • 1.  IAP 505 (AOS 8.13.1.1 LSR) REST API - "Invalid API" error on POST/Config attempts

    Posted 12 days ago

    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:

    1. Endpoint verification: Iv have tried several paths based on the 8.x documentation:

      • /rest/config/v1/wlan_ssid_profile

      • /rest/config/all

      • /rest/config/v1/all

    2. 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".

    3. Payload Formats: I have tried both nested JSON objects and flat CLI-style JSON objects.

    4. 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>

    JSON
    {
        "Status-code": 2,
        "message": "Invalid API /rest/config/v1/wlan_ssid_profile/Labtest"
    }
    

    <response-element class="" ng-version="0.0.0-PLACEHOLDER"></response-element>

    Documentation used:

    • Aruba Instant 8.x API Guide

    • The built-in Swagger/JSON dictionary for AOS-S/AOS-CX (though I realize IAP is different).

    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
    ------------------------------


  • 2.  RE: IAP 505 (AOS 8.13.1.1 LSR) REST API - "Invalid API" error on POST/Config attempts

    Posted 12 days ago

    Hi Th3Plug,

    the IAP API Rest is very limited... you can look => https://arubanetworking.hpe.com/techdocs/Aruba-Instant-8.x-Books/812/Aruba-Instant-8.12.0.0-REST-API-Guide.pdf

    i think you are using the wrong doc

    you need to POST on /rest/ssid (you can't PATCH or PUT...)



    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------