OLTAPI
All URIs are relative to https://use1-omada-northbound.tplinkcloud.com
| Method | HTTP request | Description |
|---|---|---|
| EditConfig | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/system/system-info/configs/edit | Modify OLT description info |
| EditConfigForMsp | Post /openapi/v1/msp/{mspId}/customers/{customerId}/sites/{siteId}/olts/{deviceMac}/system/system-info/configs/edit | Modify OLT description info(MSP mode) |
| EditLagsConfigList | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/l2-feature/eth-port/port/lags/edit | Batch modify ETH LAG(Link Aggregation Group) config |
| EditManagementSystemInterfaces | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/system/management-system-interface/edit | Modify OLT Management System Interface |
| EditPortsConfigList | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/l2-feature/eth-port/port/unit1/edit | Batch Modify ETH Unit1 port of olt |
| GetConfig | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/system/system-info/configs | Get OLT description info |
| GetConfigForMsp | Get /openapi/v1/msp/{mspId}/customers/{customerId}/sites/{siteId}/olts/{deviceMac}/system/system-info/configs | Get OLT description info(MSP mode) |
| GetDetail | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac} | Get OLT info |
| GetEthAndPonList | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/eth-port/and/pon-port/list | Get pon port and eth port of OLT |
| GetEthAndPonListForMsp | Get /openapi/v1/msp/{mspId}/customers/{customerId}/sites/{siteId}/eth-port/and/pon-port/list | Get pon port and eth port of OLT(MSP mode) |
| GetLagsConfigList | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/l2-feature/eth-port/port/lags/list | Get ETH LAG(Link Aggregation Group) config list |
| GetManagementSystemInterfaces | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/system/management-system-interface/get | Get OLT Management System Interface list |
| GetOltDetailForMsp | Get /openapi/v1/msp/{mspId}/customers/{customerId}/sites/{siteId}/olts/{deviceMac} | Get OLT info(MSP mode) |
| GetOltPortsDDMStatus | Post /openapi/v1/{omadacId}/sites/{siteId}/stat/olt/{deviceMac}/ddm/info | Get DDM(Digital Diagnostic Monitoring) status list of OLT port list |
| GetPortsConfigList | Get /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/l2-feature/eth-port/port/unit1/list | Get ETH Unit1 port list of olt |
| GetPortsConfigListForMsp | Get /openapi/v1/msp/{mspId}/customers/{customerId}/sites/{siteId}/olts/{deviceMac}/l2-feature/eth-port/port/unit1/list | Get ETH Unit1 port list of olt(MSP mode) |
| ModifyOltConfig | Patch /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac} | Modify olt config |
| ModifyOltConfigForMsp | Patch /openapi/v1/msp/{mspId}/customers/{customerId}/sites/{siteId}/olts/{deviceMac} | Modify olt config(MSP mode) |
| MoveToSite | Post /openapi/v1/{omadacId}/sites/{siteId}/cmd/olts/move | Move OLT to another site |
| MspMoveToCustomer1 | Post /openapi/v1/msp/{mspId}/customers/{customerId}/sites/{siteId}/cmd/olts/move | Move OLT to another customer(MSP mode) |
| RebootNow | Post /openapi/v1/{omadacId}/sites/{siteId}/olts/{deviceMac}/system/system-tools/reboot/now | Reboot OLT |
EditConfig
DeviceResponseBodyVoid EditConfig(ctx, omadacId, siteId, deviceMac).SystemInfoAppModifyDTO(systemInfoAppModifyDTO).Execute()
Modify OLT description info
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
systemInfoAppModifyDTO := *openapiclient.NewSystemInfoAppModifyDTO() // SystemInfoAppModifyDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.EditConfig(context.Background(), omadacId, siteId, deviceMac).SystemInfoAppModifyDTO(systemInfoAppModifyDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.EditConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditConfig`: DeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.EditConfig`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiEditConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
systemInfoAppModifyDTO | SystemInfoAppModifyDTO | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditConfigForMsp
DeviceResponseBodyVoid EditConfigForMsp(ctx, siteId, deviceMac, mspId, customerId).SystemInfoAppModifyDTO(systemInfoAppModifyDTO).Execute()
Modify OLT description info(MSP mode)
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
mspId := "mspId_example" // string | mspId
customerId := "customerId_example" // string | customerId
systemInfoAppModifyDTO := *openapiclient.NewSystemInfoAppModifyDTO() // SystemInfoAppModifyDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.EditConfigForMsp(context.Background(), siteId, deviceMac, mspId, customerId).SystemInfoAppModifyDTO(systemInfoAppModifyDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.EditConfigForMsp``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditConfigForMsp`: DeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.EditConfigForMsp`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF | |
| mspId | string | mspId | |
| customerId | string | customerId |
Other Parameters
Other parameters are passed through a pointer to a apiEditConfigForMspRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
systemInfoAppModifyDTO | SystemInfoAppModifyDTO | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditLagsConfigList
DeviceResponseBodyVoid EditLagsConfigList(ctx, omadacId, siteId, deviceMac).EthLagPortAppListDTO(ethLagPortAppListDTO).Execute()
Batch modify ETH LAG(Link Aggregation Group) config
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
ethLagPortAppListDTO := *openapiclient.NewEthLagPortAppListDTO([]openapiclient.EthLagPortAppDTO{*openapiclient.NewEthLagPortAppDTO("Lag_example")}) // EthLagPortAppListDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.EditLagsConfigList(context.Background(), omadacId, siteId, deviceMac).EthLagPortAppListDTO(ethLagPortAppListDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.EditLagsConfigList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditLagsConfigList`: DeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.EditLagsConfigList`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiEditLagsConfigListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
ethLagPortAppListDTO | EthLagPortAppListDTO | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditManagementSystemInterfaces
OperationResponseWithoutResult EditManagementSystemInterfaces(ctx, omadacId, siteId, deviceMac).ManagementSystemInterfaceDTO(managementSystemInterfaceDTO).Execute()
Modify OLT Management System Interface
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
managementSystemInterfaceDTO := *openapiclient.NewManagementSystemInterfaceDTO() // ManagementSystemInterfaceDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.EditManagementSystemInterfaces(context.Background(), omadacId, siteId, deviceMac).ManagementSystemInterfaceDTO(managementSystemInterfaceDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.EditManagementSystemInterfaces``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditManagementSystemInterfaces`: OperationResponseWithoutResult
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.EditManagementSystemInterfaces`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiEditManagementSystemInterfacesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
managementSystemInterfaceDTO | ManagementSystemInterfaceDTO | |
Return type
OperationResponseWithoutResult
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditPortsConfigList
DeviceResponseBodyVoid EditPortsConfigList(ctx, omadacId, siteId, deviceMac).EthUnit1PortAppListDTO(ethUnit1PortAppListDTO).Execute()
Batch Modify ETH Unit1 port of olt
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
ethUnit1PortAppListDTO := *openapiclient.NewEthUnit1PortAppListDTO([]openapiclient.EthUnit1PortAppDTO{*openapiclient.NewEthUnit1PortAppDTO("Port_example")}) // EthUnit1PortAppListDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.EditPortsConfigList(context.Background(), omadacId, siteId, deviceMac).EthUnit1PortAppListDTO(ethUnit1PortAppListDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.EditPortsConfigList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditPortsConfigList`: DeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.EditPortsConfigList`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiEditPortsConfigListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
ethUnit1PortAppListDTO | EthUnit1PortAppListDTO | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetConfig
OperationResponseSystemInfoAppDTO GetConfig(ctx, omadacId, siteId, deviceMac).Execute()
Get OLT description info
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetConfig(context.Background(), omadacId, siteId, deviceMac).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetConfig`: OperationResponseSystemInfoAppDTO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetConfig`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiGetConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseSystemInfoAppDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetConfigForMsp
OperationResponseSystemInfoAppDTO GetConfigForMsp(ctx, siteId, deviceMac, mspId, customerId).Execute()
Get OLT description info(MSP mode)
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
mspId := "mspId_example" // string | mspId
customerId := "customerId_example" // string | customerId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetConfigForMsp(context.Background(), siteId, deviceMac, mspId, customerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetConfigForMsp``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetConfigForMsp`: OperationResponseSystemInfoAppDTO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetConfigForMsp`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF | |
| mspId | string | mspId | |
| customerId | string | customerId |
Other Parameters
Other parameters are passed through a pointer to a apiGetConfigForMspRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseSystemInfoAppDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetDetail
OperationResponseOltDetailVO GetDetail(ctx, omadacId, siteId, deviceMac).Execute()
Get OLT info
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetDetail(context.Background(), omadacId, siteId, deviceMac).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetDetail``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDetail`: OperationResponseOltDetailVO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetDetail`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiGetDetailRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetEthAndPonList
OperationResponseEthAndPonListDTO GetEthAndPonList(ctx, omadacId, siteId, deviceMac).Execute()
Get pon port and eth port of OLT
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetEthAndPonList(context.Background(), omadacId, siteId, deviceMac).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetEthAndPonList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEthAndPonList`: OperationResponseEthAndPonListDTO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetEthAndPonList`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiGetEthAndPonListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseEthAndPonListDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetEthAndPonListForMsp
OperationResponseEthAndPonListDTO GetEthAndPonListForMsp(ctx, mspId, customerId, siteId).Execute()
Get pon port and eth port of OLT(MSP mode)
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
mspId := "mspId_example" // string | mspId
customerId := "customerId_example" // string | customerId
siteId := "siteId_example" // string | Site ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetEthAndPonListForMsp(context.Background(), mspId, customerId, siteId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetEthAndPonListForMsp``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEthAndPonListForMsp`: OperationResponseEthAndPonListDTO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetEthAndPonListForMsp`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| mspId | string | mspId | |
| customerId | string | customerId | |
| siteId | string | Site ID |
Other Parameters
Other parameters are passed through a pointer to a apiGetEthAndPonListForMspRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseEthAndPonListDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetLagsConfigList
OperationResponseListEthLagPortAppDTO GetLagsConfigList(ctx, omadacId, siteId, deviceMac).Execute()
Get ETH LAG(Link Aggregation Group) config list
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetLagsConfigList(context.Background(), omadacId, siteId, deviceMac).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetLagsConfigList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetLagsConfigList`: OperationResponseListEthLagPortAppDTO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetLagsConfigList`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiGetLagsConfigListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseListEthLagPortAppDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetManagementSystemInterfaces
OperationResponseManagementSystemInterfaceDTO GetManagementSystemInterfaces(ctx, omadacId, siteId, deviceMac).Execute()
Get OLT Management System Interface list
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetManagementSystemInterfaces(context.Background(), omadacId, siteId, deviceMac).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetManagementSystemInterfaces``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetManagementSystemInterfaces`: OperationResponseManagementSystemInterfaceDTO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetManagementSystemInterfaces`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiGetManagementSystemInterfacesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseManagementSystemInterfaceDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOltDetailForMsp
OperationResponseOltDetailVO GetOltDetailForMsp(ctx, siteId, deviceMac, mspId, customerId).Execute()
Get OLT info(MSP mode)
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
mspId := "mspId_example" // string | mspId
customerId := "customerId_example" // string | customerId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetOltDetailForMsp(context.Background(), siteId, deviceMac, mspId, customerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetOltDetailForMsp``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOltDetailForMsp`: OperationResponseOltDetailVO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetOltDetailForMsp`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF | |
| mspId | string | mspId | |
| customerId | string | customerId |
Other Parameters
Other parameters are passed through a pointer to a apiGetOltDetailForMspRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOltPortsDDMStatus
OperationResponseListDDMStatusResultVO GetOltPortsDDMStatus(ctx, omadacId, siteId, deviceMac).DDMStatusRequestVO(dDMStatusRequestVO).Execute()
Get DDM(Digital Diagnostic Monitoring) status list of OLT port list
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
dDMStatusRequestVO := *openapiclient.NewDDMStatusRequestVO() // DDMStatusRequestVO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetOltPortsDDMStatus(context.Background(), omadacId, siteId, deviceMac).DDMStatusRequestVO(dDMStatusRequestVO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetOltPortsDDMStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOltPortsDDMStatus`: OperationResponseListDDMStatusResultVO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetOltPortsDDMStatus`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiGetOltPortsDDMStatusRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
dDMStatusRequestVO | DDMStatusRequestVO | |
Return type
OperationResponseListDDMStatusResultVO
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPortsConfigList
OperationResponseListEthUnit1PortAppDTO GetPortsConfigList(ctx, omadacId, siteId, deviceMac).Execute()
Get ETH Unit1 port list of olt
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetPortsConfigList(context.Background(), omadacId, siteId, deviceMac).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetPortsConfigList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPortsConfigList`: OperationResponseListEthUnit1PortAppDTO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetPortsConfigList`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiGetPortsConfigListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseListEthUnit1PortAppDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPortsConfigListForMsp
OperationResponseListEthUnit1PortAppDTO GetPortsConfigListForMsp(ctx, siteId, deviceMac, mspId, customerId).Execute()
Get ETH Unit1 port list of olt(MSP mode)
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
mspId := "mspId_example" // string | mspId
customerId := "customerId_example" // string | customerId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.GetPortsConfigListForMsp(context.Background(), siteId, deviceMac, mspId, customerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.GetPortsConfigListForMsp``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPortsConfigListForMsp`: OperationResponseListEthUnit1PortAppDTO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.GetPortsConfigListForMsp`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF | |
| mspId | string | mspId | |
| customerId | string | customerId |
Other Parameters
Other parameters are passed through a pointer to a apiGetPortsConfigListForMspRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseListEthUnit1PortAppDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModifyOltConfig
OperationResponseOltDetailVO ModifyOltConfig(ctx, omadacId, siteId, deviceMac).OltConfigModifyDTO(oltConfigModifyDTO).Execute()
Modify olt config
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
oltConfigModifyDTO := *openapiclient.NewOltConfigModifyDTO() // OltConfigModifyDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.ModifyOltConfig(context.Background(), omadacId, siteId, deviceMac).OltConfigModifyDTO(oltConfigModifyDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.ModifyOltConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ModifyOltConfig`: OperationResponseOltDetailVO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.ModifyOltConfig`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiModifyOltConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
oltConfigModifyDTO | OltConfigModifyDTO | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModifyOltConfigForMsp
OperationResponseOltDetailVO ModifyOltConfigForMsp(ctx, siteId, mspId, customerId, deviceMac).OltConfigModifyDTO(oltConfigModifyDTO).Execute()
Modify olt config(MSP mode)
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
siteId := "siteId_example" // string | Site ID
mspId := "mspId_example" // string | mspId
customerId := "customerId_example" // string | customerId
deviceMac := "deviceMac_example" // string | deviceMac
oltConfigModifyDTO := *openapiclient.NewOltConfigModifyDTO() // OltConfigModifyDTO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.ModifyOltConfigForMsp(context.Background(), siteId, mspId, customerId, deviceMac).OltConfigModifyDTO(oltConfigModifyDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.ModifyOltConfigForMsp``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ModifyOltConfigForMsp`: OperationResponseOltDetailVO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.ModifyOltConfigForMsp`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| siteId | string | Site ID | |
| mspId | string | mspId | |
| customerId | string | customerId | |
| deviceMac | string | deviceMac |
Other Parameters
Other parameters are passed through a pointer to a apiModifyOltConfigForMspRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
oltConfigModifyDTO | OltConfigModifyDTO | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MoveToSite
OperationResponseMoveSiteProcessVO MoveToSite(ctx, omadacId, siteId).MoveToSiteVO(moveToSiteVO).Execute()
Move OLT to another site
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
moveToSiteVO := *openapiclient.NewMoveToSiteVO() // MoveToSiteVO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.MoveToSite(context.Background(), omadacId, siteId).MoveToSiteVO(moveToSiteVO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.MoveToSite``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MoveToSite`: OperationResponseMoveSiteProcessVO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.MoveToSite`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID |
Other Parameters
Other parameters are passed through a pointer to a apiMoveToSiteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
moveToSiteVO | MoveToSiteVO | |
Return type
OperationResponseMoveSiteProcessVO
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MspMoveToCustomer1
DeviceResponseBodyVoid MspMoveToCustomer1(ctx, siteId, mspId, customerId).MoveToCustomerVO(moveToCustomerVO).Execute()
Move OLT to another customer(MSP mode)
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
siteId := "siteId_example" // string | Site ID
mspId := "mspId_example" // string | mspId
customerId := "customerId_example" // string | customerId
moveToCustomerVO := *openapiclient.NewMoveToCustomerVO("Customer_example", []string{"DeviceMacs_example"}) // MoveToCustomerVO |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.MspMoveToCustomer1(context.Background(), siteId, mspId, customerId).MoveToCustomerVO(moveToCustomerVO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.MspMoveToCustomer1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MspMoveToCustomer1`: DeviceResponseBodyVoid
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.MspMoveToCustomer1`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| siteId | string | Site ID | |
| mspId | string | mspId | |
| customerId | string | customerId |
Other Parameters
Other parameters are passed through a pointer to a apiMspMoveToCustomer1Request struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
moveToCustomerVO | MoveToCustomerVO | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RebootNow
OperationResponseDeviceRebootAppDTO RebootNow(ctx, omadacId, siteId, deviceMac).Execute()
Reboot OLT
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Tohaker/omada-go-sdk/omada"
)
func main() {
omadacId := "omadacId_example" // string | Omada ID
siteId := "siteId_example" // string | Site ID
deviceMac := "deviceMac_example" // string | Device MAC address, like AA-BB-CC-DD-EE-FF
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OLTAPI.RebootNow(context.Background(), omadacId, siteId, deviceMac).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OLTAPI.RebootNow``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RebootNow`: OperationResponseDeviceRebootAppDTO
fmt.Fprintf(os.Stdout, "Response from `OLTAPI.RebootNow`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| omadacId | string | Omada ID | |
| siteId | string | Site ID | |
| deviceMac | string | Device MAC address, like AA-BB-CC-DD-EE-FF |
Other Parameters
Other parameters are passed through a pointer to a apiRebootNowRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
Return type
OperationResponseDeviceRebootAppDTO
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]