...
SDEWAN service restful API provides the capability to list available SDEWAN services, get service status and execute service operation.
Common Error code:
Code | Description |
---|---|
400 | Bad request |
401 | unauthorized -the security token is not provides or expired. |
GET /cgi-bin/luci/sdewan/v1/services
...
- Normal response codes: 200
Response Parameters
Name In Type Description services body array a list of supported service - Response Example
{
"services": ["mwan3", "firewall", "ipsec"]
}
GET /cgi-bin/luci/sdewan/v1/service/{service}
Get a service's status
Request:
Request Parameters
Name In Type Description services path string service name, valid value are "mwan3", "firewall", "ipsec"
Response
- Normal response code: 200
Response Parameters
Name In Type Description status body string service status Response Example
{
"status": "running"
}
POST /cgi-bin/luci/sdewan/v1/service/{service}