Developer

last person joined: 7 days ago 

Expand all | Collapse all

Where is the REST documentation for the AOS-Switch?

This thread has been viewed 1 times
  • 1.  Where is the REST documentation for the AOS-Switch?

    EMPLOYEE
    Posted Aug 16, 2018 10:17 AM

    Hello, you can find the AOS-Switch REST Schema for every device with REST capability in the Download Software section in the HPE My Networking Portal.  For example, the latest version of the REST Schema for the “2930M 48G with 1 slot switch” can be found here:  https://h10145.www1.hpe.com/downloads/SoftwareReleases.aspx?ProductNumber=JL321A&lang=en&cc=uk&prodSeriesId=5272502

     

    MyNetworkingPortal.PNG

     Note that depending on which version of firmware you are running, you’ll need to choose the schema that applies to your version, since there are updates and changes that are version specific.

    When you download the zip file and unzip it, you’ll notice that there is a folder structure with many different json files in it.  The quickest way to find the schema is searching the unzipped folder for .html files.  You should find 2 different server.html files:  one located in the device-rest-api/services/wired folder and the other in the device-rest-api/services/common folder.Schema.PNG

     If you open up the one in the wired folder in an internet browser, you now should see a long webpage listing the different REST calls you can make.  They are organized by the REST resource, and details which Methods you can call on that URI, examples for the payloads for requests as well as the responses from each REST Method call, as well as a description for what each method does.  If you do not find what you need in this server.html, please check the one in the common folder.  This should get you started in understanding the many things you can view and change with REST in the AOS-Switch device!



  • 2.  RE: Where is the REST documentation for the AOS-Switch?

    EMPLOYEE
    Posted Aug 17, 2018 11:54 AM

    switchversion-restversion.png