Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...

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