You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

SDEWAN is implemented as CNF based on OpenWRT and it will export Restful API interface to support configuration of MWAN3, Firewall, IpSec.


SDEWAN Service

SDEWAN service restful API provides the capability to list available SDEWAN services, get service status and execute service operation.

Common Error code:

CodeDescription
400Bad request
401unauthorized -the security token is not provides or expired.

GET /cgi-bin/luci/sdewan/v1/services

Lists all available sdewan services supported by SDEWAN CNF

Request: N/A

Response

  • Normal response codes: 200
  • Response Parameters

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

    NameInTypeDescription
    servicespathstringservice name, valid value are "mwan3", "firewall", "ipsec"

Response

  • Normal response code: 200
  • Response Parameters

    NameInTypeDescription
    statusbodystringservice status 
  • Response Example

    {
        "status": "running"
    }

POST /cgi-bin/luci/sdewan/v1/service/{service}

  • No labels