LAA REST APIī
LAA v1.4
The REST API is only available in LAA v1.4 and after.
The appliance provide a REST API to access to most of the features.
Specificationsī
The OpenAPI specifications are provided by each LAA at API doc.
The LAA API allows to query the software configuration of the LAA and also to remotely execute laacli commands on behalf of the caller.
sequenceDiagram laam->LAA: HTTP call on /api/v1/... Note right of LAA: Updating LAA SW state LAA-->laam: json laam->LAA: HTTP POST on /api/v1/laacli/... LAA->laacli: Local execution Note right of laacli: Updating LAA HW state<br>Calling laacli laacli-->LAA: Return value and outputs LAA-->laam: json
laam, LAA and laacliī
Authenticationī
In order to use the REST API, the user should create an API token in the appliance web interface.
Visit the profile page and click on the Add token
button.
The appliance will create a token and refresh the page. The token can be retrieved by clicking on View token
.
This token will be used by laam to interact with the REST API.