Versions Compared

Key

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

...

NameInTypeDescription
messagebodystringerror message

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

Lists all available sdewan services supported by SDEWAN CNF

Request: N/A

Response

...

Response Parameters

...


...

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

...

  • Request Parameters

    NameInTypeDescription
    servicepathstringservice name, valid value are "mwan3", "firewall", "ipsec"
    actionbodystringaction to be executed. valid value are "start", "stop", "restart", "reload"


  • Response Example

    {
        "action": "start"
    }


Response

  • Normal response code: 200
  • Error response code: 400 (e.g. invalid action)
  • Response Parameters

    NameInTypeDescription
    resultbodystringoperation execution result 


  • Response Example

    {
        "actionresult": "startsuccess"
    }


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

Lists all available sdewan services supported by SDEWAN CNF

Request: N/A

Response

  • Normal response codecodes: 200Error response code: 400 (e.g. invalid action)
  • Response Parameters

    NameInTypeDescription
    result
    servicesbody
    stringoperation execution result 
    arraya list of supported service


  • Response Example


    {
        "
    result
    services":
    "success"
    ["mwan3", "firewall", "ipsec"]
    }


MWAN3

OpenWRT MWAN3 configuration includes below sections:

...