...
Code | Description |
---|---|
400 | Bad request |
401 | unauthorized -the security token is not provides or expired. |
404 | resource not found |
Error Response:
Name | In | Type | Description |
---|---|---|---|
message | body | string | error message |
...
- Normal response code: 200
Response Parameters
Name In Type Description status body string service status Response Example
{
"status": "running"
}
POST PUT /cgi-bin/luci/sdewan/v1/service/{service}/
...
SD-EWAN MWAN3 API provides support to get/create/update/delete MWAN3 Rule, Policy.
GET /cgi-bin/luci/sdewan/mwan3/v1/policys
Lists all defined policys
Request: N/A
Response
- Normal response codes: 200
Response Parameters
Name In Type Description policys body array a list of defined policys - Response Example
{
"policys": [{
"name":"balanced",
"members": [
{
"interface": "net1",
"metric" 1,
"weight": 2
}
{
"interface": "net2",
"metric" 1,
"weight": 1
}
]
}
]
}
GET /cgi-bin/luci/sdewan/mwan3/v1/policy/{policy}
Get a policy
Request: N/A
Request Parameters
Name In Type Description policy path string policy name
Response
- Normal response codes: 200
- Error response code: 404
Response Parameters
Name In Type Description name body string policy name members body array policy members interface body string member interface name metric body int default: 1, members within one policy with a lower metric have precedence over higher metric members weight body int default: 1, members with same metric will distribute load based on this weight value - Response Example
{
"name":"balanced",
"members": [
{
"interface": "net1",
"metric" 1,
"weight": 2
}
{
"interface": "net2",
"metric" 1,
"weight": 1
}
]
}
Firewall
SD-EWAN Firewall API provides support to get/create/update/delete Firewall Rule (include Firewall, SNAT, DNAT etc.).