Skip to content

Wired Network ​

100 operations. Call any of them with omada_call_operation (or, in full tool mode, as a tool named by its operationId).

OperationMethodSummary
speedTestPOSTSpeedTest (deprecated)
getIpptInternetGETGet internet info by mac
modifyIpptLteWanPortConfigPUTModify internet lte port config for ippt
modifyIpptWanModePATCHModify internet wan mode
getInternetGETGet internet info
getBandScanResultGETGet band scan result.
getInternetBasicPortInfo_1GETGet internet basic info
modifyInternetBasicPortInfo_1PUTModify the internet basic configuration
modifyGatewayModelPOSTModify gateway mode for pre-configuration
getIspScanResultGETGet Isp scan result
getInternetLoadBalance_1GETGet internet load balance config
modifyInternetLoadBalance_1PUTModify internet load balance config
getLoadBalanceWeightStatusGETCheck Wan Loadbalance status
getLocationAndIspInfoGETGet location and ISP info
getLteWanPortsConfigGETGet internet lte wan ports config
modifyLteWanPortConfigPUTModify internet lte port config
getSupportInfoGETGet supported gateway model list for pre-configuration
getWanPortsConfigGETGet internet ports config
modifyWanPortsConfigPUTModify internet ports config
getLanNetworkListGETGet LAN network list (deprecated)
createLanNetworkPOSTCreate LAN network (deprecated)
deleteLanNetworkDELETEDelete LAN network
getLanNetworkGETGet LAN network
modifyLanNetworkPATCHModify LAN network (deprecated)
getAllLanNetworksGETGet all networks for the omada id and site id
getUseNativeNetworkOswPOSTQuery switches that used the Native Network's profile (deprecated)
getUseNativeNetworkOswV2POSTQuery switches that used the Native Network's profile V2
getInterfaceLanNetworkGETGet all "single"/"multi" interface lan network (deprecated)
getLanProfileListGETGet LAN profile list
createLanProfilePOSTCreate new LAN profile
deleteLanProfileDELETEDelete an existing LAN profile
modifyLanProfilePATCHModify a LAN profile
getUseLanProfileESGETQuery Agile Series switches that used the profile
getOswPortLanNetInfoGETGet switch port profile info
createVlans_1POSTBatch create vlans
networkMappingPATCHNetwork mapping
getAutoEffectDevicesWhenModifyPOSTGet auto effect devices when modifying network
getAutoSelectDevicesWhenModifyPOSTGet auto select devices when modifying network
getDeliveringProcessWithoutConfigGETGet network delivering process
checkParamAndGetPreConfigWhenModifyPOSTCheck all parameters and generate configuration when modifying the network
confirmModifyVlanNetworkPUTConfirm modify lan network
getSelectDevicePortsInfoWhenModifyPOSTGet the port information of the selected devices when modifying the network
getDhcpServerInfoForNetworkGETGet the address pool of the DHCP server under the network and the number of available IPs
getDhcpServerDevCapForNetworkGETGet the capabilities of the DHCP server under the network
checkNetworkParamWhenModifyPOSTCheck basic parameters when modifying the network
checkPortBindingParamWhenModifyPOSTCheck port binding when modifying network
getDeliveringProcessGETGet network delivering process and config
getSelectStackPortsInfoWhenModifyPOSTGet the port information of the selected stacks when modifying the network
getVlanNetworkDevicePortSupportVlanInfoGETGet device port info on whether support current vlan
getVlanNetworkAffectedDevice_1GETGet devices list that use the network
getGridVlanNetworkAffectedDevicePortsGETGet the ports of devices that use the network
getVlanNetworkAffectedSsid_1GETGet grid ssid list that use the vlan
getAutoEffectDevicesWhenCreatePOSTGet auto effect devices when creating network
checkParamAndGetPreConfigPOSTCheck all parameters and generate configuration when creating network
getGridAllClients_1GETGet client list
confirmCreateVlanNetworkPOSTConfirm create lan network
getDevicePortSupportVlansInfoPOSTGet device port info on whether support any of current vlans
getGridSupportVlanNetworkDevicesBySiteGETGet devices list that can be dhcp server
getSelectDevicePortsInfoPOSTGet the port information of the selected devices when creating network
checkNetworkParamWhenCreatePOSTCheck basic parameters when creating network
checkPortBindingParamWhenCreatePOSTCheck selected ports when creating network
getNetworksWithServersForReservationGETGet all networks that can reserve IP addresses and their corresponding servers
getSelectStackPortsInfoPOSTGet the port information of the selected stacks when creating network
getOswForGivenLanNetworkIdsPOSTGet LAN network list
getGridVlansGETGet the networks whose purpose is vlan
getAvailableVirtualWanGETQuery available virtual WAN list
getGridLanDnsGETGet LAN DNS list
createLanDnsPOSTCreate a LAN DNS rule
deleteLanDnsDELETEDelete an existing LAN DNS rule
modifyLanDnsPATCHModify an existing LAN DNS rule
getSpeedTestV2SettingGETGet SpeedTest Setting
modifySpeedTestV2SettingPOSTModify SpeedTest Setting
getGridVirtualWanGETQuery virtual WAN list
createVirtualWanPOSTCreate virtual WAN
deleteVirtualWan_1DELETEDelete virtual WAN
modifyVirtualWanPATCHModify virtual WAN
modifyVirtualWanStatusPATCHModify virtual WAN status
checkVirtualWanUsed_1GETCheck Virtual Wan Used
getAvailableWanPorts_1GETGet available wan ports
modifyWanPortsPATCHModify Wan Ports
getAllValidVlansInSiteForSwitchOuiBasedVlan_1GETGet valid vlanList for switch oui based vlan
checkWanLanStatus_1GETCheck WAN-LAN status
getWanPortsMaxSpeed_1GETGet wan ports max speed
startBandScanPOSTStart Band scan
getSimCardBandScanResultGETObtain the bandScan result of the corresponding SIM card
startIspScanPOSTStart Isp scan
getSimCardIspScanResultGETObtain the ispScan result of the corresponding SIM card
modifyWanPortSettingsPATCHModify Wan Port Settings
obtainWanUnsupportedFunctionGETGet linkage functions that are not supported by WAN
getLanNetworkListV2GETGet LAN network list
createLanNetworkV2POSTCreate LAN network (deprecated)
modifyLanNetworkV2PATCHModify LAN network
batchIsolateLanNetwork_1POSTBatch isolate network
getInterfaceLanNetworkV2GETGet all "single"/"multi" interface lan network V2
getAllInterfacesForBatchIsolate_1GETGet interface List
getOswLanProfileListGETGet switch profile list
createOswLanProfilePOSTCreate new switch profile
deleteOswLanProfileDELETEDelete an existing switch profile
modifyOswLanProfilePATCHModify a switch profile
getLanNetworkListV3GETGet LAN network list V3

speedTest ​

POST /openapi/v1/{omadacId}/sites/{siteId}/cmd/speedTest

Deprecated

This operation is deprecated.

SpeedTest

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema InternetOpenApiVO

FieldTypeRequiredDescription
omadacIdstringnoOmadac ID.
siteIdstringyesSite ID.
enablebooleannoIs Internet enable.
osgPortInfoOsgPortInfoOpenApiVOno(OsgPortInfoOpenApiVO not expanded; call omada_get_schema "OsgPortInfoOpenApiVO")
portUuidsarray<string>noThe list of wan port UUID.
intervalintegernoTime taken to check the connection of wan port.
unitintegernoUnit.
supportCustomIntervalbooleannoWhether the device supports Custom Interval.
supportDiscreteWanbooleannoWhether the device supports Discrete Wan.
supportReduceUsbRfibooleannoWhether the device supports Reduce USB 3.0 Interference Reduction.
supportAllWanbooleannoWhether the device supports all wan.
supportMaxWanNumintegernoThe maximum number of wans supported.
supportIpv6NonAddressbooleannoWhether the IPv6 configuration supports Non-Address.
supportMssClampingbooleannoWhether MSS clamping is supported for PPPoE, L2TP, and PPTP.
supportPppoeMrubooleannoWhether to configure PPPoE MRUs.
supportWanMultipleIpbooleannoWhether to configure multiple IP addresses for wan ports.
supportLtebooleannoWhether to configure LTE Wan.
supportDualSimintegernoWhether it supports dual SIM single standby: 0: not support, 1: support.
supportDslbooleannoWhether it supports DSL.
supportVirtualWanbooleannoWhether it supports virtual wan.
supportNetworkIsolationbooleannoWhether it supports isolate network.
supportDhcpOptionsbooleannoWhether WAN port dhcpOptions can be customized.
supportUsbDhcpOptionsbooleannoWhether USB port dhcpOptions can be customized.
supportDsLitebooleannoWhether the WAN port supports configuring DS-Lite.
supportMapEbooleannoWhether the WAN port supports configuring MAP-E.
supportTimingModebooleannoWhether the Load Balance Failover supports Timing mode.
wanPortSettingsarray<WanPortSettingOpenApiVO>noA list of wan port setting.
usbLteSettingsarray<UsbLteSettingOpenApiVO>noA list of USB LTE setting.
lteWanSettingsarray<LteWanPortSettingOpenApiVO>noA list of LTE wan setting.
wanLoadBalanceWanLoadBalanceOpenApiVOno(WanLoadBalanceOpenApiVO not expanded; call omada_get_schema "WanLoadBalanceOpenApiVO")
networkNamesarray<string>noA list of the name of the LanNetwork entry that was invalidated on the frontend.
unmatchedWansarray<string>noA list of the name of the WAN port that was invalidated on the frontend.
gatewayMacstringnoGateway MAC.
enableModifiedbooleannoWhether it enable modified.
lteIntervalTipsbooleannoWhether to display the interval prompt for LTE ports.
portOnlineStatusPortOnlineStatusOpenApiVOno(PortOnlineStatusOpenApiVO not expanded; call omada_get_schema "PortOnlineStatusOpenApiVO")
resourceintegernoResource of data.
json
// omada_call_operation
{
  "operationId": "speedTest",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

SpeedTest. This interface had been deprecated.
The interface requires one of the permissions:
Site Dashboard Manager View Only

getIpptInternet ​

GET /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac}/internet

Get internet info by mac

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
gatewayMacpathstringyesDevice MAC address, like AA-BB-CC-DD-EE-FF
json
// omada_call_operation
{
  "operationId": "getIpptInternet",
  "params": {
    "siteId": "<siteId>",
    "gatewayMac": "<gatewayMac>"
  }
}
Details, permissions and error codes

Get internet info by mac
The interface requires one of the permissions:
Site Settings Manager View Only
Site Device Manager View Only

modifyIpptLteWanPortConfig ​

PUT /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac}/internet/lte/ports-config

Modify internet lte port config for ippt

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
gatewayMacpathstringyesDevice MAC address, like AA-BB-CC-DD-EE-FF

Request body — application/json (required) — schema LteWanPortSettingConfigOpenApiV2VO

FieldTypeRequiredDescription
portUuidstringyesPort Uuid
portDescstringnoPort description should contain 1 to 32 characters.
simPriorityintegernoSet which SIM card is used first. SIM Priority takes effect only when the device is powered on and the priority is changed. If only one SIM card is inserted, this card is used by default.
mobileDatabooleanyesmobile data
dialupSettingDialupSettingOpenApiV2VOyes(DialupSettingOpenApiV2VO not expanded; call omada_get_schema "DialupSettingOpenApiV2VO")
dialupSetting2DialupSettingOpenApiV2VOno(DialupSettingOpenApiV2VO not expanded; call omada_get_schema "DialupSettingOpenApiV2VO")
json
// omada_call_operation
{
  "operationId": "modifyIpptLteWanPortConfig",
  "params": {
    "siteId": "<siteId>",
    "gatewayMac": "<gatewayMac>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify internet port lte config for ippt. Make sure the parameter[preConfiguration] is true, so the port configuration can take effect after you adopt a gateway.
The interface requires one of the permissions:
Site Settings Manager Modify
Site Device Manager Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33400 - Current site has no WAN.
-33507 - This profile does not exist.
-33553 - The LTE WAN or Cellular WAN port is configured with IPv6 network. Please re-select the APN Profile of IPv6 mode.

modifyIpptWanMode ​

PATCH /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac}/internet/wan-mode

Modify internet wan mode

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
gatewayMacpathstringyesDevice MAC address, like AA-BB-CC-DD-EE-FF

Request body — application/json (required) — schema IpptWanModeOpenApiVO

FieldTypeRequiredDescription
enablebooleanyeswhether to enable wan Settings Override
intervalintegernoTime taken to check the connection of wan port.
unitintegernoUnit. 0: minute, 1: second.
json
// omada_call_operation
{
  "operationId": "modifyIpptWanMode",
  "params": {
    "siteId": "<siteId>",
    "gatewayMac": "<gatewayMac>"
  },
  "body": "{...}"
}
Details, permissions and error codes

modify internet wan mode
The interface requires one of the permissions:
Site Settings Manager Modify
Site Device Manager Modify

getInternet ​

GET /openapi/v1/{omadacId}/sites/{siteId}/internet

Get internet info

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getInternet",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get internet info.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getBandScanResult ​

GET /openapi/v1/{omadacId}/sites/{siteId}/internet/band-scan/{portUuid}

Get band scan result.

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
portUuidpathstringyesPort uuid to get band scan result
json
// omada_call_operation
{
  "operationId": "getBandScanResult",
  "params": {
    "siteId": "<siteId>",
    "portUuid": "<portUuid>"
  }
}
Details, permissions and error codes

Get result of band scan.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getInternetBasicPortInfo_1 ​

GET /openapi/v1/{omadacId}/sites/{siteId}/internet/basic-info

Get internet basic info

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getInternetBasicPortInfo_1",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get internet basic info. All port and port-related configuration will take effect only the The parameter [preConfiguration] is true.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

modifyInternetBasicPortInfo_1 ​

PUT /openapi/v1/{omadacId}/sites/{siteId}/internet/basic-info

Modify the internet basic configuration

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema InternetBaseConfigOpenApiVO

FieldTypeRequiredDescription
preConfigurationbooleanyesAll port and port-related(like ACL) configuration will take effect only when the parameter [preConfiguration] is true. The value will always be true when a gateway is in this site.
wanPortListarray<string>yesList of enabled WAN port IDs, the valid port IDs can be obtained from "Get internet basic info".
intervalintegernoOnline detection interval(second). 0 means disable. It should be within the range of 0–3600.
json
// omada_call_operation
{
  "operationId": "modifyInternetBasicPortInfo_1",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify the internet basic configuration.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33400 - Current site has no WAN.
-33531 - This WAN port has been used by other networks.

modifyGatewayModel ​

POST /openapi/v1/{omadacId}/sites/{siteId}/internet/change-model

Modify gateway mode for pre-configuration

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema OsgModelOpenApiVO

FieldTypeRequiredDescription
modelIdintegeryesIt refers to function "Get supported gateway model list for pre-configuration".
json
// omada_call_operation
{
  "operationId": "modifyGatewayModel",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Only effective when there is no adopted gateway. The port-related configuration(like ACL) will lost after changing the model, so it is recommended to call this method before all gateway pre-configuration.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify

getIspScanResult ​

GET /openapi/v1/{omadacId}/sites/{siteId}/internet/isp-scan/{portUuid}

Get Isp scan result

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
portUuidpathstringyesPort Uuid to be scanned
json
// omada_call_operation
{
  "operationId": "getIspScanResult",
  "params": {
    "siteId": "<siteId>",
    "portUuid": "<portUuid>"
  }
}
Details, permissions and error codes

Get result of Isp scan
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getInternetLoadBalance_1 ​

GET /openapi/v1/{omadacId}/sites/{siteId}/internet/load-balance

Get internet load balance config

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getInternetLoadBalance_1",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get internet load balance config.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

modifyInternetLoadBalance_1 ​

PUT /openapi/v1/{omadacId}/sites/{siteId}/internet/load-balance

Modify internet load balance config

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema WanLoadBalanceOpenApiVO

FieldTypeRequiredDescription
weightsarray<integer>yesLoad Balancing Weights,item of weights should be within the range of 1 to the max int value(2147483647). It is sorted by port ID.
appOptRoutingbooleanyesApplication Optimized Routing
linkBackupbooleanyesLink Backup
methodstringnoeffective only for 'linkBackup: true'
primaryWansarray<string>noPrimary WAN port IDs. It is required when [linkBackup] is true.
backupWanstringnoBackup WAN ID. It is required when [linkBackup] is true.
backupModeintegernoIt is required when [linkBackup] is true. 0: The system will try to forward the traffic via the backup WAN port when primary WAN fails. Even if the primary WAN is recovered, it will not switch back unless the backup WAN fails; 1: Traffic is always forwarded through the primary WAN port unless it fails. The system will try to forward the traffic via the backup WAN port when it fails, and switch back when it recovers.
modeintegernoIt is required when [linkBackup] is true. 0: Enable backup link when any primary WAN fails. 1: Enable backup link when all primary WANs fail. 2: Timing
timeRangeIdstringnoTime Range ID. It is required when [mode] is timing.
virtualWanWeightsarray<VirtualWanWeightOpenApiVO>novirtual wan load balance
json
// omada_call_operation
{
  "operationId": "modifyInternetLoadBalance_1",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify internet load balance config.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify

getLoadBalanceWeightStatus ​

GET /openapi/v1/{omadacId}/sites/{siteId}/internet/load-balance/status

Check Wan Loadbalance status

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getLoadBalanceWeightStatus",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Check Wan Loadbalance weight modified or not
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getLocationAndIspInfo ​

GET /openapi/v1/{omadacId}/sites/{siteId}/internet/location-isp

Get location and ISP info

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getLocationAndIspInfo",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get index and name of location and ISP in usb wan port configuration.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getLteWanPortsConfig ​

GET /openapi/v1/{omadacId}/sites/{siteId}/internet/lte/ports-config

Get internet lte wan ports config

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getLteWanPortsConfig",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get internet lte wan ports config.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

modifyLteWanPortConfig ​

PUT /openapi/v1/{omadacId}/sites/{siteId}/internet/lte/ports-config

Modify internet lte port config

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema LteWanPortSettingConfigOpenApiVO

FieldTypeRequiredDescription
portIdstringyesPort ID
portDescriptionstringnoPort description should contain 1 to 32 characters.
simPriorityintegernoSet which SIM card is used first. SIM Priority takes effect only when the device is powered on and the priority is changed. If only one SIM card is inserted, this card is used by default.
mobileDatabooleanyesmobile data
dataRoamingbooleanyesFirst SIM card's data roaming
networkModeintegeryesFirst SIM card's networkMode: 1:3G Only, 2:4G Only, 3:4G Preferred4: 5G-NSA/4G, 5: 5G-SA, 6: 5G/4G/3G
bandModeintegernoFirst SIM card's bandMode: 0:auto, 1:manual, only for networkMode 4g Only and 4G Preferred
bandsarray<string>noFirst SIM card's bands. Only for band mode manual
bands5garray<string>noFirst SIM card's. Only for band mode manual
dialupSettingDialupSettingOpenApiVOyes(DialupSettingOpenApiVO not expanded; call omada_get_schema "DialupSettingOpenApiVO")
failoverTimeoutintegernoFirst SIM card's failoverTimeout. Set the dial-up timeout (100 to 3552 seconds). If the connection is not successfully established within the specified time, the gateway will use the other SIM card to connect to the internet.
dataRoaming2booleannoSecond SIM card's data roaming
networkMode2integernoSecond SIM card's networkMode: 1:3G Only, 2:4G Only, 3:4G Preferred4: 5G-NSA/4G, 5: 5G-SA, 6: 5G/4G/3G
bandMode2integernoSecond SIM card's bandMode: 0:auto, 1:manual, only for networkMode 4g Only and 4G Preferred
bands2array<string>noSecond SIM card's bands. Only for band mode manual
bands5g2array<string>noSecond SIM card's. Only for band mode manual
dialupSetting2DialupSettingOpenApiVOno(DialupSettingOpenApiVO not expanded; call omada_get_schema "DialupSettingOpenApiVO")
failoverTimeout2integernoSecond SIM card's failoverTimeout. Set the dial-up timeout (100 to 3552 seconds). If the connection is not successfully established within the specified time, the gateway will use the other SIM card to connect to the internet.
json
// omada_call_operation
{
  "operationId": "modifyLteWanPortConfig",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify internet port lte config. Make sure the parameter[preConfiguration] is true, so the port configuration can take effect after you adopt a gateway.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33400 - Current site has no WAN.
-33507 - This profile does not exist.
-33553 - The LTE WAN or Cellular WAN port is configured with IPv6 network. Please re-select the APN Profile of IPv6 mode.

getSupportInfo ​

GET /openapi/v1/{omadacId}/sites/{siteId}/internet/models

Get supported gateway model list for pre-configuration

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getSupportInfo",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get ID and name of supported gateway models for pre-configuration.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getWanPortsConfig ​

GET /openapi/v1/{omadacId}/sites/{siteId}/internet/ports-config

Get internet ports config

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getWanPortsConfig",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get internet ports config.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

modifyWanPortsConfig ​

PUT /openapi/v1/{omadacId}/sites/{siteId}/internet/ports-config

Modify internet ports config

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema WanSettingConfigOpenApiVO

FieldTypeRequiredDescription
wanPortsConfigarray<WanPortSettingOpenApiVO>noWAN ports config
UsbPortsConfigarray<UsbLteSettingConfigOpenApiVO>noUSB LTE ports config
json
// omada_call_operation
{
  "operationId": "modifyWanPortsConfig",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify internet ports config. Make sure the parameter[preConfiguration] is true and all wan ports config is include, so the port configuration can take effect after you adopt a gateway.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33400 - Current site has no WAN.
-33413 - The IP range you set for the WAN port conflicts with the IP range of LAN networks.
-33414 - The MAC address is not available because it has been used for another port.
-33416 - The IP range you set for the WAN port conflicts with the IP range of the other WAN port.
-33426 - The Secondary DNS cannot be the same as the Primary DNS. Please enter another IP address.
-33427 - The IP you set for DNS Server conflicts with the IP range of the LAN network.
-33429 - There are duplicate IPs in the WAN alias IPs and static IPs.
-33431 - VLAN ID ranges from 1 to 4094.
-33501 - This VLAN ID is already used by the WAN interface.
-33531 - This WAN port has been used by other networks.
-34212 - The WAN port is used for one-to-one NAT and can only use the Static IP type.

getLanNetworkList ​

GET /openapi/v1/{omadacId}/sites/{siteId}/lan-networks

Deprecated

This operation is deprecated.

Get LAN network list

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getLanNetworkList",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get LAN network list.(Pagination). This interface has been deprecated. Please use the following interface instead: Get LAN network list V3
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

createLanNetwork ​

POST /openapi/v1/{omadacId}/sites/{siteId}/lan-networks

Deprecated

This operation is deprecated.

Create LAN network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema LanNetworkOpenApiVO

FieldTypeRequiredDescription
namestringyesLAN network name should contain 1 to 128 characters.
purposeintegeryesLAN network purpose, 0: VLAN, 1: interface
isolationbooleannoWhether isolate this network.
interfaceIdsarray<string>noGateway LAN port IDs, which are acquired from "Check WAN/LAN status"
vlanTypeintegernoWhen purpose is interface, VLANType is valid. 0: Single; 1: Multiple
vlansstringnoWhen purpose is "interface" and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100.
vlanintegernoWhen purpose is "VLAN" or purpose is "interface" and VLANType is 0, create VLAN, which ranges from 1 to 4090.
applicationintegernoEffective device type, 0: Gateway, Switch; 1: Switch
gatewaySubnetstringnoWhen purpose is interface, gateway subnet is needed. Format: IP/Mask
dhcpSettingsVOdhcp settingsno(dhcp settings not expanded; call omada_get_schema "dhcp settings")
domainstringnoThe domain of this network
igmpSnoopEnablebooleanyesEnable IGMP snooping
mldSnoopEnablebooleannoEnable MLD snooping
dhcpL2RelayEnablebooleannoThe switch of DHCP L2 relay
dhcpGuardDhcp Servers settingno(Dhcp Servers setting not expanded; call omada_get_schema "Dhcp Servers setting")
dhcpv6GuardDhcpv6 Servers settingno(Dhcpv6 Servers setting not expanded; call omada_get_schema "Dhcpv6 Servers setting")
lanNeworkIpv6ConfigLan network IPV6 configno(Lan network IPV6 config not expanded; call omada_get_schema "Lan network IPV6 config")
allLanbooleannoWhen Internet pre-config is closed or Internet pre-config is Universal, allLAN is "true"; after adopting gateway, allLAN is "false".
json
// omada_call_operation
{
  "operationId": "createLanNetwork",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Create lan network. This interface has been deprecated. Please use the following interface instead: Confirm create lan network
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN ID is already used by the WAN interface.
-33506 - This Profile name already exists.
-33544 - The number of interfaces has reached the limit.
-33546 - The number of networks has reached the limit of 4094.
-33547 - The number of VLANs has reached the limit of gateway.
-33548 - The number of VLANs has reached the limit of switch.

deleteLanNetwork ​

DELETE /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/{networkId}

Delete LAN network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID
json
// omada_call_operation
{
  "operationId": "deleteLanNetwork",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  }
}
Details, permissions and error codes

Delete LAN network. If returns -33566, use "Query switches that used the Native Network's profile" to query these switches.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33503 - This network does not exist.
-33505 - Default LAN cannot be deleted.
-33566 - The network has been configured as the switch's native network. Cannot delete the network.
-35200 - The LAN network referenced by the IDS/IPS-Allow List cannot be deleted.

getLanNetwork ​

GET /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/{networkId}

Get LAN network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID
json
// omada_call_operation
{
  "operationId": "getLanNetwork",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  }
}
Details, permissions and error codes

Get LAN network.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

modifyLanNetwork ​

PATCH /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/{networkId}

Deprecated

This operation is deprecated.

Modify LAN network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID

Request body — application/json (required) — schema LanNetworkOpenApiVO

FieldTypeRequiredDescription
namestringyesLAN network name should contain 1 to 128 characters.
purposeintegeryesLAN network purpose, 0: VLAN, 1: interface
isolationbooleannoWhether isolate this network.
interfaceIdsarray<string>noGateway LAN port IDs, which are acquired from "Check WAN/LAN status"
vlanTypeintegernoWhen purpose is interface, VLANType is valid. 0: Single; 1: Multiple
vlansstringnoWhen purpose is "interface" and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100.
vlanintegernoWhen purpose is "VLAN" or purpose is "interface" and VLANType is 0, create VLAN, which ranges from 1 to 4090.
applicationintegernoEffective device type, 0: Gateway, Switch; 1: Switch
gatewaySubnetstringnoWhen purpose is interface, gateway subnet is needed. Format: IP/Mask
dhcpSettingsVOdhcp settingsno(dhcp settings not expanded; call omada_get_schema "dhcp settings")
domainstringnoThe domain of this network
igmpSnoopEnablebooleanyesEnable IGMP snooping
mldSnoopEnablebooleannoEnable MLD snooping
dhcpL2RelayEnablebooleannoThe switch of DHCP L2 relay
dhcpGuardDhcp Servers settingno(Dhcp Servers setting not expanded; call omada_get_schema "Dhcp Servers setting")
dhcpv6GuardDhcpv6 Servers settingno(Dhcpv6 Servers setting not expanded; call omada_get_schema "Dhcpv6 Servers setting")
lanNeworkIpv6ConfigLan network IPV6 configno(Lan network IPV6 config not expanded; call omada_get_schema "Lan network IPV6 config")
allLanbooleannoWhen Internet pre-config is closed or Internet pre-config is Universal, allLAN is "true"; after adopting gateway, allLAN is "false".
json
// omada_call_operation
{
  "operationId": "modifyLanNetwork",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify LAN network. This interface has been deprecated. Please use the following interface instead: Confirm modify lan network
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN ID is already used by the WAN interface.
-33503 - This network does not exist.
-33506 - This Profile name already exists.
-33527 - The interface of Default LAN cannot be modified.
-33544 - The number of interfaces has reached the limit.
-33545 - The VLAN Type of Default LAN cannot be modified.
-34235 - The VLAN cannot be set to 1 since it is used in OUI Based VLAN rules which do not allow VLAN 1.

getAllLanNetworks ​

GET /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/all

Get all networks for the omada id and site id

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getAllLanNetworks",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get all networks for the omada id and site id
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getUseNativeNetworkOsw ​

POST /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/es

Deprecated

This operation is deprecated.

Query switches that used the Native Network's profile

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema QueryUseNativeNetworkOswOpenApiVO

FieldTypeRequiredDescription
pageintegeryesStart from 1.
pageSizeintegeryesIt should be within the range of 1–1000.
selectAllbooleannoSelect all VLAN networks
idsarray<string>noList of VLAN and Interface network IDs. The valid network IDs can be obtained from "Get LAN network list". When selectAll is true, it means select all except specified IDs; When selectAll is false, it means select specified IDs.
json
// omada_call_operation
{
  "operationId": "getUseNativeNetworkOsw",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Query switches that used the Native Network's profile.(Pagination). This interface has been deprecated. Please use the following interface instead: Query switches that used the Native Network's profile V2
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33503 - This network does not exist.

getUseNativeNetworkOswV2 ​

POST /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/es-native

Query switches that used the Native Network's profile V2

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema QueryUseNativeNetworkOswV2OpenApiVO

FieldTypeRequiredDescription
pageintegeryesStart from 1.
pageSizeintegeryesIt should be within the range of 1–1000.
selectTypestringnoselectType should be a value as follows: all: select all; include: include ids; exclude: exclude ids.
idsarray<string>noList of VLAN and Interface network IDs. The valid network IDs can be obtained from "Get LAN network list".
json
// omada_call_operation
{
  "operationId": "getUseNativeNetworkOswV2",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Query switches that used the Native Network's profile V2.(Pagination)
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33503 - This network does not exist.

getInterfaceLanNetwork ​

GET /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/interface

Deprecated

This operation is deprecated.

Get all "single"/"multi" interface lan network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
typequeryintegernoInterface vlan type. When "type" is 0, return "single" interface lan network, else return "single"/"multi" interface lan network
json
// omada_call_operation
{
  "operationId": "getInterfaceLanNetwork",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get all "single"/"multi" interface lan network. This interface has been deprecated. Please use the following interface instead: Get all "single"/"multi" interface lan network V2
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getLanProfileList ​

GET /openapi/v1/{omadacId}/sites/{siteId}/lan-profiles

Get LAN profile list

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getLanProfileList",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get LAN profile list.
The interface requires one of the permissions:
Site Settings Manager View Only
Device Config Page View Only

createLanProfile ​

POST /openapi/v1/{omadacId}/sites/{siteId}/lan-profiles

Create new LAN profile

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema LanProfileConfigOpenApiVO

FieldTypeRequiredDescription
namestringyesName should contain 1 to 128 characters.
poeintegeryesPoE should be a value as follows: 0: off, 1: on, 2: "do not modify"
nativeNetworkIdstringyesNative network ID, Native Network cannot be selected from Tagged Networks or Untagged Networks.
tagNetworkIdsarray<string>noTag network IDs
untagNetworkIdsarray<string>noUntag network IDs
voiceNetworkIdstringnoVoice Network ID
dot1xintegeryesDot1x should be a value as follows: 0: force unauthorized, 1: force authorized, 2:auto
portIsolationEnablebooleanyesPort-isolation enable status
lldpMedEnablebooleanyesLLDP-MED enable status
bandWidthCtrlTypeintegeryesBandWidthCtrlType should be a value as follows: 0: off, 1: rate limit, 2: storming control
stormCtrlStormCtrlVOno(StormCtrlVO not expanded; call omada_get_schema "StormCtrlVO")
bandCtrlBandCtrlVOno(BandCtrlVO not expanded; call omada_get_schema "BandCtrlVO")
spanningTreeEnablebooleanyesSpanningTree enable status
spanningTreeSettingSpanningTreeSettingVOno(SpanningTreeSettingVO not expanded; call omada_get_schema "SpanningTreeSettingVO")
loopbackDetectEnablebooleanyesLoopbackDetect enable status
eeeEnablebooleannoEEE enable status
flowControlEnablebooleannoFlowControl enable status
loopbackDetectVlanBasedEnablebooleannoLoopbackDetectVLANBased enable status
igmpFastLeaveEnablebooleannoIndicates whether igmp fast leave is enabled
mldFastLeaveEnablebooleannoIndicates whether mld fast leave is enabled
dhcpL2RelaySettingsDhcpL2RelayVOno(DhcpL2RelayVO not expanded; call omada_get_schema "DhcpL2RelayVO")
fastLeaveEnablebooleannoIGMP Snooping fast leave enable status
dot1pPriorityintegerno802.1p Priority
trustModeintegernoTrust mode
json
// omada_call_operation
{
  "operationId": "createLanProfile",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Create new LAN profile.
The interface requires one of the permissions:
Site Settings Manager Modify
Device Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
0 - Success.
-1001 - Invalid request parameters.
-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.

deleteLanProfile ​

DELETE /openapi/v1/{omadacId}/sites/{siteId}/lan-profiles/{profileId}

Delete an existing LAN profile

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
profileIdpathstringyesLAN profile ID
json
// omada_call_operation
{
  "operationId": "deleteLanProfile",
  "params": {
    "siteId": "<siteId>",
    "profileId": "<profileId>"
  }
}
Details, permissions and error codes

Delete an existing LAN profile. If returns -33560, use "Query Agile Series switch that used the profile" to query these Agile Series switches.
The interface requires one of the permissions:
Site Settings Manager Modify
Device Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
0 - Success.
-1001 - Invalid request parameters.
-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.
-33507 - This profile does not exist.
-33560 - The Agile Series Switch has been configured with this profile. Cannot delete the profile or turn off the option "Agile Series Switch Enabled".

modifyLanProfile ​

PATCH /openapi/v1/{omadacId}/sites/{siteId}/lan-profiles/{profileId}

Modify a LAN profile

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
profileIdpathstringyeslanProfileId

Request body — application/json (required) — schema LanProfileConfigOpenApiVO

FieldTypeRequiredDescription
namestringyesName should contain 1 to 128 characters.
poeintegeryesPoE should be a value as follows: 0: off, 1: on, 2: "do not modify"
nativeNetworkIdstringyesNative network ID, Native Network cannot be selected from Tagged Networks or Untagged Networks.
tagNetworkIdsarray<string>noTag network IDs
untagNetworkIdsarray<string>noUntag network IDs
voiceNetworkIdstringnoVoice Network ID
dot1xintegeryesDot1x should be a value as follows: 0: force unauthorized, 1: force authorized, 2:auto
portIsolationEnablebooleanyesPort-isolation enable status
lldpMedEnablebooleanyesLLDP-MED enable status
bandWidthCtrlTypeintegeryesBandWidthCtrlType should be a value as follows: 0: off, 1: rate limit, 2: storming control
stormCtrlStormCtrlVOno(StormCtrlVO not expanded; call omada_get_schema "StormCtrlVO")
bandCtrlBandCtrlVOno(BandCtrlVO not expanded; call omada_get_schema "BandCtrlVO")
spanningTreeEnablebooleanyesSpanningTree enable status
spanningTreeSettingSpanningTreeSettingVOno(SpanningTreeSettingVO not expanded; call omada_get_schema "SpanningTreeSettingVO")
loopbackDetectEnablebooleanyesLoopbackDetect enable status
eeeEnablebooleannoEEE enable status
flowControlEnablebooleannoFlowControl enable status
loopbackDetectVlanBasedEnablebooleannoLoopbackDetectVLANBased enable status
igmpFastLeaveEnablebooleannoIndicates whether igmp fast leave is enabled
mldFastLeaveEnablebooleannoIndicates whether mld fast leave is enabled
dhcpL2RelaySettingsDhcpL2RelayVOno(DhcpL2RelayVO not expanded; call omada_get_schema "DhcpL2RelayVO")
fastLeaveEnablebooleannoIGMP Snooping fast leave enable status
dot1pPriorityintegerno802.1p Priority
trustModeintegernoTrust mode
json
// omada_call_operation
{
  "operationId": "modifyLanProfile",
  "params": {
    "siteId": "<siteId>",
    "profileId": "<profileId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify a LAN profile.
The interface requires one of the permissions:
Site Settings Manager Modify
Device Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
0 - Success.
-1001 - Invalid request parameters.
-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.
-33507 - This profile does not exist.
-33560 - The Agile Series Switch has been configured with this profile. Cannot delete the profile or turn off the option "Agile Series Switch Enabled".
-33564 - The number of VLANs has reached the limit of the Agile Series Switch.

getUseLanProfileES ​

GET /openapi/v1/{omadacId}/sites/{siteId}/lan-profiles/{profileId}/es

Query Agile Series switches that used the profile

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
profileIdpathstringyesSwitch profile ID
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getUseLanProfileES",
  "params": {
    "siteId": "<siteId>",
    "profileId": "<profileId>"
  }
}
Details, permissions and error codes

Query Agile Series switches that used the profile.(Pagination)
The interface requires one of the permissions:
Site Settings Manager View Only
Device Config Page View Only
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33507 - This profile does not exist.
-33558 - The profile does not support the Agile Series Switch.

getOswPortLanNetInfo ​

GET /openapi/v1/{omadacId}/sites/{siteId}/lan-switch-setting

Get switch port profile info

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getOswPortLanNetInfo",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get switch port profile info.(Pagination)
The interface requires one of the permissions:
Site Settings Manager View Only
Device Config Page View Only

createVlans_1 ​

POST /openapi/v1/{omadacId}/sites/{siteId}/lan-vlans

Batch create vlans

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema Create VLANs

FieldTypeRequiredDescription
namestringyesLAN network name should contain 1 to 128 characters.
vlansstringyesSupport batch VLAN creation. VLAN format: 200, 1-100.
igmpSnoopEnablebooleanyesEnable IGMP snooping
dhcpL2RelayEnablebooleannoThe switch of DHCP L2 relay
dhcpGuardDhcp Servers settingno(Dhcp Servers setting not expanded; call omada_get_schema "Dhcp Servers setting")
mldSnoopEnablebooleannoEnable MLD snooping
dhcpv6GuardDhcpv6 Servers settingno(Dhcpv6 Servers setting not expanded; call omada_get_schema "Dhcpv6 Servers setting")
applicationintegernoEffective device type should be a value as follows: 0: Gateway and Switch; 1: Switch
json
// omada_call_operation
{
  "operationId": "createVlans_1",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Batch create vlans. Format support: 200, 1-100.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN ID is already used by the WAN interface.
-33506 - This Profile name already exists.
-33547 - The number of VLANs has reached the limit of gateway.
-33548 - The number of VLANs has reached the limit of switch.

networkMapping ​

PATCH /openapi/v1/{omadacId}/sites/{siteId}/network-mapping

Network mapping

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema NetworkMappingVO

FieldTypeRequiredDescription
wanMappingWanMappingVOno(WanMappingVO not expanded; call omada_get_schema "WanMappingVO")
lanMappingLanMappingVOno(LanMappingVO not expanded; call omada_get_schema "LanMappingVO")
destModelintegerno
wanNumintegerno
json
// omada_call_operation
{
  "operationId": "networkMapping",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

map device internet config to another, if already adopted gateway, this api will not work
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify

getAutoEffectDevicesWhenModify ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/auto-effect-devices

Get auto effect devices when modifying network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID

Request body — application/json (required) — schema LanNetworkOpenApiV3VO

FieldTypeRequiredDescription
namestringyesLAN network name should contain 1 to 128 characters.
vlanTypeintegernoVLANType should be a value as follows: 0: Single; 1: Multiple
vlansstringnoOnly valid when vlanType is 1 and device type is 0 , 1 or 3. When device type is 0 or 3, batch create single vlan, when deviceType is 1 , create bridge vlan. VLAN format: 200, 1-100.
vlanintegernoOnly Valid when vlanType is 0. Vlan should be within the range of 1-4094.
gatewaySubnetstringnoWhen deviceType is 1, gateway subnet is needed. Format: IP/Mask
dhcpSettingsDhcpSettingConfigno(DhcpSettingConfig not expanded; call omada_get_schema "DhcpSettingConfig")
domainstringnoThe domain of this network
igmpSnoopEnablebooleanyesEnable IGMP snooping
mldSnoopEnablebooleannoEnable MLD snooping
dhcpL2RelayEnablebooleannoThe switch of DHCP L2 relay
dhcpGuardDhcp Servers settingno(Dhcp Servers setting not expanded; call omada_get_schema "Dhcp Servers setting")
dhcpv6GuardDhcpv6 Servers settingno(Dhcpv6 Servers setting not expanded; call omada_get_schema "Dhcpv6 Servers setting")
lanNetworkIpv6ConfigLan network IPV6 configno(Lan network IPV6 config not expanded; call omada_get_schema "Lan network IPV6 config")
arpDetectionEnablebooleannoEnable arp detection. Only valid when deviceType is 1 and gateway supports this feature.
isolationbooleannoWhether network isolated.
qosQueueEnablebooleannoThe switch of QoS queue.
queueIdintegernoQoS queue Id.
deviceTypeintegeryesDHCP Server Device type. It should be a value as follows: 0:External Device 1:gateway 2:switch 3:none
deviceMacstringnoDHCP Server Device mac. Only valid when deviceType is 1 or 2. When deviceType is 1, deviceMac can be empty when there is no gateway in the site.
stackIdstringnoDHCP Server Device stackId. Only valid when deviceType is 2 and the selected device is stack
ipOswIpSettingBriefOpenapiVOno(OswIpSettingBriefOpenapiVO not expanded; call omada_get_schema "OswIpSettingBriefOpenapiVO")
modeintegernoDHCP mode. 0: None 1: DHCP Server 2: DHCP Relay. Only valid when deviceType is 2.
vrfIdstringnoVRF ID
dhcpServerOswDhcpServerOpenApiVOno(OswDhcpServerOpenApiVO not expanded; call omada_get_schema "OswDhcpServerOpenApiVO")
dhcpRelayOswDhcpRelayOpenApiVOno(OswDhcpRelayOpenApiVO not expanded; call omada_get_schema "OswDhcpRelayOpenApiVO")
subnetOverrideEnablebooleannoThe switch status of DHCP Settings Overrides.
json
// omada_call_operation
{
  "operationId": "getAutoEffectDevicesWhenModify",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Get auto effect devices when modifying network.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getAutoSelectDevicesWhenModify ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/auto-select-devices

Get auto select devices when modifying network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID

Request body — application/json (required) — schema LanNetworkOpenApiV3VO

FieldTypeRequiredDescription
namestringyesLAN network name should contain 1 to 128 characters.
vlanTypeintegernoVLANType should be a value as follows: 0: Single; 1: Multiple
vlansstringnoOnly valid when vlanType is 1 and device type is 0 , 1 or 3. When device type is 0 or 3, batch create single vlan, when deviceType is 1 , create bridge vlan. VLAN format: 200, 1-100.
vlanintegernoOnly Valid when vlanType is 0. Vlan should be within the range of 1-4094.
gatewaySubnetstringnoWhen deviceType is 1, gateway subnet is needed. Format: IP/Mask
dhcpSettingsDhcpSettingConfigno(DhcpSettingConfig not expanded; call omada_get_schema "DhcpSettingConfig")
domainstringnoThe domain of this network
igmpSnoopEnablebooleanyesEnable IGMP snooping
mldSnoopEnablebooleannoEnable MLD snooping
dhcpL2RelayEnablebooleannoThe switch of DHCP L2 relay
dhcpGuardDhcp Servers settingno(Dhcp Servers setting not expanded; call omada_get_schema "Dhcp Servers setting")
dhcpv6GuardDhcpv6 Servers settingno(Dhcpv6 Servers setting not expanded; call omada_get_schema "Dhcpv6 Servers setting")
lanNetworkIpv6ConfigLan network IPV6 configno(Lan network IPV6 config not expanded; call omada_get_schema "Lan network IPV6 config")
arpDetectionEnablebooleannoEnable arp detection. Only valid when deviceType is 1 and gateway supports this feature.
isolationbooleannoWhether network isolated.
qosQueueEnablebooleannoThe switch of QoS queue.
queueIdintegernoQoS queue Id.
deviceTypeintegeryesDHCP Server Device type. It should be a value as follows: 0:External Device 1:gateway 2:switch 3:none
deviceMacstringnoDHCP Server Device mac. Only valid when deviceType is 1 or 2. When deviceType is 1, deviceMac can be empty when there is no gateway in the site.
stackIdstringnoDHCP Server Device stackId. Only valid when deviceType is 2 and the selected device is stack
ipOswIpSettingBriefOpenapiVOno(OswIpSettingBriefOpenapiVO not expanded; call omada_get_schema "OswIpSettingBriefOpenapiVO")
modeintegernoDHCP mode. 0: None 1: DHCP Server 2: DHCP Relay. Only valid when deviceType is 2.
vrfIdstringnoVRF ID
dhcpServerOswDhcpServerOpenApiVOno(OswDhcpServerOpenApiVO not expanded; call omada_get_schema "OswDhcpServerOpenApiVO")
dhcpRelayOswDhcpRelayOpenApiVOno(OswDhcpRelayOpenApiVO not expanded; call omada_get_schema "OswDhcpRelayOpenApiVO")
subnetOverrideEnablebooleannoThe switch status of DHCP Settings Overrides.
json
// omada_call_operation
{
  "operationId": "getAutoSelectDevicesWhenModify",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Get auto select devices when modifying network.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getDeliveringProcessWithoutConfig ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/brief-process

Get network delivering process

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID
json
// omada_call_operation
{
  "operationId": "getDeliveringProcessWithoutConfig",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  }
}
Details, permissions and error codes

Get network delivering process
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

checkParamAndGetPreConfigWhenModify ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/check

Check all parameters and generate configuration when modifying the network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID

Request body — application/json (required) — schema ModifyVlanParamOpenApiVO

FieldTypeRequiredDescription
skipEnablebooleannoWhether skip the second step when modify vlan
lanNetworkLanNetworkOpenApiV3VOyes(LanNetworkOpenApiV3VO not expanded; call omada_get_schema "LanNetworkOpenApiV3VO")
deviceConfigSelectPortBindingBriefVOyes(SelectPortBindingBriefVO not expanded; call omada_get_schema "SelectPortBindingBriefVO")
json
// omada_call_operation
{
  "operationId": "checkParamAndGetPreConfigWhenModify",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Check all parameters and generate configuration when modifying the network.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

confirmModifyVlanNetwork ​

PUT /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/confirm

Confirm modify lan network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID

Request body — application/json (required) — schema ModifyVlanParamOpenApiVO

FieldTypeRequiredDescription
skipEnablebooleannoWhether skip the second step when modify vlan
lanNetworkLanNetworkOpenApiV3VOyes(LanNetworkOpenApiV3VO not expanded; call omada_get_schema "LanNetworkOpenApiV3VO")
deviceConfigSelectPortBindingBriefVOyes(SelectPortBindingBriefVO not expanded; call omada_get_schema "SelectPortBindingBriefVO")
json
// omada_call_operation
{
  "operationId": "confirmModifyVlanNetwork",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Confirm modify lan network.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33546 - The number of networks has reached the limit of 4094.
-33547 - The number of VLANs has reached the limit of gateway.
-33548 - The number of VLANs has reached the limit of switch.
-35914 - The number of VLANs configured with the gateway as the DHCP server has reached the limit.

getSelectDevicePortsInfoWhenModify ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/devices/ports

Get the port information of the selected devices when modifying the network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID

Request body — application/json (required) — schema SelectMacsWithVlanVO

FieldTypeRequiredDescription
macsarray<string>yesDevice mac list for Site Setting or device template ID list for Site Template Setting
vlanTypeintegeryesNetwork type, It should be a value as follows : 0:single vlan 1:multi vlan
vlanintegernovlan, only valid when vlanType is 0 (single vlan)
vlansstringnovlans, only valid when vlanType is 1 (multi vlan). VLAN format: 200, 1-100.
json
// omada_call_operation
{
  "operationId": "getSelectDevicePortsInfoWhenModify",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Get the port information of the selected devices when modifying the network.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getDhcpServerInfoForNetwork ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/dhcp-server-info

Get the address pool of the DHCP server under the network and the number of available IPs

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID
json
// omada_call_operation
{
  "operationId": "getDhcpServerInfoForNetwork",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  }
}
Details, permissions and error codes

Get the address pool of the DHCP server under the network and the number of available IPs.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getDhcpServerDevCapForNetwork ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/dhcp-server/capabilities

Get the capabilities of the DHCP server under the network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID
json
// omada_call_operation
{
  "operationId": "getDhcpServerDevCapForNetwork",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  }
}
Details, permissions and error codes

Get the capabilities of the DHCP server under the network.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

checkNetworkParamWhenModify ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/param-check

Check basic parameters when modifying the network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID

Request body — application/json (required) — schema LanNetworkOpenApiV3VO

FieldTypeRequiredDescription
namestringyesLAN network name should contain 1 to 128 characters.
vlanTypeintegernoVLANType should be a value as follows: 0: Single; 1: Multiple
vlansstringnoOnly valid when vlanType is 1 and device type is 0 , 1 or 3. When device type is 0 or 3, batch create single vlan, when deviceType is 1 , create bridge vlan. VLAN format: 200, 1-100.
vlanintegernoOnly Valid when vlanType is 0. Vlan should be within the range of 1-4094.
gatewaySubnetstringnoWhen deviceType is 1, gateway subnet is needed. Format: IP/Mask
dhcpSettingsDhcpSettingConfigno(DhcpSettingConfig not expanded; call omada_get_schema "DhcpSettingConfig")
domainstringnoThe domain of this network
igmpSnoopEnablebooleanyesEnable IGMP snooping
mldSnoopEnablebooleannoEnable MLD snooping
dhcpL2RelayEnablebooleannoThe switch of DHCP L2 relay
dhcpGuardDhcp Servers settingno(Dhcp Servers setting not expanded; call omada_get_schema "Dhcp Servers setting")
dhcpv6GuardDhcpv6 Servers settingno(Dhcpv6 Servers setting not expanded; call omada_get_schema "Dhcpv6 Servers setting")
lanNetworkIpv6ConfigLan network IPV6 configno(Lan network IPV6 config not expanded; call omada_get_schema "Lan network IPV6 config")
arpDetectionEnablebooleannoEnable arp detection. Only valid when deviceType is 1 and gateway supports this feature.
isolationbooleannoWhether network isolated.
qosQueueEnablebooleannoThe switch of QoS queue.
queueIdintegernoQoS queue Id.
deviceTypeintegeryesDHCP Server Device type. It should be a value as follows: 0:External Device 1:gateway 2:switch 3:none
deviceMacstringnoDHCP Server Device mac. Only valid when deviceType is 1 or 2. When deviceType is 1, deviceMac can be empty when there is no gateway in the site.
stackIdstringnoDHCP Server Device stackId. Only valid when deviceType is 2 and the selected device is stack
ipOswIpSettingBriefOpenapiVOno(OswIpSettingBriefOpenapiVO not expanded; call omada_get_schema "OswIpSettingBriefOpenapiVO")
modeintegernoDHCP mode. 0: None 1: DHCP Server 2: DHCP Relay. Only valid when deviceType is 2.
vrfIdstringnoVRF ID
dhcpServerOswDhcpServerOpenApiVOno(OswDhcpServerOpenApiVO not expanded; call omada_get_schema "OswDhcpServerOpenApiVO")
dhcpRelayOswDhcpRelayOpenApiVOno(OswDhcpRelayOpenApiVO not expanded; call omada_get_schema "OswDhcpRelayOpenApiVO")
subnetOverrideEnablebooleannoThe switch status of DHCP Settings Overrides.
json
// omada_call_operation
{
  "operationId": "checkNetworkParamWhenModify",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Check basic parameters when modifying the network.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

checkPortBindingParamWhenModify ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/ports-check

Check port binding when modifying network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID

Request body — application/json (required) — schema SelectPortBindingVO

FieldTypeRequiredDescription
portIsolationEnablebooleannoEnable Port Isolation, only valid when creating network.
flowControlEnablebooleannoEnable Flow Control, only valid when creating network.
tagIdsarray<string>noTag ID List
deviceListarray<PortBindingVO>noDevice List
internetPortsarray<string>noInternet Ports
vlanTypeintegeryesNetwork type, It should be a value as follows : 0:single vlan 1:multi vlan
vlanintegernovlan, only valid when vlanType is 0 (single vlan)
vlansstringnovlans, only valid when vlanType is 1 (multi vlan). VLAN format: 200, 1-100.
assignIpDeviceTypeintegeryesAssign Ip Device Type. It should be a value as follows: 1: gateway 2: switch 0: third-party
assignIpDeviceMacstringnoAssign Ip Device Mac.
assignIpStackIdstringnoAssign Ip Stack Id, only valid when assigned ip device is a stack.
json
// omada_call_operation
{
  "operationId": "checkPortBindingParamWhenModify",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Check port binding when modifying network.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getDeliveringProcess ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/process

Get network delivering process and config

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID
json
// omada_call_operation
{
  "operationId": "getDeliveringProcess",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  }
}
Details, permissions and error codes

Get network delivering process and config
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getSelectStackPortsInfoWhenModify ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/stack/ports

Get the port information of the selected stacks when modifying the network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID

Request body — application/json (required) — schema SelectStacksWithVlanVO

FieldTypeRequiredDescription
stackIdsarray<string>yesStack ID List.
vlanTypeintegeryesNetwork type, It should be a value as follows : 0:single vlan 1:multi vlan
vlanintegernovlan, only valid when vlanType is 0 (single vlan)
vlansstringnovlans, only valid when vlanType is 1 (multi vlan). VLAN format: 200, 1-100.
json
// omada_call_operation
{
  "operationId": "getSelectStackPortsInfoWhenModify",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Get the port information of the selected stacks when modifying the network.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getVlanNetworkDevicePortSupportVlanInfo ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/vlan/{vlan}/device-support-ports

Get device port info on whether support current vlan

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID
vlanpathstringyesVlan ID
json
// omada_call_operation
{
  "operationId": "getVlanNetworkDevicePortSupportVlanInfo",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>",
    "vlan": "<vlan>"
  }
}
Details, permissions and error codes

Get device port info on whether support current vlan
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getVlanNetworkAffectedDevice_1 ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/vlan/{vlan}/devices

Get devices list that use the network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID
vlanpathstringyesVlan ID
json
// omada_call_operation
{
  "operationId": "getVlanNetworkAffectedDevice_1",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>",
    "vlan": "<vlan>"
  }
}
Details, permissions and error codes

Get devices list that use the network
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getGridVlanNetworkAffectedDevicePorts ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/vlan/{vlan}/ports

Get the ports of devices that use the network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID
vlanpathstringyesVlan ID
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getGridVlanNetworkAffectedDevicePorts",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>",
    "vlan": "<vlan>"
  }
}
Details, permissions and error codes

Get the ports of devices that use the network
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getVlanNetworkAffectedSsid_1 ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/{networkId}/vlan/{vlan}/ssids

Get grid ssid list that use the vlan

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID
vlanpathstringyesVlan ID
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getVlanNetworkAffectedSsid_1",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>",
    "vlan": "<vlan>"
  }
}
Details, permissions and error codes

Get grid ssid list that use the vlan
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getAutoEffectDevicesWhenCreate ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/auto-effect-devices

Get auto effect devices when creating network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema LanNetworkOpenApiV3VO

FieldTypeRequiredDescription
namestringyesLAN network name should contain 1 to 128 characters.
vlanTypeintegernoVLANType should be a value as follows: 0: Single; 1: Multiple
vlansstringnoOnly valid when vlanType is 1 and device type is 0 , 1 or 3. When device type is 0 or 3, batch create single vlan, when deviceType is 1 , create bridge vlan. VLAN format: 200, 1-100.
vlanintegernoOnly Valid when vlanType is 0. Vlan should be within the range of 1-4094.
gatewaySubnetstringnoWhen deviceType is 1, gateway subnet is needed. Format: IP/Mask
dhcpSettingsDhcpSettingConfigno(DhcpSettingConfig not expanded; call omada_get_schema "DhcpSettingConfig")
domainstringnoThe domain of this network
igmpSnoopEnablebooleanyesEnable IGMP snooping
mldSnoopEnablebooleannoEnable MLD snooping
dhcpL2RelayEnablebooleannoThe switch of DHCP L2 relay
dhcpGuardDhcp Servers settingno(Dhcp Servers setting not expanded; call omada_get_schema "Dhcp Servers setting")
dhcpv6GuardDhcpv6 Servers settingno(Dhcpv6 Servers setting not expanded; call omada_get_schema "Dhcpv6 Servers setting")
lanNetworkIpv6ConfigLan network IPV6 configno(Lan network IPV6 config not expanded; call omada_get_schema "Lan network IPV6 config")
arpDetectionEnablebooleannoEnable arp detection. Only valid when deviceType is 1 and gateway supports this feature.
isolationbooleannoWhether network isolated.
qosQueueEnablebooleannoThe switch of QoS queue.
queueIdintegernoQoS queue Id.
deviceTypeintegeryesDHCP Server Device type. It should be a value as follows: 0:External Device 1:gateway 2:switch 3:none
deviceMacstringnoDHCP Server Device mac. Only valid when deviceType is 1 or 2. When deviceType is 1, deviceMac can be empty when there is no gateway in the site.
stackIdstringnoDHCP Server Device stackId. Only valid when deviceType is 2 and the selected device is stack
ipOswIpSettingBriefOpenapiVOno(OswIpSettingBriefOpenapiVO not expanded; call omada_get_schema "OswIpSettingBriefOpenapiVO")
modeintegernoDHCP mode. 0: None 1: DHCP Server 2: DHCP Relay. Only valid when deviceType is 2.
vrfIdstringnoVRF ID
dhcpServerOswDhcpServerOpenApiVOno(OswDhcpServerOpenApiVO not expanded; call omada_get_schema "OswDhcpServerOpenApiVO")
dhcpRelayOswDhcpRelayOpenApiVOno(OswDhcpRelayOpenApiVO not expanded; call omada_get_schema "OswDhcpRelayOpenApiVO")
subnetOverrideEnablebooleannoThe switch status of DHCP Settings Overrides.
json
// omada_call_operation
{
  "operationId": "getAutoEffectDevicesWhenCreate",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Get auto effect devices when creating network
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

checkParamAndGetPreConfig ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/check

Check all parameters and generate configuration when creating network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema CreateVlanParamOpenApiVO

FieldTypeRequiredDescription
lanNetworkLanNetworkOpenApiV3VOyes(LanNetworkOpenApiV3VO not expanded; call omada_get_schema "LanNetworkOpenApiV3VO")
deviceConfigSelectPortBindingBriefVOyes(SelectPortBindingBriefVO not expanded; call omada_get_schema "SelectPortBindingBriefVO")
json
// omada_call_operation
{
  "operationId": "checkParamAndGetPreConfig",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Check all parameters and generate configuration when creating network
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getGridAllClients_1 ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/client

Get client list

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
searchKeyquerystringnoFuzzy query parameters, support field
json
// omada_call_operation
{
  "operationId": "getGridAllClients_1",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get all clients.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

confirmCreateVlanNetwork ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/confirm

Confirm create lan network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema CreateVlanParamOpenApiVO

FieldTypeRequiredDescription
lanNetworkLanNetworkOpenApiV3VOyes(LanNetworkOpenApiV3VO not expanded; call omada_get_schema "LanNetworkOpenApiV3VO")
deviceConfigSelectPortBindingBriefVOyes(SelectPortBindingBriefVO not expanded; call omada_get_schema "SelectPortBindingBriefVO")
json
// omada_call_operation
{
  "operationId": "confirmCreateVlanNetwork",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Confirm create lan network
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN ID is already used by the WAN interface.
-33506 - This Profile name already exists.
-33546 - The number of networks has reached the limit of 4094.
-33547 - The number of VLANs has reached the limit of gateway.
-33548 - The number of VLANs has reached the limit of switch.
-35914 - The number of VLANs configured with the gateway as the DHCP server has reached the limit.

getDevicePortSupportVlansInfo ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/device-support-ports

Get device port info on whether support any of current vlans

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema VlanNetworkVlansVO

FieldTypeRequiredDescription
vlanIdsarray<integer>novlan list. The parameter is defined as an array of integers. However, the current implementation accepts non-array inputs (e.g., a single integer or a numeric string) and will treat them as a single-element array. For consistency and future compatibility, please provide `vlanIds` as an array
json
// omada_call_operation
{
  "operationId": "getDevicePortSupportVlansInfo",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Get device port info on whether support any of current vlans
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getGridSupportVlanNetworkDevicesBySite ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/devices

Get devices list that can be dhcp server

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getGridSupportVlanNetworkDevicesBySite",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get devices list that can be dhcp server
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getSelectDevicePortsInfo ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/devices/ports

Get the port information of the selected devices when creating network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema SelectMacsWithVlanVO

FieldTypeRequiredDescription
macsarray<string>yesDevice mac list for Site Setting or device template ID list for Site Template Setting
vlanTypeintegeryesNetwork type, It should be a value as follows : 0:single vlan 1:multi vlan
vlanintegernovlan, only valid when vlanType is 0 (single vlan)
vlansstringnovlans, only valid when vlanType is 1 (multi vlan). VLAN format: 200, 1-100.
json
// omada_call_operation
{
  "operationId": "getSelectDevicePortsInfo",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Get the port information of the selected devices when creating network
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

checkNetworkParamWhenCreate ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/param-check

Check basic parameters when creating network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema LanNetworkOpenApiV3VO

FieldTypeRequiredDescription
namestringyesLAN network name should contain 1 to 128 characters.
vlanTypeintegernoVLANType should be a value as follows: 0: Single; 1: Multiple
vlansstringnoOnly valid when vlanType is 1 and device type is 0 , 1 or 3. When device type is 0 or 3, batch create single vlan, when deviceType is 1 , create bridge vlan. VLAN format: 200, 1-100.
vlanintegernoOnly Valid when vlanType is 0. Vlan should be within the range of 1-4094.
gatewaySubnetstringnoWhen deviceType is 1, gateway subnet is needed. Format: IP/Mask
dhcpSettingsDhcpSettingConfigno(DhcpSettingConfig not expanded; call omada_get_schema "DhcpSettingConfig")
domainstringnoThe domain of this network
igmpSnoopEnablebooleanyesEnable IGMP snooping
mldSnoopEnablebooleannoEnable MLD snooping
dhcpL2RelayEnablebooleannoThe switch of DHCP L2 relay
dhcpGuardDhcp Servers settingno(Dhcp Servers setting not expanded; call omada_get_schema "Dhcp Servers setting")
dhcpv6GuardDhcpv6 Servers settingno(Dhcpv6 Servers setting not expanded; call omada_get_schema "Dhcpv6 Servers setting")
lanNetworkIpv6ConfigLan network IPV6 configno(Lan network IPV6 config not expanded; call omada_get_schema "Lan network IPV6 config")
arpDetectionEnablebooleannoEnable arp detection. Only valid when deviceType is 1 and gateway supports this feature.
isolationbooleannoWhether network isolated.
qosQueueEnablebooleannoThe switch of QoS queue.
queueIdintegernoQoS queue Id.
deviceTypeintegeryesDHCP Server Device type. It should be a value as follows: 0:External Device 1:gateway 2:switch 3:none
deviceMacstringnoDHCP Server Device mac. Only valid when deviceType is 1 or 2. When deviceType is 1, deviceMac can be empty when there is no gateway in the site.
stackIdstringnoDHCP Server Device stackId. Only valid when deviceType is 2 and the selected device is stack
ipOswIpSettingBriefOpenapiVOno(OswIpSettingBriefOpenapiVO not expanded; call omada_get_schema "OswIpSettingBriefOpenapiVO")
modeintegernoDHCP mode. 0: None 1: DHCP Server 2: DHCP Relay. Only valid when deviceType is 2.
vrfIdstringnoVRF ID
dhcpServerOswDhcpServerOpenApiVOno(OswDhcpServerOpenApiVO not expanded; call omada_get_schema "OswDhcpServerOpenApiVO")
dhcpRelayOswDhcpRelayOpenApiVOno(OswDhcpRelayOpenApiVO not expanded; call omada_get_schema "OswDhcpRelayOpenApiVO")
subnetOverrideEnablebooleannoThe switch status of DHCP Settings Overrides.
json
// omada_call_operation
{
  "operationId": "checkNetworkParamWhenCreate",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Check basic parameters when creating network
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

checkPortBindingParamWhenCreate ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/ports-check

Check selected ports when creating network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema SelectPortBindingVO

FieldTypeRequiredDescription
portIsolationEnablebooleannoEnable Port Isolation, only valid when creating network.
flowControlEnablebooleannoEnable Flow Control, only valid when creating network.
tagIdsarray<string>noTag ID List
deviceListarray<PortBindingVO>noDevice List
internetPortsarray<string>noInternet Ports
vlanTypeintegeryesNetwork type, It should be a value as follows : 0:single vlan 1:multi vlan
vlanintegernovlan, only valid when vlanType is 0 (single vlan)
vlansstringnovlans, only valid when vlanType is 1 (multi vlan). VLAN format: 200, 1-100.
assignIpDeviceTypeintegeryesAssign Ip Device Type. It should be a value as follows: 1: gateway 2: switch 0: third-party
assignIpDeviceMacstringnoAssign Ip Device Mac.
assignIpStackIdstringnoAssign Ip Stack Id, only valid when assigned ip device is a stack.
json
// omada_call_operation
{
  "operationId": "checkPortBindingParamWhenCreate",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Check selected ports when creating network
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getNetworksWithServersForReservation ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/server-for-reservation

Get all networks that can reserve IP addresses and their corresponding servers

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getNetworksWithServersForReservation",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get all networks that can reserve IP addresses and their corresponding servers.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getSelectStackPortsInfo ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/stack/ports

Get the port information of the selected stacks when creating network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema SelectStacksWithVlanVO

FieldTypeRequiredDescription
stackIdsarray<string>yesStack ID List.
vlanTypeintegeryesNetwork type, It should be a value as follows : 0:single vlan 1:multi vlan
vlanintegernovlan, only valid when vlanType is 0 (single vlan)
vlansstringnovlans, only valid when vlanType is 1 (multi vlan). VLAN format: 200, 1-100.
json
// omada_call_operation
{
  "operationId": "getSelectStackPortsInfo",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Get the port information of the selected stacks when creating network
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getOswForGivenLanNetworkIds ​

POST /openapi/v1/{omadacId}/sites/{siteId}/networks/switches

Get LAN network list

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema QueryOswDateByNetworkVO

FieldTypeRequiredDescription
currentPageintegerno
currentPageSizeintegerno
sortsobjectno
searchKeystringno
filtersobjectno
searchFieldstringno
multiSearchMapobjectno
asyncColumnsstringno
lanNetworkIdsarray<string>no
json
// omada_call_operation
{
  "operationId": "getOswForGivenLanNetworkIds",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Get LAN network list.(Pagination)
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getGridVlans ​

GET /openapi/v1/{omadacId}/sites/{siteId}/networks/vlans

Get the networks whose purpose is vlan

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
searchKeyquerystringnoFuzzy query parameters, support field name
json
// omada_call_operation
{
  "operationId": "getGridVlans",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get the networks whose purpose is vlan
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getAvailableVirtualWan ​

GET /openapi/v1/{omadacId}/sites/{siteId}/setting/available-virtual-wans

Query available virtual WAN list

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getAvailableVirtualWan",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Query available virtual WAN list.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only
Device Config Page View Only
Site Device Manager View Only

getGridLanDns ​

GET /openapi/v1/{omadacId}/sites/{siteId}/setting/lan/dns

Get LAN DNS list

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getGridLanDns",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get LAN DNS list.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

createLanDns ​

POST /openapi/v1/{omadacId}/sites/{siteId}/setting/lan/dns

Create a LAN DNS rule

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema LanDnsOpenApiVO

FieldTypeRequiredDescription
enablebooleanyesoff:false, on: true
namestringyesName of Lan Dns Item
domainstringyesEnter the domain name.
aliasesarray<string>noIf a server provides different services and has multiple domain names, you can configure them in the Alias Domain Name.
typeintegeryesThere are three options, IP:0, CNAME:1, and FORWARD:2.
ipAddressesarray<string>noWhen the Type is IP, it is the IPv4 address of the returned DNS response.
ipv6Addressesarray<string>noWhen the Type is IP, it is the IPv6 address of the returned DNS response.
cnamestringnoWhen Type is CNAME, set the domain name to which Domain Name and Alias Domain Name need to be mapped.
dnsServersarray<string>noWhen the Type is FORWARD, set the Domain Name and Alias Domain Name to be forwarded to a specific DNS Server, up to two DNS Servers can be configured.
lanNetworkIdsarray<string>noThe ids of Lan Network. When the Type is IP or CNAME, it is the LAN network to which the rule applies.
customTtlbooleannoWhen custom TTL is activated, TTL will take effect as custom value. Otherwise, TTL will take effect as default(3600).
ttlintegernoThe amount of time DNS information is allowed to be cached. The range of TTL should be 1-86400. It is recommended to use the default TTL for each record.
json
// omada_call_operation
{
  "operationId": "createLanDns",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Create a LAN DNS rule.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35300 - The LAN DNS does not exist.
-35301 - The number of LAN DNS entries has reached the limit.
-35302 - The configured IP addresses has reached the limit.
-35305 - IP address cannot be empty.
-35306 - There are duplicate IPv4 addresses.
-35307 - There are duplicate IPv6 addresses.
-35308 - CNAME cannot be empty.
-35309 - DNS server cannot be empty.
-35310 - There are duplicate DNS servers.
-35311 - Domain name and alias are duplicate.
-35312 - The gateway does not support LAN DNS.
-35313 - The gateway does not support configuring TTL in LAN DNS.

deleteLanDns ​

DELETE /openapi/v1/{omadacId}/sites/{siteId}/setting/lan/dns/{dnsId}

Delete an existing LAN DNS rule

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
dnsIdpathstringyesLAN DNS ID
json
// omada_call_operation
{
  "operationId": "deleteLanDns",
  "params": {
    "siteId": "<siteId>",
    "dnsId": "<dnsId>"
  }
}
Details, permissions and error codes

Delete an existing LAN DNS rule.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35300 - The LAN DNS does not exist.
-35301 - The number of LAN DNS entries has reached the limit.
-35302 - The configured IP addresses has reached the limit.
-35305 - IP address cannot be empty.
-35306 - There are duplicate IPv4 addresses.
-35307 - There are duplicate IPv6 addresses.
-35308 - CNAME cannot be empty.
-35309 - DNS server cannot be empty.
-35310 - There are duplicate DNS servers.
-35311 - Domain name and alias are duplicate.

modifyLanDns ​

PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/lan/dns/{dnsId}

Modify an existing LAN DNS rule

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
dnsIdpathstringyesLAN DNS ID

Request body — application/json (required) — schema LanDnsOpenApiVO

FieldTypeRequiredDescription
enablebooleanyesoff:false, on: true
namestringyesName of Lan Dns Item
domainstringyesEnter the domain name.
aliasesarray<string>noIf a server provides different services and has multiple domain names, you can configure them in the Alias Domain Name.
typeintegeryesThere are three options, IP:0, CNAME:1, and FORWARD:2.
ipAddressesarray<string>noWhen the Type is IP, it is the IPv4 address of the returned DNS response.
ipv6Addressesarray<string>noWhen the Type is IP, it is the IPv6 address of the returned DNS response.
cnamestringnoWhen Type is CNAME, set the domain name to which Domain Name and Alias Domain Name need to be mapped.
dnsServersarray<string>noWhen the Type is FORWARD, set the Domain Name and Alias Domain Name to be forwarded to a specific DNS Server, up to two DNS Servers can be configured.
lanNetworkIdsarray<string>noThe ids of Lan Network. When the Type is IP or CNAME, it is the LAN network to which the rule applies.
customTtlbooleannoWhen custom TTL is activated, TTL will take effect as custom value. Otherwise, TTL will take effect as default(3600).
ttlintegernoThe amount of time DNS information is allowed to be cached. The range of TTL should be 1-86400. It is recommended to use the default TTL for each record.
json
// omada_call_operation
{
  "operationId": "modifyLanDns",
  "params": {
    "siteId": "<siteId>",
    "dnsId": "<dnsId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify an existing LAN DNS rule.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35300 - The LAN DNS does not exist.
-35301 - The number of LAN DNS entries has reached the limit.
-35302 - The configured IP addresses has reached the limit.
-35305 - IP address cannot be empty.
-35306 - There are duplicate IPv4 addresses.
-35307 - There are duplicate IPv6 addresses.
-35308 - CNAME cannot be empty.
-35309 - DNS server cannot be empty.
-35310 - There are duplicate DNS servers.
-35311 - Domain name and alias are duplicate.
-35312 - The gateway does not support LAN DNS.
-35313 - The gateway does not support configuring TTL in LAN DNS.

getSpeedTestV2Setting ​

GET /openapi/v1/{omadacId}/sites/{siteId}/setting/speedTest

Get SpeedTest Setting

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "getSpeedTestV2Setting",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get SpeedTest Setting.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

modifySpeedTestV2Setting ​

POST /openapi/v1/{omadacId}/sites/{siteId}/setting/speedTest

Modify SpeedTest Setting

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema ModifySpeedTestV2SettingOpenApiVO

FieldTypeRequiredDescription
autoSpeedTestbooleanyesWhether enable scheduled speed testing.
timingTypeintegernoThe timing type of speed test setting: 1:Daily, 2:Weekly, 3:Monthly.
hourintegernoStart time of speed test(unit: hour); It should be within the range of 0~23.
minuteintegernoStart time of speed test(unit: minute); It should be within the range of 0~59.
dayOfWeekarray<integer>noIt is required when [timingType] is 2. The value should be within the range of 0(Sunday)~6(Saturday).
dayOfMontharray<integer>noIt is required when [timingType] is 3. The value should be within the range of 1~31.
json
// omada_call_operation
{
  "operationId": "modifySpeedTestV2Setting",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify SpeedTest Setting.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify

getGridVirtualWan ​

GET /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans

Query virtual WAN list

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getGridVirtualWan",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Query virtual WAN list.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

createVirtualWan ​

POST /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans

Create virtual WAN

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema VirtualWanConfigOpenApiVO

FieldTypeRequiredDescription
namestringyesVirtual WAN name should contain 1 to 128 characters. Only letters, digits and underscores are allowed.
physicalWanIdstringyesPhysical WAN ID. Physical WAN ID can be obtained from 'Get internet basic info' interface. Physical WAN ID. Physical WAN ID can be obtained from 'Get internet basic info' interface. Only DSL WAN, Ethernet WAN, and SFP WAN support virtual WAN configuration.
virtualWanIpv4SettingVirtualWanIpv4SettingConfigOpenApiVOyes(VirtualWanIpv4SettingConfigOpenApiVO not expanded; call omada_get_schema "VirtualWanIpv4SettingConfigOpenApiVO")
virtualWanDslVirtualWanDslOpenApiVOno(VirtualWanDslOpenApiVO not expanded; call omada_get_schema "VirtualWanDslOpenApiVO")
wanPortMacSettingVirtualWanMacSettingOpenApiVOno(VirtualWanMacSettingOpenApiVO not expanded; call omada_get_schema "VirtualWanMacSettingOpenApiVO")
json
// omada_call_operation
{
  "operationId": "createVirtualWan",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Create virtual WAN.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33474 - This feature is not supported for the DS-Lite or Map-E WAN connection types.
-44701 - This VLAN ID is already used by the Virtual WAN interface.
-44702 - Duplicate names of the virtual WAN.
-44703 - When no gateway is adopted, at most 3 virtual WAN ports can be added.
-44704 - The number of enabled WAN ports and virtual WAN ports cannot exceed the number of WAN ports plus 3.
-44705 - At most 3 virtual WAN ports can be mapped to each WAN port.
-44706 - DSL setting cannot be null when DSL WAN is selected.
-44707 - The gateway does not support MssClamping in Virtual WAN.
-44708 - The gateway does not support DHCP Options in Virtual WAN.
-44709 - The gateway does not support PppoeMru in Virtual WAN.
-44710 - The gateway does not support DslMer in Virtual WAN.
-44711 - The gateway does not support Virtual WAN.
-44712 - The gateway only support DSL WAN.

deleteVirtualWan_1 ​

DELETE /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans/{virtualWanId}

Delete virtual WAN

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
virtualWanIdpathstringyesVirtual WAN ID
json
// omada_call_operation
{
  "operationId": "deleteVirtualWan_1",
  "params": {
    "siteId": "<siteId>",
    "virtualWanId": "<virtualWanId>"
  }
}
Details, permissions and error codes

Delete virtual WAN.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify

modifyVirtualWan ​

PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans/{virtualWanId}

Modify virtual WAN

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
virtualWanIdpathstringyesVirtual WAN ID

Request body — application/json (required) — schema VirtualWanConfigOpenApiVO

FieldTypeRequiredDescription
namestringyesVirtual WAN name should contain 1 to 128 characters. Only letters, digits and underscores are allowed.
physicalWanIdstringyesPhysical WAN ID. Physical WAN ID can be obtained from 'Get internet basic info' interface. Physical WAN ID. Physical WAN ID can be obtained from 'Get internet basic info' interface. Only DSL WAN, Ethernet WAN, and SFP WAN support virtual WAN configuration.
virtualWanIpv4SettingVirtualWanIpv4SettingConfigOpenApiVOyes(VirtualWanIpv4SettingConfigOpenApiVO not expanded; call omada_get_schema "VirtualWanIpv4SettingConfigOpenApiVO")
virtualWanDslVirtualWanDslOpenApiVOno(VirtualWanDslOpenApiVO not expanded; call omada_get_schema "VirtualWanDslOpenApiVO")
wanPortMacSettingVirtualWanMacSettingOpenApiVOno(VirtualWanMacSettingOpenApiVO not expanded; call omada_get_schema "VirtualWanMacSettingOpenApiVO")
json
// omada_call_operation
{
  "operationId": "modifyVirtualWan",
  "params": {
    "siteId": "<siteId>",
    "virtualWanId": "<virtualWanId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify virtual WAN.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33474 - This feature is not supported for the DS-Lite or Map-E WAN connection types.
-44700 - This virtual WAN does not exist.
-44701 - This VLAN ID is already used by the Virtual WAN interface.
-44702 - Duplicate names of the virtual WAN.
-44703 - When no gateway is adopted, at most 3 virtual WAN ports can be added.
-44704 - The number of enabled WAN ports and virtual WAN ports cannot exceed the number of WAN ports plus 3.
-44705 - At most 3 virtual WAN ports can be mapped to each WAN port.
-44706 - DSL setting cannot be null when DSL WAN is selected.
-44707 - The gateway does not support MssClamping in Virtual WAN.
-44708 - The gateway does not support DHCP Options in Virtual WAN.
-44709 - The gateway does not support PppoeMru in Virtual WAN.
-44710 - The gateway does not support DslMer in Virtual WAN.
-44711 - The gateway does not support Virtual WAN.
-44712 - The gateway only support DSL WAN.

modifyVirtualWanStatus ​

PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans/{virtualWanId}/status

Modify virtual WAN status

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
virtualWanIdpathstringyesVirtual WAN ID

Request body — application/json (required) — schema VirtualWanStatusOpenApiVO

FieldTypeRequiredDescription
statusbooleanyesThe status of virtual WAN, valid values are true or false.
json
// omada_call_operation
{
  "operationId": "modifyVirtualWanStatus",
  "params": {
    "siteId": "<siteId>",
    "virtualWanId": "<virtualWanId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify virtual WAN status.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33474 - This feature is not supported for the DS-Lite or Map-E WAN connection types.
-44700 - This virtual WAN does not exist.

checkVirtualWanUsed_1 ​

GET /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans/delete-check

Check Virtual Wan Used

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
virtualWanIdquerystringyesVirtual WAN ID
json
// omada_call_operation
{
  "operationId": "checkVirtualWanUsed_1",
  "params": {
    "siteId": "<siteId>",
    "virtualWanId": "<virtualWanId>"
  }
}
Details, permissions and error codes

check configurations who have used current virtualWan
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getAvailableWanPorts_1 ​

GET /openapi/v1/{omadacId}/sites/{siteId}/setting/wan-ports

Get available wan ports

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
functionqueryintegeryesfunction used for wan ports query. 0: ACL, 1: QOS, 2: IP_MAC_BLINDING, 3: IGMP_PROXY, 4: VIRTUAL_WAN, 5: PORT_FROWARDING, 6: OTONAT, 7: BANDWIDTH_CONTROL, 8: STATIC_ROUTING, 9: POLICY_ROUTING, 10: VPN, 11: SSL_VPN, 12: DDNS, 13: UPNP, 14: MLD, 15: LAN
json
// omada_call_operation
{
  "operationId": "getAvailableWanPorts_1",
  "params": {
    "siteId": "<siteId>",
    "function": "<function>"
  }
}
Details, permissions and error codes

Get available wan ports
The interface requires one of the permissions:
Site Settings Manager View Only
Device Config Page View Only
Site Device Manager View Only

modifyWanPorts ​

PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/wan-ports

Modify Wan Ports

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema WanPortsOpenApiVO

FieldTypeRequiredDescription
enablebooleanyeswhether to enable wan Settings Override
preOsgModelintegernoselect gateway model, you can query option from 'Get supported gateway model list for pre-configuration'. If already choose or adopted gateway,use current gateway model id.
wanPortNumintegernocustom number of wan ports, only for preOsgModel at 2
portUuidsarray<string>noselect wan ports to open, and other wan ports will be closed, you can get port uuid list from 'Get internet basic info'.
forceChangebooleannoForce change wan ports. If set true, wan ports will be modified without check, and the gateway will reboot. If set false, consequence will be checked and return check result.
json
// omada_call_operation
{
  "operationId": "modifyWanPorts",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

modify wan ports, Note that modify wan ports will cause gateway reboot.
The interface requires one of the permissions:
Site Settings Manager Modify
Device Config Page Modify
Site Device Manager Modify

getAllValidVlansInSiteForSwitchOuiBasedVlan_1 ​

GET /openapi/v1/{omadacId}/sites/{siteId}/switch-oui-rules/valid-vlans

Get valid vlanList for switch oui based vlan

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getAllValidVlansInSiteForSwitchOuiBasedVlan_1",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get valid vlanList for switch oui based vlan
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

checkWanLanStatus_1 ​

GET /openapi/v1/{omadacId}/sites/{siteId}/wan-lan-status

Check WAN-LAN status

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
json
// omada_call_operation
{
  "operationId": "checkWanLanStatus_1",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get gateway basic info and WAN/LAN list. Use this API to operate "LanNetwork".
The interface requires one of the permissions:
Site Settings Manager View Only
Device Config Page View Only
Site Device Manager View Only

getWanPortsMaxSpeed_1 ​

GET /openapi/v1/{omadacId}/sites/{siteId}/wan-max-speed

Get wan ports max speed

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
wanIdquerystringyesWanId, can pass multiple wan ports using comma separator like '{portId1},{portId2}'.
json
// omada_call_operation
{
  "operationId": "getWanPortsMaxSpeed_1",
  "params": {
    "siteId": "<siteId>",
    "wanId": "<wanId>"
  }
}
Details, permissions and error codes

Get max speed for certain wan ports,if ports doesn't exist, this interface will return default result
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

startBandScan ​

POST /openapi/v1/{omadacId}/sites/{siteId}/wan/networks/band-scan

Start Band scan

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema BandScanStart

FieldTypeRequiredDescription
portUuidstringyesThe ID of the port.
simCardintegernoWhen the device supports Dual-SIM card, parameter [simCard] should not be null.1: SIM1; 2: SIM2.
modeintegernoBand mode. 1: 4G scan; 2: 5G scan.
json
// omada_call_operation
{
  "operationId": "startBandScan",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Start band scan.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33411 - Current gateway is not connected.
-33439 - Current site has already had a band scan progress.

getSimCardBandScanResult ​

GET /openapi/v1/{omadacId}/sites/{siteId}/wan/networks/band-scan/{portUuid}/{simCard}

Obtain the bandScan result of the corresponding SIM card

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
portUuidpathstringyesThe ID of the port.
simCardpathstringyesSIM card. 1: SIM1; 2: SIM2.
json
// omada_call_operation
{
  "operationId": "getSimCardBandScanResult",
  "params": {
    "siteId": "<siteId>",
    "portUuid": "<portUuid>",
    "simCard": "<simCard>"
  }
}
Details, permissions and error codes

Obtain the bandScan result of the corresponding SIM card.
The interface requires one of the permissions:
Site Dashboard Manager View Only
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33438 - No band scan cache.
-35413 - The device does not support this SIM card.

startIspScan ​

POST /openapi/v1/{omadacId}/sites/{siteId}/wan/networks/isp-scan

Start Isp scan

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema IspScanStartOpenApiVO

FieldTypeRequiredDescription
portUuidstringyesThe ID of the port.
simCardintegernoWhen the device supports Dual-SIM card, parameter [simCard] should not be null.1: SIM1; 2: SIM2.
json
// omada_call_operation
{
  "operationId": "startIspScan",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Start ISP scan.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33411 - Current gateway is not connected.
-33439 - Current site has already had a band scan progress.

getSimCardIspScanResult ​

GET /openapi/v1/{omadacId}/sites/{siteId}/wan/networks/isp-scan/{portUuid}/{simCard}

Obtain the ispScan result of the corresponding SIM card

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
portUuidpathstringyesThe ID of the port.
simCardpathstringyesSIM card. 1: SIM1; 2: SIM2.
json
// omada_call_operation
{
  "operationId": "getSimCardIspScanResult",
  "params": {
    "siteId": "<siteId>",
    "portUuid": "<portUuid>",
    "simCard": "<simCard>"
  }
}
Details, permissions and error codes

Obtain the ispScan result of the corresponding SIM card.
The interface requires one of the permissions:
Site Dashboard Manager View Only
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33440 - No ISP scan cache.
-35413 - The device does not support this SIM card.

modifyWanPortSettings ​

PATCH /openapi/v1/{omadacId}/sites/{siteId}/wan/networks/port-setting

Modify Wan Port Settings

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema InternetPortOpenApiVO

FieldTypeRequiredDescription
typeintegeryesThe Type of the Internet port as follows: 0: WAN; 1: USB; 2: LTE; 3: DSL.
wanPortSettingWanPortSettingOpenApiVOno(WanPortSettingOpenApiVO not expanded; call omada_get_schema "WanPortSettingOpenApiVO")
usbLteSettingUsbLteSettingOpenApiVOno(UsbLteSettingOpenApiVO not expanded; call omada_get_schema "UsbLteSettingOpenApiVO")
lteWanSettingLteWanSettingOpenApiVOno(LteWanSettingOpenApiVO not expanded; call omada_get_schema "LteWanSettingOpenApiVO")
json
// omada_call_operation
{
  "operationId": "modifyWanPortSettings",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify Wan Port Settings.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33400 - Current site has no WAN.
-33411 - Current gateway is not connected.
-33442 - Unable to change WAN settings. Please enable the internet override function first.

obtainWanUnsupportedFunction ​

GET /openapi/v1/{omadacId}/sites/{siteId}/wan/networks/unsupportedFunction

Get linkage functions that are not supported by WAN

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
filterqueryintegerno1: Obtain the functions that are not supported when you configure DS-Lite and MAP-E dial-up for IPv4 on the WAN port.
json
// omada_call_operation
{
  "operationId": "obtainWanUnsupportedFunction",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get linkage functions that are not supported by WAN.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only
Device Config Page View Only

getLanNetworkListV2 ​

GET /openapi/v2/{omadacId}/sites/{siteId}/lan-networks

Get LAN network list

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getLanNetworkListV2",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get LAN network list.(Pagination)
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

createLanNetworkV2 ​

POST /openapi/v2/{omadacId}/sites/{siteId}/lan-networks

Deprecated

This operation is deprecated.

Create LAN network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema LanNetworkOpenApiV2VO

FieldTypeRequiredDescription
namestringyesLAN network name should contain 1 to 128 characters.
purposeintegeryesLAN network purpose should be a value as follows: 0: VLAN; 1: interface
interfaceIdsarray<string>noGateway LAN port IDs, which are acquired from "Check WAN/LAN status"
vlanTypeintegernoWhen purpose is interface, VLANType should be a value as follows: 0: Single; 1: Multiple
vlansstringnoWhen purpose is "interface" and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100.
vlanintegernoOnly Valid when vlanType is 0. Vlan should be within the range of 1-4094.
applicationintegernoEffective device type should be a value as follows: 0: Gateway and Switch; 1: Switch
gatewaySubnetstringnoWhen purpose is interface, gateway subnet is needed. Format: IP/Mask
dhcpSettingsVODhcpSettingConfigno(DhcpSettingConfig not expanded; call omada_get_schema "DhcpSettingConfig")
domainstringnoThe domain of this network
igmpSnoopEnablebooleanyesEnable IGMP snooping
mldSnoopEnablebooleannoEnable MLD snooping
dhcpL2RelayEnablebooleannoThe switch of DHCP L2 relay
dhcpGuardDhcp Servers settingno(Dhcp Servers setting not expanded; call omada_get_schema "Dhcp Servers setting")
dhcpv6GuardDhcpv6 Servers settingno(Dhcpv6 Servers setting not expanded; call omada_get_schema "Dhcpv6 Servers setting")
lanNetworkIpv6ConfigLan network IPV6 configno(Lan network IPV6 config not expanded; call omada_get_schema "Lan network IPV6 config")
allLanbooleannoWhen Internet pre-config is closed or Internet pre-config is Universal, allLAN is "true"; after adopting gateway, allLAN is "false".
qosQueueEnablebooleannoThe switch of QoS queue.
queueIdintegernoQoS queue Id.
subnetOverrideEnablebooleannoThe switch status of DHCP Settings Overrides.
json
// omada_call_operation
{
  "operationId": "createLanNetworkV2",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Create lan network. This interface has been deprecated. Please use the following interface instead: Confirm create lan network
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN ID is already used by the WAN interface.
-33506 - This Profile name already exists.
-33544 - The number of interfaces has reached the limit.
-33546 - The number of networks has reached the limit of 4094.
-33547 - The number of VLANs has reached the limit of gateway.
-33548 - The number of VLANs has reached the limit of switch.
-33580 - The device does not support multiple VLANs.
-33581 - The device does not support RA.
-33582 - The device does not support custom DHCP Options.
-33583 - The device does not support DHCP Next Server.
-33584 - The device does not support ARP Detection.

modifyLanNetworkV2 ​

PATCH /openapi/v2/{omadacId}/sites/{siteId}/lan-networks/{networkId}

Modify LAN network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
networkIdpathstringyesNetwork ID

Request body — application/json (required) — schema LanNetworkOpenApiV2VO

FieldTypeRequiredDescription
namestringyesLAN network name should contain 1 to 128 characters.
purposeintegeryesLAN network purpose should be a value as follows: 0: VLAN; 1: interface
interfaceIdsarray<string>noGateway LAN port IDs, which are acquired from "Check WAN/LAN status"
vlanTypeintegernoWhen purpose is interface, VLANType should be a value as follows: 0: Single; 1: Multiple
vlansstringnoWhen purpose is "interface" and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100.
vlanintegernoOnly Valid when vlanType is 0. Vlan should be within the range of 1-4094.
applicationintegernoEffective device type should be a value as follows: 0: Gateway and Switch; 1: Switch
gatewaySubnetstringnoWhen purpose is interface, gateway subnet is needed. Format: IP/Mask
dhcpSettingsVODhcpSettingConfigno(DhcpSettingConfig not expanded; call omada_get_schema "DhcpSettingConfig")
domainstringnoThe domain of this network
igmpSnoopEnablebooleanyesEnable IGMP snooping
mldSnoopEnablebooleannoEnable MLD snooping
dhcpL2RelayEnablebooleannoThe switch of DHCP L2 relay
dhcpGuardDhcp Servers settingno(Dhcp Servers setting not expanded; call omada_get_schema "Dhcp Servers setting")
dhcpv6GuardDhcpv6 Servers settingno(Dhcpv6 Servers setting not expanded; call omada_get_schema "Dhcpv6 Servers setting")
lanNetworkIpv6ConfigLan network IPV6 configno(Lan network IPV6 config not expanded; call omada_get_schema "Lan network IPV6 config")
allLanbooleannoWhen Internet pre-config is closed or Internet pre-config is Universal, allLAN is "true"; after adopting gateway, allLAN is "false".
qosQueueEnablebooleannoThe switch of QoS queue.
queueIdintegernoQoS queue Id.
subnetOverrideEnablebooleannoThe switch status of DHCP Settings Overrides.
json
// omada_call_operation
{
  "operationId": "modifyLanNetworkV2",
  "params": {
    "siteId": "<siteId>",
    "networkId": "<networkId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify LAN network
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN ID is already used by the WAN interface.
-33503 - This network does not exist.
-33506 - This Profile name already exists.
-33527 - The interface of Default LAN cannot be modified.
-33544 - The number of interfaces has reached the limit.
-33545 - The VLAN Type of Default LAN cannot be modified.
-33580 - The device does not support multiple VLANs.
-33581 - The device does not support RA.
-33582 - The device does not support custom DHCP Options.
-33583 - The device does not support DHCP Next Server.
-33584 - The device does not support ARP Detection.
-34235 - The VLAN cannot be set to 1 since it is used in OUI Based VLAN rules which do not allow VLAN 1.

batchIsolateLanNetwork_1 ​

POST /openapi/v2/{omadacId}/sites/{siteId}/lan-networks/batch-isolate

Batch isolate network

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema BatchIsolateInterfaceOpenApiVO

FieldTypeRequiredDescription
idsarray<string>noA list of network Id which is selected to isolate or de-isolate.
isolationbooleannoThe isolation status after batch isolate or de-isolate.
selectAllbooleannoWhether select all networks.
json
// omada_call_operation
{
  "operationId": "batchIsolateLanNetwork_1",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Batch isolate network.
The interface requires one of the permissions:
Site Settings Manager Modify
Network Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
0 - Success.
-1001 - Invalid request parameters.
-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.
-33507 - This profile does not exist.

getInterfaceLanNetworkV2 ​

GET /openapi/v2/{omadacId}/sites/{siteId}/lan-networks/interface

Get all "single"/"multi" interface lan network V2

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
typequeryintegernoInterface vlan type. When "type" is 0, return "single" interface lan network, else return "single"/"multi" interface lan network
json
// omada_call_operation
{
  "operationId": "getInterfaceLanNetworkV2",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get all "single"/"multi" interface lan network V2
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only
Device Config Page View Only
Site Device Manager View Only
Site Tools Manager View Only
Site Insight Manager View Only
Site Clients Manager View Only

getAllInterfacesForBatchIsolate_1 ​

GET /openapi/v2/{omadacId}/sites/{siteId}/lan-networks/isolate/interfaces

Get interface List

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
searchKeyquerystringnoFuzzy query parameters, support field
isolation_filterqueryintegernonon-isolation set 0; isolation set 1; don't filter isolation vlan set 2.
json
// omada_call_operation
{
  "operationId": "getAllInterfacesForBatchIsolate_1",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get interface List.
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

getOswLanProfileList ​

GET /openapi/v2/{omadacId}/sites/{siteId}/lan-profiles

Get switch profile list

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getOswLanProfileList",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get switch profile list.
The interface requires one of the permissions:
Site Settings Manager View Only
Device Config Page View Only

createOswLanProfile ​

POST /openapi/v2/{omadacId}/sites/{siteId}/lan-profiles

Create new switch profile

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)

Request body — application/json (required) — schema LanProfileSettingOpenApiVO

FieldTypeRequiredDescription
namestringyesName should contain 1 to 128 characters.
poeintegeryesPoE should be a value as follows: 0: off, 1: on, 2: "do not modify"
vlanConfigEnablebooleannoVlan configuration enable status
networkTagsSettingintegernonetwork Tags configuration mode should be a value as follows: 0:allow all, 1:block all, 2:custom
nativeNetworkIdstringnoNative Network ID, Native Network cannot be selected from Tagged Networks or Untagged Networks.
nativeBridgeVlanintegernoNative Network Bridge Vlan.
tagNetworkIdsarray<string>noTag Network IDs
tagBridgeVlanMapobjectnoTag Network Bridge Vlan Map
untagNetworkIdsarray<string>noUntag Network IDs
untagBridgeVlanMapobjectnoUntag Network Bridge Vlan Map
voiceNetworkEnablebooleannoIndicates whether voice network is enabled
voiceNetworkIdstringnoVoice Network ID
voiceBridgeVlanintegernoVoice Network Bridge Vlan
voiceDscpEnablebooleannoIndicates whether voice DSCP is enabled
voiceDscpintegernoVoice DSCP
esEnablebooleannoES enable status
esTaggedModifiedbooleannoIndicates whether ES Tagged is modified
esEnableTaggedNetworkIdsarray<string>noES enable tagged network ids
dot1xintegeryesDot1x should be a value as follows: 0: force unauthorized, 1: force authorized, 2:auto
portIsolationEnablebooleanyesPort-isolation enable status
lldpMedEnablebooleanyesLLDP-MED enable status
bandWidthCtrlTypeintegeryesBandWidthCtrlType should be a value as follows: 0: off, 1: rate limit, 2: storming control
stormCtrlStormCtrlVOno(StormCtrlVO not expanded; call omada_get_schema "StormCtrlVO")
bandCtrlBandCtrlVOno(BandCtrlVO not expanded; call omada_get_schema "BandCtrlVO")
spanningTreeEnablebooleanyesSpanningTree enable status
spanningTreeSettingSpanningTreeSettingVOno(SpanningTreeSettingVO not expanded; call omada_get_schema "SpanningTreeSettingVO")
loopbackDetectEnablebooleanyesLoopbackDetect enable status
eeeEnablebooleannoEEE enable status
flowControlEnablebooleannoFlowControl enable status
loopbackDetectVlanBasedEnablebooleannoLoopbackDetectVLANBased enable status
igmpFastLeaveEnablebooleannoIndicates whether igmp fast leave is enabled
mldFastLeaveEnablebooleannoIndicates whether mld fast leave is enabled
dhcpL2RelaySettingsDhcpL2RelayVOno(DhcpL2RelayVO not expanded; call omada_get_schema "DhcpL2RelayVO")
fastLeaveEnablebooleannoIGMP Snooping fast leave enable status
dot1pPriorityintegerno802.1p Priority
trustModeintegernoTrust mode
json
// omada_call_operation
{
  "operationId": "createOswLanProfile",
  "params": {
    "siteId": "<siteId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Create new switch profile.
The interface requires one of the permissions:
Site Settings Manager Modify
Device Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
0 - Success.
-1001 - Invalid request parameters.
-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.

deleteOswLanProfile ​

DELETE /openapi/v2/{omadacId}/sites/{siteId}/lan-profiles/{profileId}

Delete an existing switch profile

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
profileIdpathstringyesSwitch profile ID
json
// omada_call_operation
{
  "operationId": "deleteOswLanProfile",
  "params": {
    "siteId": "<siteId>",
    "profileId": "<profileId>"
  }
}
Details, permissions and error codes

Delete an existing switch profile. If returns -33560, use "Query Agile Series switch that used the profile" to query these Agile Series witches.
The interface requires one of the permissions:
Site Settings Manager Modify
Device Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
0 - Success.
-1001 - Invalid request parameters.
-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.
-33507 - This profile does not exist.
-33560 - The Agile Series Switch has been configured with this profile. Cannot delete the profile or turn off the option "Agile Series Switch Enabled".

modifyOswLanProfile ​

PATCH /openapi/v2/{omadacId}/sites/{siteId}/lan-profiles/{profileId}

Modify a switch profile

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
profileIdpathstringyesSwitch profile ID

Request body — application/json (required) — schema LanProfileSettingOpenApiVO

FieldTypeRequiredDescription
namestringyesName should contain 1 to 128 characters.
poeintegeryesPoE should be a value as follows: 0: off, 1: on, 2: "do not modify"
vlanConfigEnablebooleannoVlan configuration enable status
networkTagsSettingintegernonetwork Tags configuration mode should be a value as follows: 0:allow all, 1:block all, 2:custom
nativeNetworkIdstringnoNative Network ID, Native Network cannot be selected from Tagged Networks or Untagged Networks.
nativeBridgeVlanintegernoNative Network Bridge Vlan.
tagNetworkIdsarray<string>noTag Network IDs
tagBridgeVlanMapobjectnoTag Network Bridge Vlan Map
untagNetworkIdsarray<string>noUntag Network IDs
untagBridgeVlanMapobjectnoUntag Network Bridge Vlan Map
voiceNetworkEnablebooleannoIndicates whether voice network is enabled
voiceNetworkIdstringnoVoice Network ID
voiceBridgeVlanintegernoVoice Network Bridge Vlan
voiceDscpEnablebooleannoIndicates whether voice DSCP is enabled
voiceDscpintegernoVoice DSCP
esEnablebooleannoES enable status
esTaggedModifiedbooleannoIndicates whether ES Tagged is modified
esEnableTaggedNetworkIdsarray<string>noES enable tagged network ids
dot1xintegeryesDot1x should be a value as follows: 0: force unauthorized, 1: force authorized, 2:auto
portIsolationEnablebooleanyesPort-isolation enable status
lldpMedEnablebooleanyesLLDP-MED enable status
bandWidthCtrlTypeintegeryesBandWidthCtrlType should be a value as follows: 0: off, 1: rate limit, 2: storming control
stormCtrlStormCtrlVOno(StormCtrlVO not expanded; call omada_get_schema "StormCtrlVO")
bandCtrlBandCtrlVOno(BandCtrlVO not expanded; call omada_get_schema "BandCtrlVO")
spanningTreeEnablebooleanyesSpanningTree enable status
spanningTreeSettingSpanningTreeSettingVOno(SpanningTreeSettingVO not expanded; call omada_get_schema "SpanningTreeSettingVO")
loopbackDetectEnablebooleanyesLoopbackDetect enable status
eeeEnablebooleannoEEE enable status
flowControlEnablebooleannoFlowControl enable status
loopbackDetectVlanBasedEnablebooleannoLoopbackDetectVLANBased enable status
igmpFastLeaveEnablebooleannoIndicates whether igmp fast leave is enabled
mldFastLeaveEnablebooleannoIndicates whether mld fast leave is enabled
dhcpL2RelaySettingsDhcpL2RelayVOno(DhcpL2RelayVO not expanded; call omada_get_schema "DhcpL2RelayVO")
fastLeaveEnablebooleannoIGMP Snooping fast leave enable status
dot1pPriorityintegerno802.1p Priority
trustModeintegernoTrust mode
json
// omada_call_operation
{
  "operationId": "modifyOswLanProfile",
  "params": {
    "siteId": "<siteId>",
    "profileId": "<profileId>"
  },
  "body": "{...}"
}
Details, permissions and error codes

Modify a switch profile.
The interface requires one of the permissions:
Site Settings Manager Modify
Device Config Page Modify
The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
0 - Success.
-1001 - Invalid request parameters.
-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.
-33507 - This profile does not exist.
-33560 - The Agile Series Switch has been configured with this profile. Cannot delete the profile or turn off the option "Agile Series Switch Enabled".
-33564 - The number of VLANs has reached the limit of the Agile Series Switch.

getLanNetworkListV3 ​

GET /openapi/v3/{omadacId}/sites/{siteId}/lan-networks

Get LAN network list V3

ParameterInTypeRequiredDescription
omadacIdpathstringautoOmada ID (filled in automatically)
siteIdpathstringyesSite ID (site ID or site name)
pagequeryintegernoStart page number. Start from 1. (default 1)
pageSizequeryintegernoNumber of entries per page. It should be within the range of 1–1000. (default 100)
json
// omada_call_operation
{
  "operationId": "getLanNetworkListV3",
  "params": {
    "siteId": "<siteId>"
  }
}
Details, permissions and error codes

Get LAN network list V3.(Pagination)
The interface requires one of the permissions:
Site Settings Manager View Only
Network Config Page View Only

Released under the MIT License. Not affiliated with or endorsed by TP-Link.